aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb/omapfb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb.h')
-rw-r--r--drivers/video/omap2/omapfb/omapfb.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h
index c9866be0460a..02f1ba9b228c 100644
--- a/drivers/video/omap2/omapfb/omapfb.h
+++ b/drivers/video/omap2/omapfb/omapfb.h
@@ -44,6 +44,7 @@ extern unsigned int omapfb_debug;
44#define OMAPFB_MAX_OVL_PER_FB 3 44#define OMAPFB_MAX_OVL_PER_FB 3
45 45
46struct omapfb2_mem_region { 46struct omapfb2_mem_region {
47 int id;
47 u32 paddr; 48 u32 paddr;
48 void __iomem *vaddr; 49 void __iomem *vaddr;
49 struct vrfb vrfb; 50 struct vrfb vrfb;
@@ -51,13 +52,13 @@ struct omapfb2_mem_region {
51 u8 type; /* OMAPFB_PLANE_MEM_* */ 52 u8 type; /* OMAPFB_PLANE_MEM_* */
52 bool alloc; /* allocated by the driver */ 53 bool alloc; /* allocated by the driver */
53 bool map; /* kernel mapped by the driver */ 54 bool map; /* kernel mapped by the driver */
55 atomic_t map_count;
54}; 56};
55 57
56/* appended to fb_info */ 58/* appended to fb_info */
57struct omapfb_info { 59struct omapfb_info {
58 int id; 60 int id;
59 struct omapfb2_mem_region region; 61 struct omapfb2_mem_region *region;
60 atomic_t map_count;
61 int num_overlays; 62 int num_overlays;
62 struct omap_overlay *overlays[OMAPFB_MAX_OVL_PER_FB]; 63 struct omap_overlay *overlays[OMAPFB_MAX_OVL_PER_FB];
63 struct omapfb2_device *fbdev; 64 struct omapfb2_device *fbdev;
@@ -76,6 +77,7 @@ struct omapfb2_device {
76 77
77 unsigned num_fbs; 78 unsigned num_fbs;
78 struct fb_info *fbs[10]; 79 struct fb_info *fbs[10];
80 struct omapfb2_mem_region regions[10];
79 81
80 unsigned num_displays; 82 unsigned num_displays;
81 struct omap_dss_device *displays[10]; 83 struct omap_dss_device *displays[10];
@@ -117,6 +119,9 @@ int omapfb_update_window(struct fb_info *fbi,
117int dss_mode_to_fb_mode(enum omap_color_mode dssmode, 119int dss_mode_to_fb_mode(enum omap_color_mode dssmode,
118 struct fb_var_screeninfo *var); 120 struct fb_var_screeninfo *var);
119 121
122int omapfb_setup_overlay(struct fb_info *fbi, struct omap_overlay *ovl,
123 u16 posx, u16 posy, u16 outw, u16 outh);
124
120/* find the display connected to this fb, if any */ 125/* find the display connected to this fb, if any */
121static inline struct omap_dss_device *fb2display(struct fb_info *fbi) 126static inline struct omap_dss_device *fb2display(struct fb_info *fbi)
122{ 127{