diff options
author | 2013-07-08 05:57:27 +0000 | |
---|---|---|
committer | 2013-07-08 05:57:27 +0000 | |
commit | 1324abcfc25aab259c1601e1de60633dc69bfa1e (patch) | |
tree | b676ae8b7f5a3134d483d2584e29cb4d30b268fa | |
parent | sync (diff) | |
download | wireguard-openbsd-1324abcfc25aab259c1601e1de60633dc69bfa1e.tar.xz wireguard-openbsd-1324abcfc25aab259c1601e1de60633dc69bfa1e.zip |
add DRM_IOCTL_MODE_CURSOR2 definition from libdrm 2.4.46
-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; |