forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/intel/ipu3/ipu3-cio2.h
....@@ -4,14 +4,14 @@
44 #ifndef __IPU3_CIO2_H
55 #define __IPU3_CIO2_H
66
7
+#include <linux/types.h>
8
+
79 #define CIO2_NAME "ipu3-cio2"
810 #define CIO2_DEVICE_NAME "Intel IPU3 CIO2"
911 #define CIO2_ENTITY_NAME "ipu3-csi2"
1012 #define CIO2_PCI_ID 0x9d32
1113 #define CIO2_PCI_BAR 0
1214 #define CIO2_DMA_MASK DMA_BIT_MASK(39)
13
-#define CIO2_IMAGE_MAX_WIDTH 4224
14
-#define CIO2_IMAGE_MAX_LENGTH 3136
1515
1616 #define CIO2_IMAGE_MAX_WIDTH 4224
1717 #define CIO2_IMAGE_MAX_LENGTH 3136
....@@ -19,6 +19,7 @@
1919 /* 32MB = 8xFBPT_entry */
2020 #define CIO2_MAX_LOPS 8
2121 #define CIO2_MAX_BUFFERS (PAGE_SIZE / 16 / CIO2_MAX_LOPS)
22
+#define CIO2_LOP_ENTRIES (PAGE_SIZE / sizeof(u32))
2223
2324 #define CIO2_PAD_SINK 0
2425 #define CIO2_PAD_SOURCE 1
....@@ -392,7 +393,6 @@
392393 sizeof(struct cio2_fbpt_entry))
393394
394395 #define CIO2_FBPT_SUBENTRY_UNIT 4
395
-#define CIO2_PAGE_SIZE 4096
396396
397397 /* cio2 fbpt first_entry ctrl status */
398398 #define CIO2_FBPT_CTRL_VALID BIT(0)