summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-06-01 11:21:37 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-06-01 11:21:37 +0000
commit7103fe9d3057b131c4f645efdc9dc638d90dcb98 (patch)
tree2b490426837f5a5dca683705df3f633a0b7235e2
parentad16c4807b12688fb8c0fa15e3d527a88a4f1c98 (diff)
Add defines for DRM_CAP_PRIME capability. Not implemented, but allows
the intel driver to build and work with X server 1.14. ok jsg@
-rw-r--r--sys/dev/pci/drm/drm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm.h b/sys/dev/pci/drm/drm.h
index dd9b1d7e467..ab80f903c73 100644
--- a/sys/dev/pci/drm/drm.h
+++ b/sys/dev/pci/drm/drm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm.h,v 1.9 2013/03/22 05:19:21 jsg Exp $ */
+/* $OpenBSD: drm.h,v 1.10 2013/06/01 11:21:36 matthieu Exp $ */
/**
* \file drm.h
* Header for the Direct Rendering Manager
@@ -653,6 +653,10 @@ struct drm_event_vblank {
#define DRM_CAP_VBLANK_HIGH_CRTC 0x2
#define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3
#define DRM_CAP_DUMB_PREFER_SHADOW 0x4
+#define DRM_CAP_PRIME 0x5
+
+#define DRM_PRIME_CAP_IMPORT 0x1
+#define DRM_PRIME_CAP_EXPORT 0x2
#include "drm_mode.h"