diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-06-05 08:39:56 -0400 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-06-17 04:34:40 -0400 |
commit | 35f2c3ae764ec8d458d6b9c78826d23c112abc7a (patch) | |
tree | 0e52d8e033d49d11abc7e8d22896064a6e4efda9 /drivers/gpu/drm/drm_crtc.c | |
parent | 3858bc5d5362ed3060ff7773c080813dd39b995e (diff) |
drm: Add kernel-doc for plane functions
v2: Follow the drm_crtc documentation fixes
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index c8042a1c83b8..755d9bb0b4e2 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -819,6 +819,21 @@ void drm_encoder_cleanup(struct drm_encoder *encoder) | |||
819 | } | 819 | } |
820 | EXPORT_SYMBOL(drm_encoder_cleanup); | 820 | EXPORT_SYMBOL(drm_encoder_cleanup); |
821 | 821 | ||
822 | /** | ||
823 | * drm_plane_init - Initialise a new plane object | ||
824 | * @dev: DRM device | ||
825 | * @plane: plane object to init | ||
826 | * @possible_crtcs: bitmask of possible CRTCs | ||
827 | * @funcs: callbacks for the new plane | ||
828 | * @formats: array of supported formats (%DRM_FORMAT_*) | ||
829 | * @format_count: number of elements in @formats | ||
830 | * @priv: plane is private (hidden from userspace)? | ||
831 | * | ||
832 | * Inits a new object created as base part of a driver plane object. | ||
833 | * | ||
834 | * RETURNS: | ||
835 | * Zero on success, error code on failure. | ||
836 | */ | ||
822 | int drm_plane_init(struct drm_device *dev, struct drm_plane *plane, | 837 | int drm_plane_init(struct drm_device *dev, struct drm_plane *plane, |
823 | unsigned long possible_crtcs, | 838 | unsigned long possible_crtcs, |
824 | const struct drm_plane_funcs *funcs, | 839 | const struct drm_plane_funcs *funcs, |
@@ -867,6 +882,14 @@ int drm_plane_init(struct drm_device *dev, struct drm_plane *plane, | |||
867 | } | 882 | } |
868 | EXPORT_SYMBOL(drm_plane_init); | 883 | EXPORT_SYMBOL(drm_plane_init); |
869 | 884 | ||
885 | /** | ||
886 | * drm_plane_cleanup - Clean up the core plane usage | ||
887 | * @plane: plane to cleanup | ||
888 | * | ||
889 | * This function cleans up @plane and removes it from the DRM mode setting | ||
890 | * core. Note that the function does *not* free the plane structure itself, | ||
891 | * this is the responsibility of the caller. | ||
892 | */ | ||
870 | void drm_plane_cleanup(struct drm_plane *plane) | 893 | void drm_plane_cleanup(struct drm_plane *plane) |
871 | { | 894 | { |
872 | struct drm_device *dev = plane->dev; | 895 | struct drm_device *dev = plane->dev; |
@@ -883,6 +906,15 @@ void drm_plane_cleanup(struct drm_plane *plane) | |||
883 | } | 906 | } |
884 | EXPORT_SYMBOL(drm_plane_cleanup); | 907 | EXPORT_SYMBOL(drm_plane_cleanup); |
885 | 908 | ||
909 | /** | ||
910 | * drm_plane_force_disable - Forcibly disable a plane | ||
911 | * @plane: plane to disable | ||
912 | * | ||
913 | * Forces the plane to be disabled. | ||
914 | * | ||
915 | * Used when the plane's current framebuffer is destroyed, | ||
916 | * and when restoring fbdev mode. | ||
917 | */ | ||
886 | void drm_plane_force_disable(struct drm_plane *plane) | 918 | void drm_plane_force_disable(struct drm_plane *plane) |
887 | { | 919 | { |
888 | int ret; | 920 | int ret; |