diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-17 05:15:31 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-17 05:17:18 -0400 |
commit | aa1e49a3752f09b3d2ab706f6d48916a04acf557 (patch) | |
tree | 6b6f9d0429f4b2c19b3c38b0281eed9dd7083490 /include/video/omapvrfb.h | |
parent | 8c05a412243b522a263326c4839aec081151147c (diff) |
OMAPDSS: VRFB: add omap_vrfb_supported()
Add an exported function omap_vrfb_supported() which returns true if the
vrfb driver has been loaded succesfully. This can be used to decide if
VRFB can be used or not.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapvrfb.h')
-rw-r--r-- | include/video/omapvrfb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/omapvrfb.h b/include/video/omapvrfb.h index 3792bdea2f6d..bb0bd89f8bc6 100644 --- a/include/video/omapvrfb.h +++ b/include/video/omapvrfb.h | |||
@@ -36,6 +36,7 @@ struct vrfb { | |||
36 | }; | 36 | }; |
37 | 37 | ||
38 | #ifdef CONFIG_OMAP2_VRFB | 38 | #ifdef CONFIG_OMAP2_VRFB |
39 | extern bool omap_vrfb_supported(void); | ||
39 | extern int omap_vrfb_request_ctx(struct vrfb *vrfb); | 40 | extern int omap_vrfb_request_ctx(struct vrfb *vrfb); |
40 | extern void omap_vrfb_release_ctx(struct vrfb *vrfb); | 41 | extern void omap_vrfb_release_ctx(struct vrfb *vrfb); |
41 | extern void omap_vrfb_adjust_size(u16 *width, u16 *height, | 42 | extern void omap_vrfb_adjust_size(u16 *width, u16 *height, |
@@ -49,6 +50,7 @@ extern int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot); | |||
49 | extern void omap_vrfb_restore_context(void); | 50 | extern void omap_vrfb_restore_context(void); |
50 | 51 | ||
51 | #else | 52 | #else |
53 | static inline bool omap_vrfb_supported(void) { return false; } | ||
52 | static inline int omap_vrfb_request_ctx(struct vrfb *vrfb) { return 0; } | 54 | static inline int omap_vrfb_request_ctx(struct vrfb *vrfb) { return 0; } |
53 | static inline void omap_vrfb_release_ctx(struct vrfb *vrfb) {} | 55 | static inline void omap_vrfb_release_ctx(struct vrfb *vrfb) {} |
54 | static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, | 56 | static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, |