diff options
author | Dave Airlie <airlied@redhat.com> | 2013-07-02 09:21:06 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-02 09:21:39 +0100 |
commit | 2e0ab6237697c9754d92689f77c1792c11be881b (patch) | |
tree | 9d3562d6a16d5e9d46403a63083493cdf443a8f7 /include/drm | |
parent | 378bb47a784a3808c9b256fe7a52e10a4fcabf92 (diff) |
drm: add hotspot cursor interface support.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm.h | 1 | ||||
-rw-r--r-- | include/drm/drm_mode.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h index a847689f..616824be 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -733,6 +733,7 @@ struct drm_prime_handle { #define DRM_IOCTL_MODE_ADDFB2 DRM_IOWR(0xB8, struct drm_mode_fb_cmd2) #define DRM_IOCTL_MODE_OBJ_GETPROPERTIES DRM_IOWR(0xB9, struct drm_mode_obj_get_properties) #define DRM_IOCTL_MODE_OBJ_SETPROPERTY DRM_IOWR(0xBA, struct drm_mode_obj_set_property) +#define DRM_IOCTL_MODE_CURSOR2 DRM_IOWR(0xBB, struct drm_mode_cursor2) /** * Device specific ioctls should only be in their respective headers diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 62ba997f..d41d76bc 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -390,6 +390,19 @@ struct drm_mode_cursor { __u32 handle; }; +struct drm_mode_cursor2 { + __u32 flags; + __u32 crtc_id; + __s32 x; + __s32 y; + __u32 width; + __u32 height; + /* driver specific handle */ + __u32 handle; + __s32 hot_x; + __s32 hot_y; +}; + struct drm_mode_crtc_lut { __u32 crtc_id; __u32 gamma_size; |