aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap/omapfb.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/video/omap/omapfb.h b/drivers/video/omap/omapfb.h
index 3a5ab13845fc..07fe49878892 100644
--- a/drivers/video/omap/omapfb.h
+++ b/drivers/video/omap/omapfb.h
@@ -47,6 +47,31 @@
47 47
48struct omapfb_device; 48struct omapfb_device;
49 49
50#ifdef CONFIG_ARCH_OMAP1
51#define OMAPFB_PLANE_NUM 1
52#else
53#define OMAPFB_PLANE_NUM 3
54#endif
55
56struct omapfb_mem_region {
57 u32 paddr;
58 void __iomem *vaddr;
59 unsigned long size;
60 u8 type; /* OMAPFB_PLANE_MEM_* */
61 enum omapfb_color_format format;/* OMAPFB_COLOR_* */
62 unsigned format_used:1; /* Must be set when format is set.
63 * Needed b/c of the badly chosen 0
64 * base for OMAPFB_COLOR_* values
65 */
66 unsigned alloc:1; /* allocated by the driver */
67 unsigned map:1; /* kernel mapped by the driver */
68};
69
70struct omapfb_mem_desc {
71 int region_cnt;
72 struct omapfb_mem_region region[OMAPFB_PLANE_NUM];
73};
74
50struct lcd_panel { 75struct lcd_panel {
51 const char *name; 76 const char *name;
52 int config; /* TFT/STN, signal inversion */ 77 int config; /* TFT/STN, signal inversion */