diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-07-08 05:57:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-07-08 05:57:28 +0000 |
commit | 0272e2299660d4cc688a1dfbff98d02fd56e21bd (patch) | |
tree | 777991c68e0b72013857a77d9b965972589a83cf /sys/dev/pci | |
parent | d098f44be10c74a73bac76c10d070a406b3a1c05 (diff) |
add DRM_IOCTL_MODE_CURSOR2 definition from libdrm 2.4.46
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/drm.h | 3 | ||||
-rw-r--r-- | sys/dev/pci/drm/drm_mode.h | 15 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm.h b/sys/dev/pci/drm/drm.h index d4cfaf0d7a8..6a474c4eb82 100644 --- a/sys/dev/pci/drm/drm.h +++ b/sys/dev/pci/drm/drm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm.h,v 1.11 2013/06/07 20:46:14 kettenis Exp $ */ +/* $OpenBSD: drm.h,v 1.12 2013/07/08 05:57:27 jsg Exp $ */ /** * \file drm.h * Header for the Direct Rendering Manager @@ -762,6 +762,7 @@ struct drm_event_vblank { #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/sys/dev/pci/drm/drm_mode.h b/sys/dev/pci/drm/drm_mode.h index 75787c29f0a..30b414be9d8 100644 --- a/sys/dev/pci/drm/drm_mode.h +++ b/sys/dev/pci/drm/drm_mode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_mode.h,v 1.2 2013/03/18 12:36:51 jsg Exp $ */ +/* $OpenBSD: drm_mode.h,v 1.3 2013/07/08 05:57:27 jsg Exp $ */ /* * Copyright (c) 2007 Dave Airlie <airlied@linux.ie> * Copyright (c) 2007 Jakob Bornecrantz <wallbraker@gmail.com> @@ -387,6 +387,19 @@ struct drm_mode_cursor { uint32_t handle; }; +struct drm_mode_cursor2 { + uint32_t flags; + uint32_t crtc_id; + int32_t x; + int32_t y; + uint32_t width; + uint32_t height; + /* driver specific handle */ + uint32_t handle; + int32_t hot_x; + int32_t hot_y; +}; + struct drm_mode_crtc_lut { uint32_t crtc_id; uint32_t gamma_size; |