aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-24 06:52:40 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-07 10:05:59 -0500
commita97a96347598201ae39b5aee67638dae2cebe454 (patch)
tree1f5787049a9a7b474ce9f937ced021cde975c0ef /drivers/video/omap2
parentd13f5b7d98eebe59112ca3d92763000c306872e4 (diff)
OMAPDSS: export dss_mgr_ops functions
Export dss_mgr_ops related functions. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/dss.h30
-rw-r--r--drivers/video/omap2/dss/output.c9
2 files changed, 9 insertions, 30 deletions
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index 8c89cdda96dd..1d8483cbe395 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -179,19 +179,6 @@ void dss_put_device(struct omap_dss_device *dssdev);
179void dss_copy_device_pdata(struct omap_dss_device *dst, 179void dss_copy_device_pdata(struct omap_dss_device *dst,
180 const struct omap_dss_device *src); 180 const struct omap_dss_device *src);
181 181
182/* apply */
183void dss_mgr_start_update(struct omap_overlay_manager *mgr);
184int dss_mgr_enable(struct omap_overlay_manager *mgr);
185void dss_mgr_disable(struct omap_overlay_manager *mgr);
186void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
187 const struct omap_video_timings *timings);
188void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
189 const struct dss_lcd_mgr_config *config);
190int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr,
191 void (*handler)(void *), void *data);
192void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr,
193 void (*handler)(void *), void *data);
194
195/* output */ 182/* output */
196void dss_register_output(struct omap_dss_output *out); 183void dss_register_output(struct omap_dss_output *out);
197void dss_unregister_output(struct omap_dss_output *out); 184void dss_unregister_output(struct omap_dss_output *out);
@@ -529,21 +516,4 @@ static inline void dss_collect_irq_stats(u32 irqstatus, unsigned *irq_arr)
529} 516}
530#endif 517#endif
531 518
532struct dss_mgr_ops {
533 void (*start_update)(struct omap_overlay_manager *mgr);
534 int (*enable)(struct omap_overlay_manager *mgr);
535 void (*disable)(struct omap_overlay_manager *mgr);
536 void (*set_timings)(struct omap_overlay_manager *mgr,
537 const struct omap_video_timings *timings);
538 void (*set_lcd_config)(struct omap_overlay_manager *mgr,
539 const struct dss_lcd_mgr_config *config);
540 int (*register_framedone_handler)(struct omap_overlay_manager *mgr,
541 void (*handler)(void *), void *data);
542 void (*unregister_framedone_handler)(struct omap_overlay_manager *mgr,
543 void (*handler)(void *), void *data);
544};
545
546int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops);
547void dss_uninstall_mgr_ops(void);
548
549#endif 519#endif
diff --git a/drivers/video/omap2/dss/output.c b/drivers/video/omap2/dss/output.c
index 6def0d7bbd05..79dea1a1a732 100644
--- a/drivers/video/omap2/dss/output.c
+++ b/drivers/video/omap2/dss/output.c
@@ -125,47 +125,56 @@ int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops)
125 125
126 return 0; 126 return 0;
127} 127}
128EXPORT_SYMBOL(dss_install_mgr_ops);
128 129
129void dss_uninstall_mgr_ops(void) 130void dss_uninstall_mgr_ops(void)
130{ 131{
131 dss_mgr_ops = NULL; 132 dss_mgr_ops = NULL;
132} 133}
134EXPORT_SYMBOL(dss_uninstall_mgr_ops);
133 135
134void dss_mgr_set_timings(struct omap_overlay_manager *mgr, 136void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
135 const struct omap_video_timings *timings) 137 const struct omap_video_timings *timings)
136{ 138{
137 dss_mgr_ops->set_timings(mgr, timings); 139 dss_mgr_ops->set_timings(mgr, timings);
138} 140}
141EXPORT_SYMBOL(dss_mgr_set_timings);
139 142
140void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, 143void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
141 const struct dss_lcd_mgr_config *config) 144 const struct dss_lcd_mgr_config *config)
142{ 145{
143 dss_mgr_ops->set_lcd_config(mgr, config); 146 dss_mgr_ops->set_lcd_config(mgr, config);
144} 147}
148EXPORT_SYMBOL(dss_mgr_set_lcd_config);
145 149
146int dss_mgr_enable(struct omap_overlay_manager *mgr) 150int dss_mgr_enable(struct omap_overlay_manager *mgr)
147{ 151{
148 return dss_mgr_ops->enable(mgr); 152 return dss_mgr_ops->enable(mgr);
149} 153}
154EXPORT_SYMBOL(dss_mgr_enable);
150 155
151void dss_mgr_disable(struct omap_overlay_manager *mgr) 156void dss_mgr_disable(struct omap_overlay_manager *mgr)
152{ 157{
153 dss_mgr_ops->disable(mgr); 158 dss_mgr_ops->disable(mgr);
154} 159}
160EXPORT_SYMBOL(dss_mgr_disable);
155 161
156void dss_mgr_start_update(struct omap_overlay_manager *mgr) 162void dss_mgr_start_update(struct omap_overlay_manager *mgr)
157{ 163{
158 dss_mgr_ops->start_update(mgr); 164 dss_mgr_ops->start_update(mgr);
159} 165}
166EXPORT_SYMBOL(dss_mgr_start_update);
160 167
161int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr, 168int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr,
162 void (*handler)(void *), void *data) 169 void (*handler)(void *), void *data)
163{ 170{
164 return dss_mgr_ops->register_framedone_handler(mgr, handler, data); 171 return dss_mgr_ops->register_framedone_handler(mgr, handler, data);
165} 172}
173EXPORT_SYMBOL(dss_mgr_register_framedone_handler);
166 174
167void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr, 175void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr,
168 void (*handler)(void *), void *data) 176 void (*handler)(void *), void *data)
169{ 177{
170 dss_mgr_ops->unregister_framedone_handler(mgr, handler, data); 178 dss_mgr_ops->unregister_framedone_handler(mgr, handler, data);
171} 179}
180EXPORT_SYMBOL(dss_mgr_unregister_framedone_handler);