diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-11-07 15:03:22 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-06 05:23:35 -0500 |
commit | a62c93d5df1695535afa1413f6496adc219a196e (patch) | |
tree | 82b959a4f635b8a39832305c1f26ed5f0babaab2 /include/drm | |
parent | c1aaca237c6d4d9a60390e69048d1eff1dc7506a (diff) |
drm: document the drm_mode_config structure
Including a comment about what the locks are for.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 2f8a4ac2432f..dd557272eca7 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -714,7 +714,30 @@ struct drm_mode_group { | |||
714 | 714 | ||
715 | /** | 715 | /** |
716 | * drm_mode_config - Mode configuration control structure | 716 | * drm_mode_config - Mode configuration control structure |
717 | * @mutex: mutex protecting KMS related lists and structures | ||
718 | * @idr_mutex: mutex for KMS ID allocation and management | ||
719 | * @crtc_idr: main KMS ID tracking object | ||
720 | * @num_fb: number of fbs available | ||
721 | * @fb_list: list of framebuffers available | ||
722 | * @num_connector: number of connectors on this device | ||
723 | * @connector_list: list of connector objects | ||
724 | * @num_encoder: number of encoders on this device | ||
725 | * @encoder_list: list of encoder objects | ||
726 | * @num_crtc: number of CRTCs on this device | ||
727 | * @crtc_list: list of CRTC objects | ||
728 | * @min_width: minimum pixel width on this device | ||
729 | * @min_height: minimum pixel height on this device | ||
730 | * @max_width: maximum pixel width on this device | ||
731 | * @max_height: maximum pixel height on this device | ||
732 | * @funcs: core driver provided mode setting functions | ||
733 | * @fb_base: base address of the framebuffer | ||
734 | * @poll_enabled: track polling status for this device | ||
735 | * @output_poll_work: delayed work for polling in process context | ||
736 | * @*_property: core property tracking | ||
717 | * | 737 | * |
738 | * Core mode resource tracking structure. All CRTC, encoders, and connectors | ||
739 | * enumerated by the driver are added here, as are global properties. Some | ||
740 | * global restrictions are also here, e.g. dimension restrictions. | ||
718 | */ | 741 | */ |
719 | struct drm_mode_config { | 742 | struct drm_mode_config { |
720 | struct mutex mutex; /* protects configuration (mode lists etc.) */ | 743 | struct mutex mutex; /* protects configuration (mode lists etc.) */ |