diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-02 14:04:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-02 14:04:41 +1000 |
commit | 4e7b24639808e5e1e2c05143028db1a3bc2812e9 (patch) | |
tree | ba16702759e87caa1119a46a1e18d27048c9667d /shared-core | |
parent | eba6cdc936cb33d929997ccb9bade6f75bb40670 (diff) |
drm: add functions to get/set gamma ramps
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index 7e94fb82..132c7746 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -1048,7 +1048,7 @@ struct drm_mode_crtc { int count_possibles; unsigned int possibles; /**< Connectors that can be connected */ - int gamma_size; + uint32_t gamma_size; int mode_valid; struct drm_mode_modeinfo mode; }; @@ -1173,6 +1173,16 @@ struct drm_mode_hotplug { uint32_t counter; }; +struct drm_mode_crtc_lut { + + uint32_t crtc_id; + uint32_t gamma_size; + + uint64_t red; + uint64_t green; + uint64_t blue; +}; + /** * \name Ioctls Definitions */ @@ -1289,6 +1299,9 @@ struct drm_mode_hotplug { #define DRM_IOCTL_MODE_REPLACEFB DRM_IOWR(0xAF, struct drm_mode_fb_cmd) #define DRM_IOCTL_MODE_GETENCODER DRM_IOWR(0xB0, struct drm_mode_get_encoder) +#define DRM_IOCTL_MODE_GETGAMMA DRM_IOWR(0xB1, struct drm_mode_crtc_lut) +#define DRM_IOCTL_MODE_SETGAMMA DRM_IOWR(0xB2, struct drm_mode_crtc_lut) + /*@}*/ /** |