.. | .. |
---|
11 | 11 | #include <linux/notifier.h> |
---|
12 | 12 | |
---|
13 | 13 | /* |
---|
14 | | -* max support panel size 2232x1680 |
---|
| 14 | +* max support panel size 2560x1920 |
---|
15 | 15 | * ebc module display buf use 4bit per pixel |
---|
16 | 16 | * eink module display buf use 8bit per pixel |
---|
17 | 17 | * ebc module direct mode display buf use 2bit per pixel |
---|
18 | 18 | */ |
---|
19 | 19 | #define EBC_FB_SIZE 0x200000 /* 2M */ |
---|
20 | | -#define EINK_FB_SIZE 0x400000 /* 4M */ |
---|
| 20 | +#define EINK_FB_SIZE 0x500000 /* 5M */ |
---|
21 | 21 | #define DIRECT_FB_SIZE 0x200000 /* 2M */ |
---|
22 | 22 | #define LUT_TABLE_SIZE 0x100000 /* 1M */ |
---|
23 | 23 | #define FRAME_COUNT_SIZE 0x500000 /* 5M */ |
---|
.. | .. |
---|
31 | 31 | #define WF_5BIT 32 |
---|
32 | 32 | |
---|
33 | 33 | /* |
---|
| 34 | +* ebc buf format |
---|
| 35 | +*/ |
---|
| 36 | +#define EBC_Y4 (0) |
---|
| 37 | +#define EBC_Y8 (1) |
---|
| 38 | + |
---|
| 39 | +/* |
---|
34 | 40 | * ebc status notify |
---|
35 | 41 | */ |
---|
36 | 42 | #define EBC_OFF (0) |
---|
.. | .. |
---|
41 | 47 | /* |
---|
42 | 48 | * ebc system ioctl command |
---|
43 | 49 | */ |
---|
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) |
---|
47 | 53 | #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) |
---|
55 | 61 | #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) |
---|
60 | 68 | |
---|
61 | 69 | /* |
---|
62 | 70 | * IMPORTANT: Those values is corresponding to android hardware program, |
---|
.. | .. |
---|
105 | 113 | int win_y2; |
---|
106 | 114 | int width_mm; |
---|
107 | 115 | 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 |
---|
109 | 117 | char tid_name[16]; |
---|
110 | 118 | }; |
---|
111 | 119 | |
---|