.. | .. |
---|
11 | 11 | |
---|
12 | 12 | #define RKCIF_API_VERSION KERNEL_VERSION(0, 1, 0xa) |
---|
13 | 13 | |
---|
| 14 | +#define V4L2_EVENT_RESET_DEV 0X1001 |
---|
| 15 | + |
---|
14 | 16 | #define RKCIF_CMD_GET_CSI_MEMORY_MODE \ |
---|
15 | 17 | _IOR('V', BASE_VIDIOC_PRIVATE + 0, int) |
---|
16 | 18 | |
---|
17 | 19 | #define RKCIF_CMD_SET_CSI_MEMORY_MODE \ |
---|
18 | 20 | _IOW('V', BASE_VIDIOC_PRIVATE + 1, int) |
---|
19 | 21 | |
---|
20 | | -#define RKCIF_CMD_GET_RESET_INFO \ |
---|
21 | | - _IOR('V', BASE_VIDIOC_PRIVATE + 5, struct rkcif_reset_info) |
---|
| 22 | +#define RKCIF_CMD_GET_SCALE_BLC \ |
---|
| 23 | + _IOR('V', BASE_VIDIOC_PRIVATE + 2, struct bayer_blc) |
---|
| 24 | + |
---|
| 25 | +#define RKCIF_CMD_SET_SCALE_BLC \ |
---|
| 26 | + _IOW('V', BASE_VIDIOC_PRIVATE + 3, struct bayer_blc) |
---|
| 27 | + |
---|
| 28 | +#define RKCIF_CMD_SET_FPS \ |
---|
| 29 | + _IOW('V', BASE_VIDIOC_PRIVATE + 4, struct rkcif_fps) |
---|
22 | 30 | |
---|
23 | 31 | #define RKCIF_CMD_SET_RESET \ |
---|
24 | 32 | _IOW('V', BASE_VIDIOC_PRIVATE + 6, int) |
---|
| 33 | + |
---|
| 34 | +#define RKCIF_CMD_SET_CSI_IDX \ |
---|
| 35 | + _IOW('V', BASE_VIDIOC_PRIVATE + 7, unsigned int) |
---|
25 | 36 | |
---|
26 | 37 | /* cif memory mode |
---|
27 | 38 | * 0: raw12/raw10/raw8 8bit memory compact |
---|
.. | .. |
---|
44 | 55 | CSI_LVDS_MEM_WORD_HIGH_ALIGN = 2, |
---|
45 | 56 | }; |
---|
46 | 57 | |
---|
47 | | -struct rkcif_reset_info { |
---|
48 | | - int is_need_reset; |
---|
49 | | - int reset_src; |
---|
| 58 | +/* black level for scale image |
---|
| 59 | + * The sequence of pattern00~03 is the same as the output of sensor bayer |
---|
| 60 | + */ |
---|
| 61 | + |
---|
| 62 | +struct bayer_blc { |
---|
| 63 | + __u8 pattern00; |
---|
| 64 | + __u8 pattern01; |
---|
| 65 | + __u8 pattern02; |
---|
| 66 | + __u8 pattern03; |
---|
| 67 | +}; |
---|
| 68 | + |
---|
| 69 | +struct rkcif_fps { |
---|
| 70 | + int ch_num; |
---|
| 71 | + int fps; |
---|
50 | 72 | }; |
---|
51 | 73 | |
---|
52 | 74 | #endif |
---|