diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2012-05-15 17:09:05 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-17 06:11:46 -0400 |
commit | bffd9de0297702566e6aec0678c7ebc3806fe3db (patch) | |
tree | e94c9388bb9f6c765f8bc47b26f92b7d2ac75ae3 /include/drm/drm_crtc.h | |
parent | 7f88a9bedfb814a2d4d537db8295c524298256cb (diff) |
drm: add CRTC properties
The i915 driver needs this for the rotation and overscan compensation
properties. Other drivers might need this too.
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 6d36552899ae..d59bb7d93657 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -306,7 +306,8 @@ struct drm_plane; | |||
306 | * @mode_fixup: fixup proposed mode | 306 | * @mode_fixup: fixup proposed mode |
307 | * @mode_set: set the desired mode on the CRTC | 307 | * @mode_set: set the desired mode on the CRTC |
308 | * @gamma_set: specify color ramp for CRTC | 308 | * @gamma_set: specify color ramp for CRTC |
309 | * @destroy: deinit and free object. | 309 | * @destroy: deinit and free object |
310 | * @set_property: called when a property is changed | ||
310 | * | 311 | * |
311 | * The drm_crtc_funcs structure is the central CRTC management structure | 312 | * The drm_crtc_funcs structure is the central CRTC management structure |
312 | * in the DRM. Each CRTC controls one or more connectors (note that the name | 313 | * in the DRM. Each CRTC controls one or more connectors (note that the name |
@@ -350,6 +351,9 @@ struct drm_crtc_funcs { | |||
350 | int (*page_flip)(struct drm_crtc *crtc, | 351 | int (*page_flip)(struct drm_crtc *crtc, |
351 | struct drm_framebuffer *fb, | 352 | struct drm_framebuffer *fb, |
352 | struct drm_pending_vblank_event *event); | 353 | struct drm_pending_vblank_event *event); |
354 | |||
355 | int (*set_property)(struct drm_crtc *crtc, | ||
356 | struct drm_property *property, uint64_t val); | ||
353 | }; | 357 | }; |
354 | 358 | ||
355 | /** | 359 | /** |
@@ -369,6 +373,7 @@ struct drm_crtc_funcs { | |||
369 | * @framedur_ns: precise line timing | 373 | * @framedur_ns: precise line timing |
370 | * @pixeldur_ns: precise pixel timing | 374 | * @pixeldur_ns: precise pixel timing |
371 | * @helper_private: mid-layer private data | 375 | * @helper_private: mid-layer private data |
376 | * @properties: property tracking for this CRTC | ||
372 | * | 377 | * |
373 | * Each CRTC may have one or more connectors associated with it. This structure | 378 | * Each CRTC may have one or more connectors associated with it. This structure |
374 | * allows the CRTC to be controlled. | 379 | * allows the CRTC to be controlled. |
@@ -404,6 +409,8 @@ struct drm_crtc { | |||
404 | 409 | ||
405 | /* if you are using the helper */ | 410 | /* if you are using the helper */ |
406 | void *helper_private; | 411 | void *helper_private; |
412 | |||
413 | struct drm_object_properties properties; | ||
407 | }; | 414 | }; |
408 | 415 | ||
409 | 416 | ||