aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-04-01 18:22:36 -0400
committerRob Clark <robdclark@gmail.com>2014-04-01 20:18:08 -0400
commitdc415ff97d6b8f21cc6d264962f3a857a8d44650 (patch)
tree411cf00bd18ea38d52f58a1db867cef8b89e8424 /include/drm/drm_crtc.h
parentc103d1cfb3543f61ec44d4d15a84c888db84794d (diff)
drm: Add drm_universal_plane_init()
Add a new plane initialization interface for universal plane support that allows a specific plane type (primary, cursor, or overlay) to be specified. drm_plane_init() remains as a compatibility API to reduce churn in existing drivers. The 'bool priv' parameter has been changed to 'bool is_primary' under the assumption that all existing uses of private planes were representing primary planes. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 2765a4eea4cc..201d8c29a7cd 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -874,12 +874,19 @@ static inline bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
874 return !!(encoder->possible_crtcs & drm_crtc_mask(crtc)); 874 return !!(encoder->possible_crtcs & drm_crtc_mask(crtc));
875} 875}
876 876
877extern int drm_universal_plane_init(struct drm_device *dev,
878 struct drm_plane *plane,
879 unsigned long possible_crtcs,
880 const struct drm_plane_funcs *funcs,
881 const uint32_t *formats,
882 uint32_t format_count,
883 enum drm_plane_type type);
877extern int drm_plane_init(struct drm_device *dev, 884extern int drm_plane_init(struct drm_device *dev,
878 struct drm_plane *plane, 885 struct drm_plane *plane,
879 unsigned long possible_crtcs, 886 unsigned long possible_crtcs,
880 const struct drm_plane_funcs *funcs, 887 const struct drm_plane_funcs *funcs,
881 const uint32_t *formats, uint32_t format_count, 888 const uint32_t *formats, uint32_t format_count,
882 bool priv); 889 bool is_primary);
883extern void drm_plane_cleanup(struct drm_plane *plane); 890extern void drm_plane_cleanup(struct drm_plane *plane);
884extern void drm_plane_force_disable(struct drm_plane *plane); 891extern void drm_plane_force_disable(struct drm_plane *plane);
885extern int drm_crtc_check_viewport(const struct drm_crtc *crtc, 892extern int drm_crtc_check_viewport(const struct drm_crtc *crtc,