summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-06-07 20:46:16 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-06-07 20:46:16 +0000
commitb5eb995ea27dc816484505244c7aef178f6ac040 (patch)
treecf5013ccd0dbe0ee67adab36592b1573ac2891e4 /sys/dev/pci/drm/drm.h
parent4d536be368ceb6ab24e88330ed0aecc489be7945 (diff)
Add proper mmap(2) support for drm(4)/inteldrm(4). This changes the
DRM_I915_GEM_MMAP and DRM_I915_GEM_MMAP_GTT ioctls to be compatible with Linux. This also is the first step that moves us away from accessing all graphics memory through the GTT, which should make things faster. ok tedu@ (for the uvm bits)
Diffstat (limited to 'sys/dev/pci/drm/drm.h')
-rw-r--r--sys/dev/pci/drm/drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm.h b/sys/dev/pci/drm/drm.h
index ab80f903c73..d4cfaf0d7a8 100644
--- a/sys/dev/pci/drm/drm.h
+++ b/sys/dev/pci/drm/drm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm.h,v 1.10 2013/06/01 11:21:36 matthieu Exp $ */
+/* $OpenBSD: drm.h,v 1.11 2013/06/07 20:46:14 kettenis Exp $ */
/**
* \file drm.h
* Header for the Direct Rendering Manager
@@ -175,6 +175,7 @@ enum drm_map_type {
_DRM_AGP = 3, /**< AGP/GART */
_DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */
_DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */
+ _DRM_GEM = 6, /**< GEM object */
};
/**