dss.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. /*
  2. * linux/drivers/video/omap2/dss/dss.h
  3. *
  4. * Copyright (C) 2009 Nokia Corporation
  5. * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  6. *
  7. * Some code and ideas taken from drivers/video/omap/ driver
  8. * by Imre Deak.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License version 2 as published by
  12. * the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope that it will be useful, but WITHOUT
  15. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  16. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  17. * more details.
  18. *
  19. * You should have received a copy of the GNU General Public License along with
  20. * this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. #ifndef __OMAP2_DSS_H
  23. #define __OMAP2_DSS_H
  24. #include <linux/interrupt.h>
  25. #ifdef pr_fmt
  26. #undef pr_fmt
  27. #endif
  28. #ifdef DSS_SUBSYS_NAME
  29. #define pr_fmt(fmt) DSS_SUBSYS_NAME ": " fmt
  30. #else
  31. #define pr_fmt(fmt) fmt
  32. #endif
  33. #define DSSDBG(format, ...) \
  34. pr_debug(format, ## __VA_ARGS__)
  35. #ifdef DSS_SUBSYS_NAME
  36. #define DSSERR(format, ...) \
  37. printk(KERN_ERR "omapdss " DSS_SUBSYS_NAME " error: " format, \
  38. ## __VA_ARGS__)
  39. #else
  40. #define DSSERR(format, ...) \
  41. printk(KERN_ERR "omapdss error: " format, ## __VA_ARGS__)
  42. #endif
  43. #ifdef DSS_SUBSYS_NAME
  44. #define DSSINFO(format, ...) \
  45. printk(KERN_INFO "omapdss " DSS_SUBSYS_NAME ": " format, \
  46. ## __VA_ARGS__)
  47. #else
  48. #define DSSINFO(format, ...) \
  49. printk(KERN_INFO "omapdss: " format, ## __VA_ARGS__)
  50. #endif
  51. #ifdef DSS_SUBSYS_NAME
  52. #define DSSWARN(format, ...) \
  53. printk(KERN_WARNING "omapdss " DSS_SUBSYS_NAME ": " format, \
  54. ## __VA_ARGS__)
  55. #else
  56. #define DSSWARN(format, ...) \
  57. printk(KERN_WARNING "omapdss: " format, ## __VA_ARGS__)
  58. #endif
  59. /* OMAP TRM gives bitfields as start:end, where start is the higher bit
  60. number. For example 7:0 */
  61. #define FLD_MASK(start, end) (((1 << ((start) - (end) + 1)) - 1) << (end))
  62. #define FLD_VAL(val, start, end) (((val) << (end)) & FLD_MASK(start, end))
  63. #define FLD_GET(val, start, end) (((val) & FLD_MASK(start, end)) >> (end))
  64. #define FLD_MOD(orig, val, start, end) \
  65. (((orig) & ~FLD_MASK(start, end)) | FLD_VAL(val, start, end))
  66. enum omap_dss_clk_source {
  67. OMAP_DSS_CLK_SRC_FCK = 0, /* OMAP2/3: DSS1_ALWON_FCLK
  68. * OMAP4: DSS_FCLK */
  69. OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC, /* OMAP3: DSI1_PLL_FCLK
  70. * OMAP4: PLL1_CLK1 */
  71. OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI, /* OMAP3: DSI2_PLL_FCLK
  72. * OMAP4: PLL1_CLK2 */
  73. OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC, /* OMAP4: PLL2_CLK1 */
  74. OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI, /* OMAP4: PLL2_CLK2 */
  75. };
  76. enum dss_io_pad_mode {
  77. DSS_IO_PAD_MODE_RESET,
  78. DSS_IO_PAD_MODE_RFBI,
  79. DSS_IO_PAD_MODE_BYPASS,
  80. };
  81. enum dss_hdmi_venc_clk_source_select {
  82. DSS_VENC_TV_CLK = 0,
  83. DSS_HDMI_M_PCLK = 1,
  84. };
  85. enum dss_dsi_content_type {
  86. DSS_DSI_CONTENT_DCS,
  87. DSS_DSI_CONTENT_GENERIC,
  88. };
  89. enum dss_writeback_channel {
  90. DSS_WB_LCD1_MGR = 0,
  91. DSS_WB_LCD2_MGR = 1,
  92. DSS_WB_TV_MGR = 2,
  93. DSS_WB_OVL0 = 3,
  94. DSS_WB_OVL1 = 4,
  95. DSS_WB_OVL2 = 5,
  96. DSS_WB_OVL3 = 6,
  97. DSS_WB_LCD3_MGR = 7,
  98. };
  99. enum dss_pll_id {
  100. DSS_PLL_DSI1,
  101. DSS_PLL_DSI2,
  102. DSS_PLL_HDMI,
  103. DSS_PLL_VIDEO1,
  104. DSS_PLL_VIDEO2,
  105. };
  106. struct dss_pll;
  107. #define DSS_PLL_MAX_HSDIVS 4
  108. /*
  109. * Type-A PLLs: clkout[]/mX[] refer to hsdiv outputs m4, m5, m6, m7.
  110. * Type-B PLLs: clkout[0] refers to m2.
  111. */
  112. struct dss_pll_clock_info {
  113. /* rates that we get with dividers below */
  114. unsigned long fint;
  115. unsigned long clkdco;
  116. unsigned long clkout[DSS_PLL_MAX_HSDIVS];
  117. /* dividers */
  118. u16 n;
  119. u16 m;
  120. u32 mf;
  121. u16 mX[DSS_PLL_MAX_HSDIVS];
  122. u16 sd;
  123. };
  124. struct dss_pll_ops {
  125. int (*enable)(struct dss_pll *pll);
  126. void (*disable)(struct dss_pll *pll);
  127. int (*set_config)(struct dss_pll *pll,
  128. const struct dss_pll_clock_info *cinfo);
  129. };
  130. struct dss_pll_hw {
  131. unsigned n_max;
  132. unsigned m_min;
  133. unsigned m_max;
  134. unsigned mX_max;
  135. unsigned long fint_min, fint_max;
  136. unsigned long clkdco_min, clkdco_low, clkdco_max;
  137. u8 n_msb, n_lsb;
  138. u8 m_msb, m_lsb;
  139. u8 mX_msb[DSS_PLL_MAX_HSDIVS], mX_lsb[DSS_PLL_MAX_HSDIVS];
  140. bool has_stopmode;
  141. bool has_freqsel;
  142. bool has_selfreqdco;
  143. bool has_refsel;
  144. };
  145. struct dss_pll {
  146. const char *name;
  147. enum dss_pll_id id;
  148. struct clk *clkin;
  149. struct regulator *regulator;
  150. void __iomem *base;
  151. const struct dss_pll_hw *hw;
  152. const struct dss_pll_ops *ops;
  153. struct dss_pll_clock_info cinfo;
  154. };
  155. struct dispc_clock_info {
  156. /* rates that we get with dividers below */
  157. unsigned long lck;
  158. unsigned long pck;
  159. /* dividers */
  160. u16 lck_div;
  161. u16 pck_div;
  162. };
  163. struct dss_lcd_mgr_config {
  164. enum dss_io_pad_mode io_pad_mode;
  165. bool stallmode;
  166. bool fifohandcheck;
  167. struct dispc_clock_info clock_info;
  168. int video_port_width;
  169. int lcden_sig_polarity;
  170. };
  171. struct seq_file;
  172. struct platform_device;
  173. /* core */
  174. struct platform_device *dss_get_core_pdev(void);
  175. int dss_dsi_enable_pads(int dsi_id, unsigned lane_mask);
  176. void dss_dsi_disable_pads(int dsi_id, unsigned lane_mask);
  177. int dss_set_min_bus_tput(struct device *dev, unsigned long tput);
  178. int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *));
  179. /* display */
  180. int dss_suspend_all_devices(void);
  181. int dss_resume_all_devices(void);
  182. void dss_disable_all_devices(void);
  183. int display_init_sysfs(struct platform_device *pdev);
  184. void display_uninit_sysfs(struct platform_device *pdev);
  185. /* manager */
  186. int dss_init_overlay_managers(void);
  187. void dss_uninit_overlay_managers(void);
  188. int dss_init_overlay_managers_sysfs(struct platform_device *pdev);
  189. void dss_uninit_overlay_managers_sysfs(struct platform_device *pdev);
  190. int dss_mgr_simple_check(struct omap_overlay_manager *mgr,
  191. const struct omap_overlay_manager_info *info);
  192. int dss_mgr_check_timings(struct omap_overlay_manager *mgr,
  193. const struct omap_video_timings *timings);
  194. int dss_mgr_check(struct omap_overlay_manager *mgr,
  195. struct omap_overlay_manager_info *info,
  196. const struct omap_video_timings *mgr_timings,
  197. const struct dss_lcd_mgr_config *config,
  198. struct omap_overlay_info **overlay_infos);
  199. static inline bool dss_mgr_is_lcd(enum omap_channel id)
  200. {
  201. if (id == OMAP_DSS_CHANNEL_LCD || id == OMAP_DSS_CHANNEL_LCD2 ||
  202. id == OMAP_DSS_CHANNEL_LCD3)
  203. return true;
  204. else
  205. return false;
  206. }
  207. int dss_manager_kobj_init(struct omap_overlay_manager *mgr,
  208. struct platform_device *pdev);
  209. void dss_manager_kobj_uninit(struct omap_overlay_manager *mgr);
  210. /* overlay */
  211. void dss_init_overlays(struct platform_device *pdev);
  212. void dss_uninit_overlays(struct platform_device *pdev);
  213. void dss_overlay_setup_dispc_manager(struct omap_overlay_manager *mgr);
  214. int dss_ovl_simple_check(struct omap_overlay *ovl,
  215. const struct omap_overlay_info *info);
  216. int dss_ovl_check(struct omap_overlay *ovl, struct omap_overlay_info *info,
  217. const struct omap_video_timings *mgr_timings);
  218. bool dss_ovl_use_replication(struct dss_lcd_mgr_config config,
  219. enum omap_color_mode mode);
  220. int dss_overlay_kobj_init(struct omap_overlay *ovl,
  221. struct platform_device *pdev);
  222. void dss_overlay_kobj_uninit(struct omap_overlay *ovl);
  223. /* DSS */
  224. int dss_init_platform_driver(void) __init;
  225. void dss_uninit_platform_driver(void);
  226. int dss_runtime_get(void);
  227. void dss_runtime_put(void);
  228. unsigned long dss_get_dispc_clk_rate(void);
  229. int dss_dpi_select_source(int port, enum omap_channel channel);
  230. void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select);
  231. enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void);
  232. const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src);
  233. void dss_dump_clocks(struct seq_file *s);
  234. /* DSS VIDEO PLL */
  235. struct dss_pll *dss_video_pll_init(struct platform_device *pdev, int id,
  236. struct regulator *regulator);
  237. void dss_video_pll_uninit(struct dss_pll *pll);
  238. /* dss-of */
  239. struct device_node *dss_of_port_get_parent_device(struct device_node *port);
  240. u32 dss_of_port_get_port_number(struct device_node *port);
  241. #if defined(CONFIG_FB_OMAP2_DSS_DEBUGFS)
  242. void dss_debug_dump_clocks(struct seq_file *s);
  243. #endif
  244. void dss_ctrl_pll_enable(enum dss_pll_id pll_id, bool enable);
  245. void dss_ctrl_pll_set_control_mux(enum dss_pll_id pll_id,
  246. enum omap_channel channel);
  247. void dss_sdi_init(int datapairs);
  248. int dss_sdi_enable(void);
  249. void dss_sdi_disable(void);
  250. void dss_select_dsi_clk_source(int dsi_module,
  251. enum omap_dss_clk_source clk_src);
  252. void dss_select_lcd_clk_source(enum omap_channel channel,
  253. enum omap_dss_clk_source clk_src);
  254. enum omap_dss_clk_source dss_get_dispc_clk_source(void);
  255. enum omap_dss_clk_source dss_get_dsi_clk_source(int dsi_module);
  256. enum omap_dss_clk_source dss_get_lcd_clk_source(enum omap_channel channel);
  257. void dss_set_venc_output(enum omap_dss_venc_type type);
  258. void dss_set_dac_pwrdn_bgz(bool enable);
  259. int dss_set_fck_rate(unsigned long rate);
  260. typedef bool (*dss_div_calc_func)(unsigned long fck, void *data);
  261. bool dss_div_calc(unsigned long pck, unsigned long fck_min,
  262. dss_div_calc_func func, void *data);
  263. /* SDI */
  264. int sdi_init_platform_driver(void) __init;
  265. void sdi_uninit_platform_driver(void);
  266. #ifdef CONFIG_FB_OMAP2_DSS_SDI
  267. int sdi_init_port(struct platform_device *pdev, struct device_node *port);
  268. void sdi_uninit_port(struct device_node *port);
  269. #else
  270. static inline int sdi_init_port(struct platform_device *pdev,
  271. struct device_node *port)
  272. {
  273. return 0;
  274. }
  275. static inline void sdi_uninit_port(struct device_node *port)
  276. {
  277. }
  278. #endif
  279. /* DSI */
  280. #ifdef CONFIG_FB_OMAP2_DSS_DSI
  281. struct dentry;
  282. struct file_operations;
  283. int dsi_init_platform_driver(void) __init;
  284. void dsi_uninit_platform_driver(void);
  285. void dsi_dump_clocks(struct seq_file *s);
  286. void dsi_irq_handler(void);
  287. u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt);
  288. #else
  289. static inline u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt)
  290. {
  291. WARN(1, "%s: DSI not compiled in, returning pixel_size as 0\n",
  292. __func__);
  293. return 0;
  294. }
  295. #endif
  296. /* DPI */
  297. int dpi_init_platform_driver(void) __init;
  298. void dpi_uninit_platform_driver(void);
  299. #ifdef CONFIG_FB_OMAP2_DSS_DPI
  300. int dpi_init_port(struct platform_device *pdev, struct device_node *port);
  301. void dpi_uninit_port(struct device_node *port);
  302. #else
  303. static inline int dpi_init_port(struct platform_device *pdev,
  304. struct device_node *port)
  305. {
  306. return 0;
  307. }
  308. static inline void dpi_uninit_port(struct device_node *port)
  309. {
  310. }
  311. #endif
  312. /* DISPC */
  313. int dispc_init_platform_driver(void) __init;
  314. void dispc_uninit_platform_driver(void);
  315. void dispc_dump_clocks(struct seq_file *s);
  316. void dispc_enable_sidle(void);
  317. void dispc_disable_sidle(void);
  318. void dispc_lcd_enable_signal(bool enable);
  319. void dispc_pck_free_enable(bool enable);
  320. void dispc_enable_fifomerge(bool enable);
  321. void dispc_enable_gamma_table(bool enable);
  322. typedef bool (*dispc_div_calc_func)(int lckd, int pckd, unsigned long lck,
  323. unsigned long pck, void *data);
  324. bool dispc_div_calc(unsigned long dispc,
  325. unsigned long pck_min, unsigned long pck_max,
  326. dispc_div_calc_func func, void *data);
  327. bool dispc_mgr_timings_ok(enum omap_channel channel,
  328. const struct omap_video_timings *timings);
  329. int dispc_calc_clock_rates(unsigned long dispc_fclk_rate,
  330. struct dispc_clock_info *cinfo);
  331. void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high);
  332. void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane,
  333. u32 *fifo_low, u32 *fifo_high, bool use_fifomerge,
  334. bool manual_update);
  335. void dispc_mgr_set_clock_div(enum omap_channel channel,
  336. const struct dispc_clock_info *cinfo);
  337. int dispc_mgr_get_clock_div(enum omap_channel channel,
  338. struct dispc_clock_info *cinfo);
  339. void dispc_set_tv_pclk(unsigned long pclk);
  340. u32 dispc_wb_get_framedone_irq(void);
  341. bool dispc_wb_go_busy(void);
  342. void dispc_wb_go(void);
  343. void dispc_wb_enable(bool enable);
  344. bool dispc_wb_is_enabled(void);
  345. void dispc_wb_set_channel_in(enum dss_writeback_channel channel);
  346. int dispc_wb_setup(const struct omap_dss_writeback_info *wi,
  347. bool mem_to_mem, const struct omap_video_timings *timings);
  348. u32 dispc_read_irqstatus(void);
  349. void dispc_clear_irqstatus(u32 mask);
  350. u32 dispc_read_irqenable(void);
  351. void dispc_write_irqenable(u32 mask);
  352. int dispc_request_irq(irq_handler_t handler, void *dev_id);
  353. void dispc_free_irq(void *dev_id);
  354. int dispc_runtime_get(void);
  355. void dispc_runtime_put(void);
  356. void dispc_mgr_enable(enum omap_channel channel, bool enable);
  357. bool dispc_mgr_is_enabled(enum omap_channel channel);
  358. u32 dispc_mgr_get_vsync_irq(enum omap_channel channel);
  359. u32 dispc_mgr_get_framedone_irq(enum omap_channel channel);
  360. u32 dispc_mgr_get_sync_lost_irq(enum omap_channel channel);
  361. bool dispc_mgr_go_busy(enum omap_channel channel);
  362. void dispc_mgr_go(enum omap_channel channel);
  363. void dispc_mgr_set_lcd_config(enum omap_channel channel,
  364. const struct dss_lcd_mgr_config *config);
  365. void dispc_mgr_set_timings(enum omap_channel channel,
  366. const struct omap_video_timings *timings);
  367. void dispc_mgr_setup(enum omap_channel channel,
  368. const struct omap_overlay_manager_info *info);
  369. int dispc_ovl_check(enum omap_plane plane, enum omap_channel channel,
  370. const struct omap_overlay_info *oi,
  371. const struct omap_video_timings *timings,
  372. int *x_predecim, int *y_predecim);
  373. int dispc_ovl_enable(enum omap_plane plane, bool enable);
  374. bool dispc_ovl_enabled(enum omap_plane plane);
  375. void dispc_ovl_set_channel_out(enum omap_plane plane,
  376. enum omap_channel channel);
  377. int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
  378. bool replication, const struct omap_video_timings *mgr_timings,
  379. bool mem_to_mem);
  380. /* VENC */
  381. int venc_init_platform_driver(void) __init;
  382. void venc_uninit_platform_driver(void);
  383. /* HDMI */
  384. int hdmi4_init_platform_driver(void) __init;
  385. void hdmi4_uninit_platform_driver(void);
  386. int hdmi5_init_platform_driver(void) __init;
  387. void hdmi5_uninit_platform_driver(void);
  388. /* RFBI */
  389. int rfbi_init_platform_driver(void) __init;
  390. void rfbi_uninit_platform_driver(void);
  391. #ifdef CONFIG_FB_OMAP2_DSS_COLLECT_IRQ_STATS
  392. static inline void dss_collect_irq_stats(u32 irqstatus, unsigned *irq_arr)
  393. {
  394. int b;
  395. for (b = 0; b < 32; ++b) {
  396. if (irqstatus & (1 << b))
  397. irq_arr[b]++;
  398. }
  399. }
  400. #endif
  401. /* PLL */
  402. typedef bool (*dss_pll_calc_func)(int n, int m, unsigned long fint,
  403. unsigned long clkdco, void *data);
  404. typedef bool (*dss_hsdiv_calc_func)(int m_dispc, unsigned long dispc,
  405. void *data);
  406. int dss_pll_register(struct dss_pll *pll);
  407. void dss_pll_unregister(struct dss_pll *pll);
  408. struct dss_pll *dss_pll_find(const char *name);
  409. int dss_pll_enable(struct dss_pll *pll);
  410. void dss_pll_disable(struct dss_pll *pll);
  411. int dss_pll_set_config(struct dss_pll *pll,
  412. const struct dss_pll_clock_info *cinfo);
  413. bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco,
  414. unsigned long out_min, unsigned long out_max,
  415. dss_hsdiv_calc_func func, void *data);
  416. bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin,
  417. unsigned long pll_min, unsigned long pll_max,
  418. dss_pll_calc_func func, void *data);
  419. int dss_pll_write_config_type_a(struct dss_pll *pll,
  420. const struct dss_pll_clock_info *cinfo);
  421. int dss_pll_write_config_type_b(struct dss_pll *pll,
  422. const struct dss_pll_clock_info *cinfo);
  423. int dss_pll_wait_reset_done(struct dss_pll *pll);
  424. /* compat */
  425. struct dss_mgr_ops {
  426. int (*connect)(struct omap_overlay_manager *mgr,
  427. struct omap_dss_device *dst);
  428. void (*disconnect)(struct omap_overlay_manager *mgr,
  429. struct omap_dss_device *dst);
  430. void (*start_update)(struct omap_overlay_manager *mgr);
  431. int (*enable)(struct omap_overlay_manager *mgr);
  432. void (*disable)(struct omap_overlay_manager *mgr);
  433. void (*set_timings)(struct omap_overlay_manager *mgr,
  434. const struct omap_video_timings *timings);
  435. void (*set_lcd_config)(struct omap_overlay_manager *mgr,
  436. const struct dss_lcd_mgr_config *config);
  437. int (*register_framedone_handler)(struct omap_overlay_manager *mgr,
  438. void (*handler)(void *), void *data);
  439. void (*unregister_framedone_handler)(struct omap_overlay_manager *mgr,
  440. void (*handler)(void *), void *data);
  441. };
  442. int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops);
  443. void dss_uninstall_mgr_ops(void);
  444. int dss_mgr_connect(struct omap_overlay_manager *mgr,
  445. struct omap_dss_device *dst);
  446. void dss_mgr_disconnect(struct omap_overlay_manager *mgr,
  447. struct omap_dss_device *dst);
  448. void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
  449. const struct omap_video_timings *timings);
  450. void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
  451. const struct dss_lcd_mgr_config *config);
  452. int dss_mgr_enable(struct omap_overlay_manager *mgr);
  453. void dss_mgr_disable(struct omap_overlay_manager *mgr);
  454. void dss_mgr_start_update(struct omap_overlay_manager *mgr);
  455. int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr,
  456. void (*handler)(void *), void *data);
  457. void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr,
  458. void (*handler)(void *), void *data);
  459. #endif