hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/uapi/linux/rkcif-config.h
....@@ -9,7 +9,9 @@
99 #include <linux/types.h>
1010 #include <linux/v4l2-controls.h>
1111
12
-#define RKCIF_API_VERSION KERNEL_VERSION(0, 1, 0xa)
12
+#define RKCIF_MAX_CSI_NUM 4
13
+
14
+#define RKCIF_API_VERSION KERNEL_VERSION(0, 2, 0)
1315
1416 #define V4L2_EVENT_RESET_DEV 0X1001
1517
....@@ -32,7 +34,7 @@
3234 _IOW('V', BASE_VIDIOC_PRIVATE + 6, int)
3335
3436 #define RKCIF_CMD_SET_CSI_IDX \
35
- _IOW('V', BASE_VIDIOC_PRIVATE + 7, unsigned int)
37
+ _IOW('V', BASE_VIDIOC_PRIVATE + 7, struct rkcif_csi_info)
3638
3739 /* cif memory mode
3840 * 0: raw12/raw10/raw8 8bit memory compact
....@@ -71,4 +73,10 @@
7173 int fps;
7274 };
7375
76
+struct rkcif_csi_info {
77
+ int csi_num;
78
+ int csi_idx[RKCIF_MAX_CSI_NUM];
79
+ int dphy_vendor[RKCIF_MAX_CSI_NUM];
80
+};
81
+
7482 #endif