aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pxafb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/pxafb.h')
-rw-r--r--drivers/video/pxafb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/pxafb.h b/drivers/video/pxafb.h
index c627b83497da..8238dc826429 100644
--- a/drivers/video/pxafb.h
+++ b/drivers/video/pxafb.h
@@ -52,9 +52,11 @@ enum {
52 52
53/* maximum palette size - 256 entries, each 4 bytes long */ 53/* maximum palette size - 256 entries, each 4 bytes long */
54#define PALETTE_SIZE (256 * 4) 54#define PALETTE_SIZE (256 * 4)
55#define CMD_BUFF_SIZE (1024 * 50)
55 56
56struct pxafb_dma_buff { 57struct pxafb_dma_buff {
57 unsigned char palette[PAL_MAX * PALETTE_SIZE]; 58 unsigned char palette[PAL_MAX * PALETTE_SIZE];
59 uint16_t cmd_buff[CMD_BUFF_SIZE];
58 struct pxafb_dma_descriptor pal_desc[PAL_MAX]; 60 struct pxafb_dma_descriptor pal_desc[PAL_MAX];
59 struct pxafb_dma_descriptor dma_desc[DMA_MAX]; 61 struct pxafb_dma_descriptor dma_desc[DMA_MAX];
60}; 62};
@@ -84,6 +86,7 @@ struct pxafb_info {
84 dma_addr_t screen_dma; /* physical address of frame buffer */ 86 dma_addr_t screen_dma; /* physical address of frame buffer */
85 u16 * palette_cpu; /* virtual address of palette memory */ 87 u16 * palette_cpu; /* virtual address of palette memory */
86 u_int palette_size; 88 u_int palette_size;
89 ssize_t video_offset;
87 90
88 u_int lccr0; 91 u_int lccr0;
89 u_int lccr3; 92 u_int lccr3;
@@ -97,6 +100,7 @@ struct pxafb_info {
97 u_int reg_lccr2; 100 u_int reg_lccr2;
98 u_int reg_lccr3; 101 u_int reg_lccr3;
99 u_int reg_lccr4; 102 u_int reg_lccr4;
103 u_int reg_cmdcr;
100 104
101 unsigned long hsync_time; 105 unsigned long hsync_time;
102 106
@@ -108,6 +112,14 @@ struct pxafb_info {
108 112
109 struct completion disable_done; 113 struct completion disable_done;
110 114
115#ifdef CONFIG_FB_PXA_SMARTPANEL
116 uint16_t *smart_cmds;
117 size_t n_smart_cmds;
118 struct completion command_done;
119 struct completion refresh_done;
120 struct task_struct *smart_thread;
121#endif
122
111#ifdef CONFIG_CPU_FREQ 123#ifdef CONFIG_CPU_FREQ
112 struct notifier_block freq_transition; 124 struct notifier_block freq_transition;
113 struct notifier_block freq_policy; 125 struct notifier_block freq_policy;