summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm2/drm.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-01-21 16:10:37 +0000
committerkib <kib@FreeBSD.org>2015-01-21 16:10:37 +0000
commitbd1a9e7b113063644600b40603bbac4df5933074 (patch)
tree0c26e11037effdf2db39642090cdb8bc1f04efcc /sys/dev/drm2/drm.h
parent8f91e56ef8071794d9c50e7d9fef5b6d8f605679 (diff)
downloadFreeBSD-src-bd1a9e7b113063644600b40603bbac4df5933074.zip
FreeBSD-src-bd1a9e7b113063644600b40603bbac4df5933074.tar.gz
An update for the i915 GPU driver, which brings the code up to Linux
commit 4d93914ae3db4a897ead4b. Some related drm infrastructure changes are imported as needed. Biggest update is the rewrite of the i915 gem io to more closely follow Linux model, althought the mechanism used by FreeBSD port is different. Sponsored by: The FreeBSD Foundation MFC after: 2 month
Diffstat (limited to 'sys/dev/drm2/drm.h')
-rw-r--r--sys/dev/drm2/drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm.h b/sys/dev/drm2/drm.h
index dff0f94..eca5885 100644
--- a/sys/dev/drm2/drm.h
+++ b/sys/dev/drm2/drm.h
@@ -1018,6 +1018,9 @@ struct drm_event_vblank {
#define DRM_CAP_PRIME 0x5
#define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
+#define DRM_PRIME_CAP_IMPORT 0x1
+#define DRM_PRIME_CAP_EXPORT 0x2
+
#include "drm_mode.h"
/**
@@ -1126,6 +1129,8 @@ struct drm_event_vblank {
#define DRM_IOCTL_MODE_GETPLANE DRM_IOWR(0xB6, struct drm_mode_get_plane)
#define DRM_IOCTL_MODE_SETPLANE DRM_IOWR(0xB7, struct drm_mode_set_plane)
#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_MM_INIT DRM_IOWR(0xc0, struct drm_mm_init_arg)
#define DRM_IOCTL_MM_TAKEDOWN DRM_IOWR(0xc1, struct drm_mm_type_arg)
OpenPOWER on IntegriCloud