.. | .. |
---|
16 | 16 | #include <linux/dma-mapping.h> |
---|
17 | 17 | #include <linux/err.h> |
---|
18 | 18 | #include <linux/fb.h> |
---|
| 19 | +#include <linux/fdtable.h> |
---|
19 | 20 | #include <linux/fs.h> |
---|
20 | 21 | #include <linux/init.h> |
---|
21 | 22 | #include <linux/interrupt.h> |
---|
.. | .. |
---|
48 | 49 | |
---|
49 | 50 | #include <linux/iommu.h> |
---|
50 | 51 | #include <linux/iova.h> |
---|
51 | | -#include <linux/dma-iommu.h> |
---|
52 | 52 | #include <linux/pagemap.h> |
---|
53 | 53 | |
---|
54 | 54 | #ifdef CONFIG_DMABUF_CACHE |
---|
.. | .. |
---|
86 | 86 | #define STR(x) STR_HELPER(x) |
---|
87 | 87 | |
---|
88 | 88 | #define DRIVER_MAJOR_VERISON 1 |
---|
89 | | -#define DRIVER_MINOR_VERSION 2 |
---|
90 | | -#define DRIVER_REVISION_VERSION 26 |
---|
| 89 | +#define DRIVER_MINOR_VERSION 3 |
---|
| 90 | +#define DRIVER_REVISION_VERSION 1 |
---|
91 | 91 | #define DRIVER_PATCH_VERSION |
---|
92 | 92 | |
---|
93 | 93 | #define DRIVER_VERSION (STR(DRIVER_MAJOR_VERISON) "." STR(DRIVER_MINOR_VERSION) \ |
---|
.. | .. |
---|
97 | 97 | #define RGA_JOB_TIMEOUT_DELAY HZ |
---|
98 | 98 | #define RGA_RESET_TIMEOUT 1000 |
---|
99 | 99 | |
---|
100 | | -#define RGA_MAX_SCHEDULER 3 |
---|
| 100 | +#define RGA_MAX_SCHEDULER RGA_HW_SIZE |
---|
101 | 101 | #define RGA_MAX_BUS_CLK 10 |
---|
102 | 102 | |
---|
103 | 103 | #define RGA_BUFFER_POOL_MAX_SIZE 64 |
---|
.. | .. |
---|
272 | 272 | struct rga_req rga_command_base; |
---|
273 | 273 | uint32_t cmd_reg[32 * 8]; |
---|
274 | 274 | struct rga_full_csc full_csc; |
---|
| 275 | + struct rga_csc_clip full_csc_clip; |
---|
275 | 276 | struct rga_pre_intr_info pre_intr_info; |
---|
276 | 277 | |
---|
277 | 278 | struct rga_job_buffer src_buffer; |
---|
.. | .. |
---|
379 | 380 | */ |
---|
380 | 381 | struct mm_struct *current_mm; |
---|
381 | 382 | |
---|
| 383 | + struct rga_feature feature; |
---|
382 | 384 | /* TODO: add some common work */ |
---|
383 | 385 | }; |
---|
384 | 386 | |
---|