diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-18 08:14:46 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:40:52 -0400 |
commit | ecd29947862a9a145c07098499c76c22ed5b8eb3 (patch) | |
tree | 70ff60ebf9048025795dbe2882a361154eb5f00d /drivers/video/sh_mobile_lcdcfb.h | |
parent | 458981c3886133667e020900f53538f1fbc3ea1d (diff) |
sh_mobile_lcdc: Add display notify callback to sh_mobile_lcdc_chan
The callback implements 3 notification events:
- SH_MOBILE_LCDC_EVENT_DISPLAY_CONNECT notifies the LCDC that the
display has been connected
- SH_MOBILE_LCDC_EVENT_DISPLAY_DISCONNECT notifies the LCDC that the
display has been disconnected
- SH_MOBILE_LCDC_EVENT_DISPLAY_MODE notifies that LCDC that a display
mode has been detected
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.h')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h index 6fb956c8e603..e2eb7af438f7 100644 --- a/drivers/video/sh_mobile_lcdcfb.h +++ b/drivers/video/sh_mobile_lcdcfb.h | |||
@@ -30,6 +30,12 @@ struct sh_mobile_lcdc_entity_ops { | |||
30 | void (*display_off)(struct sh_mobile_lcdc_entity *entity); | 30 | void (*display_off)(struct sh_mobile_lcdc_entity *entity); |
31 | }; | 31 | }; |
32 | 32 | ||
33 | enum sh_mobile_lcdc_entity_event { | ||
34 | SH_MOBILE_LCDC_EVENT_DISPLAY_CONNECT, | ||
35 | SH_MOBILE_LCDC_EVENT_DISPLAY_DISCONNECT, | ||
36 | SH_MOBILE_LCDC_EVENT_DISPLAY_MODE, | ||
37 | }; | ||
38 | |||
33 | struct sh_mobile_lcdc_entity { | 39 | struct sh_mobile_lcdc_entity { |
34 | struct module *owner; | 40 | struct module *owner; |
35 | const struct sh_mobile_lcdc_entity_ops *ops; | 41 | const struct sh_mobile_lcdc_entity_ops *ops; |
@@ -70,6 +76,10 @@ struct sh_mobile_lcdc_chan { | |||
70 | unsigned long base_addr_y; | 76 | unsigned long base_addr_y; |
71 | unsigned long base_addr_c; | 77 | unsigned long base_addr_c; |
72 | unsigned int pitch; | 78 | unsigned int pitch; |
79 | |||
80 | int (*notify)(struct sh_mobile_lcdc_chan *ch, | ||
81 | enum sh_mobile_lcdc_entity_event event, | ||
82 | struct fb_var_screeninfo *var); | ||
73 | }; | 83 | }; |
74 | 84 | ||
75 | #endif | 85 | #endif |