/* * dspo_driver.h * * Copyright (c) 2007-2021 Allwinnertech Co., Ltd. * Author: zhengxiaobin * * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef _DSPO_DRIVER_H #define _DSPO_DRIVER_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "dspo_device.h" #include #include struct dspo_resource_t { struct device *dev; struct mutex mutex; struct dspo_device_t *p_dspo; bool opened; u64 sunxi_dspo_dma_mask; atomic_t user_cnt; struct class *dspo_class; struct cdev *dspo_cdev; dev_t dev_id; }; #endif /*End of file*/