aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-11-07 09:26:11 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-07 10:05:59 -0500
commiteda34273631a9c4bae65eb49394549f6007f2fb8 (patch)
tree08da37c0aee28207bdd173b58feefecd4d944554
parenta97a96347598201ae39b5aee67638dae2cebe454 (diff)
OMAPDSS: export dss_feat functions
Export dss_features related functions. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/dss_features.c6
-rw-r--r--drivers/video/omap2/dss/dss_features.h5
-rw-r--r--include/video/omapdss.h8
3 files changed, 14 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c
index 1d125c6bfd19..18688c12e30d 100644
--- a/drivers/video/omap2/dss/dss_features.c
+++ b/drivers/video/omap2/dss/dss_features.c
@@ -18,6 +18,7 @@
18 */ 18 */
19 19
20#include <linux/kernel.h> 20#include <linux/kernel.h>
21#include <linux/module.h>
21#include <linux/types.h> 22#include <linux/types.h>
22#include <linux/err.h> 23#include <linux/err.h>
23#include <linux/slab.h> 24#include <linux/slab.h>
@@ -839,11 +840,13 @@ int dss_feat_get_num_mgrs(void)
839{ 840{
840 return omap_current_dss_features->num_mgrs; 841 return omap_current_dss_features->num_mgrs;
841} 842}
843EXPORT_SYMBOL(dss_feat_get_num_mgrs);
842 844
843int dss_feat_get_num_ovls(void) 845int dss_feat_get_num_ovls(void)
844{ 846{
845 return omap_current_dss_features->num_ovls; 847 return omap_current_dss_features->num_ovls;
846} 848}
849EXPORT_SYMBOL(dss_feat_get_num_ovls);
847 850
848int dss_feat_get_num_wbs(void) 851int dss_feat_get_num_wbs(void)
849{ 852{
@@ -864,16 +867,19 @@ enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel
864{ 867{
865 return omap_current_dss_features->supported_displays[channel]; 868 return omap_current_dss_features->supported_displays[channel];
866} 869}
870EXPORT_SYMBOL(dss_feat_get_supported_displays);
867 871
868enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel) 872enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel)
869{ 873{
870 return omap_current_dss_features->supported_outputs[channel]; 874 return omap_current_dss_features->supported_outputs[channel];
871} 875}
876EXPORT_SYMBOL(dss_feat_get_supported_outputs);
872 877
873enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane) 878enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane)
874{ 879{
875 return omap_current_dss_features->supported_color_modes[plane]; 880 return omap_current_dss_features->supported_color_modes[plane];
876} 881}
882EXPORT_SYMBOL(dss_feat_get_supported_color_modes);
877 883
878enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane) 884enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane)
879{ 885{
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h
index 385b0afe63c2..489b9bec4a6d 100644
--- a/drivers/video/omap2/dss/dss_features.h
+++ b/drivers/video/omap2/dss/dss_features.h
@@ -101,14 +101,9 @@ enum dss_range_param {
101}; 101};
102 102
103/* DSS Feature Functions */ 103/* DSS Feature Functions */
104int dss_feat_get_num_mgrs(void);
105int dss_feat_get_num_ovls(void);
106int dss_feat_get_num_wbs(void); 104int dss_feat_get_num_wbs(void);
107unsigned long dss_feat_get_param_min(enum dss_range_param param); 105unsigned long dss_feat_get_param_min(enum dss_range_param param);
108unsigned long dss_feat_get_param_max(enum dss_range_param param); 106unsigned long dss_feat_get_param_max(enum dss_range_param param);
109enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel);
110enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel);
111enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane);
112enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane); 107enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane);
113bool dss_feat_color_mode_supported(enum omap_plane plane, 108bool dss_feat_color_mode_supported(enum omap_plane plane,
114 enum omap_color_mode color_mode); 109 enum omap_color_mode color_mode);
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index d1bf3bc54db6..8c9df4867273 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -755,6 +755,14 @@ const char *omapdss_get_default_display_name(void);
755int omap_dss_start_device(struct omap_dss_device *dssdev); 755int omap_dss_start_device(struct omap_dss_device *dssdev);
756void omap_dss_stop_device(struct omap_dss_device *dssdev); 756void omap_dss_stop_device(struct omap_dss_device *dssdev);
757 757
758int dss_feat_get_num_mgrs(void);
759int dss_feat_get_num_ovls(void);
760enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel);
761enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel);
762enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane);
763
764
765
758int omap_dss_get_num_overlay_managers(void); 766int omap_dss_get_num_overlay_managers(void);
759struct omap_overlay_manager *omap_dss_get_overlay_manager(int num); 767struct omap_overlay_manager *omap_dss_get_overlay_manager(int num);
760 768