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.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h
index 5ced9b334d35..623cd872a367 100644
--- a/drivers/video/omap2/omapfb/omapfb.h
+++ b/drivers/video/omap2/omapfb/omapfb.h
@@ -28,6 +28,8 @@
28#endif 28#endif
29 29
30#include <linux/rwsem.h> 30#include <linux/rwsem.h>
31#include <linux/dma-attrs.h>
32#include <linux/dma-mapping.h>
31 33
32#include <video/omapdss.h> 34#include <video/omapdss.h>
33 35
@@ -49,6 +51,9 @@ extern bool omapfb_debug;
49 51
50struct omapfb2_mem_region { 52struct omapfb2_mem_region {
51 int id; 53 int id;
54 struct dma_attrs attrs;
55 void *token;
56 dma_addr_t dma_handle;
52 u32 paddr; 57 u32 paddr;
53 void __iomem *vaddr; 58 void __iomem *vaddr;
54 struct vrfb vrfb; 59 struct vrfb vrfb;
@@ -124,9 +129,6 @@ void omapfb_remove_sysfs(struct omapfb2_device *fbdev);
124 129
125int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg); 130int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg);
126 131
127int omapfb_update_window(struct fb_info *fbi,
128 u32 x, u32 y, u32 w, u32 h);
129
130int dss_mode_to_fb_mode(enum omap_color_mode dssmode, 132int dss_mode_to_fb_mode(enum omap_color_mode dssmode,
131 struct fb_var_screeninfo *var); 133 struct fb_var_screeninfo *var);
132 134
@@ -144,16 +146,16 @@ int omapfb_set_update_mode(struct fb_info *fbi, enum omapfb_update_mode mode);
144static inline struct omap_dss_device *fb2display(struct fb_info *fbi) 146static inline struct omap_dss_device *fb2display(struct fb_info *fbi)
145{ 147{
146 struct omapfb_info *ofbi = FB2OFB(fbi); 148 struct omapfb_info *ofbi = FB2OFB(fbi);
147 int i; 149 struct omap_overlay *ovl;
148 150
149 /* XXX: returns the display connected to first attached overlay */ 151 /* XXX: returns the display connected to first attached overlay */
150 for (i = 0; i < ofbi->num_overlays; i++) {
151 struct omap_overlay *ovl = ofbi->overlays[i];
152 152
153 return ovl->get_device(ovl); 153 if (ofbi->num_overlays == 0)
154 } 154 return NULL;
155 155
156 return NULL; 156 ovl = ofbi->overlays[0];
157
158 return ovl->get_device(ovl);
157} 159}
158 160
159static inline struct omapfb_display_data *get_display_data( 161static inline struct omapfb_display_data *get_display_data(