hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
kernel/drivers/gpu/drm/rockchip/ebc-dev/ebc_dev.h
....@@ -11,13 +11,13 @@
1111 #include <linux/notifier.h>
1212
1313 /*
14
-* max support panel size 2232x1680
14
+* max support panel size 2560x1920
1515 * ebc module display buf use 4bit per pixel
1616 * eink module display buf use 8bit per pixel
1717 * ebc module direct mode display buf use 2bit per pixel
1818 */
1919 #define EBC_FB_SIZE 0x200000 /* 2M */
20
-#define EINK_FB_SIZE 0x400000 /* 4M */
20
+#define EINK_FB_SIZE 0x500000 /* 5M */
2121 #define DIRECT_FB_SIZE 0x200000 /* 2M */
2222 #define LUT_TABLE_SIZE 0x100000 /* 1M */
2323 #define FRAME_COUNT_SIZE 0x500000 /* 5M */
....@@ -31,6 +31,12 @@
3131 #define WF_5BIT 32
3232
3333 /*
34
+* ebc buf format
35
+*/
36
+#define EBC_Y4 (0)
37
+#define EBC_Y8 (1)
38
+
39
+/*
3440 * ebc status notify
3541 */
3642 #define EBC_OFF (0)
....@@ -41,22 +47,24 @@
4147 /*
4248 * ebc system ioctl command
4349 */
44
-#define EBC_GET_BUFFER (0x7000)
45
-#define EBC_SEND_BUFFER (0x7001)
46
-#define EBC_GET_BUFFER_INFO (0x7002)
50
+#define EBC_GET_BUFFER (0x7000)
51
+#define EBC_SEND_BUFFER (0x7001)
52
+#define EBC_GET_BUFFER_INFO (0x7002)
4753 #define EBC_SET_FULL_MODE_NUM (0x7003)
48
-#define EBC_ENABLE_OVERLAY (0x7004)
49
-#define EBC_DISABLE_OVERLAY (0x7005)
50
-#define EBC_GET_OSD_BUFFER (0x7006)
51
-#define EBC_SEND_OSD_BUFFER (0x7007)
52
-#define EBC_NEW_BUF_PREPARE (0x7008)
53
-#define EBC_SET_DIFF_PERCENT (0x7009)
54
-#define EBC_WAIT_NEW_BUF_TIME (0x700a)
54
+#define EBC_ENABLE_OVERLAY (0x7004)
55
+#define EBC_DISABLE_OVERLAY (0x7005)
56
+#define EBC_GET_OSD_BUFFER (0x7006)
57
+#define EBC_SEND_OSD_BUFFER (0x7007)
58
+#define EBC_NEW_BUF_PREPARE (0x7008)
59
+#define EBC_SET_DIFF_PERCENT (0x7009)
60
+#define EBC_WAIT_NEW_BUF_TIME (0x700a)
5561 #define EBC_GET_OVERLAY_STATUS (0x700b)
56
-#define EBC_ENABLE_BG_CONTROL (0x700c)
57
-#define EBC_DISABLE_BG_CONTROL (0x700d)
58
-#define EBC_ENABLE_RESUME_COUNT (0x700e)
59
-#define EBC_DISABLE_RESUME_COUNT (0x700f)
62
+#define EBC_ENABLE_BG_CONTROL (0x700c)
63
+#define EBC_DISABLE_BG_CONTROL (0x700d)
64
+#define EBC_ENABLE_RESUME_COUNT (0x700e)
65
+#define EBC_DISABLE_RESUME_COUNT (0x700f)
66
+#define EBC_GET_BUF_FORMAT (0x7010)
67
+#define EBC_DROP_PREV_BUFFER (0x7011)
6068
6169 /*
6270 * IMPORTANT: Those values is corresponding to android hardware program,
....@@ -105,7 +113,7 @@
105113 int win_y2;
106114 int width_mm;
107115 int height_mm;
108
- int needpic;
116
+ int needpic; // 1: buf can not be drop by ebc, 0: buf can drop by ebc 2: regal buf, can not be drop by ebc
109117 char tid_name[16];
110118 };
111119