diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-07 20:46:16 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-07 20:46:16 +0000 |
commit | b5eb995ea27dc816484505244c7aef178f6ac040 (patch) | |
tree | cf5013ccd0dbe0ee67adab36592b1573ac2891e4 /sys/dev/pci/drm/drm.h | |
parent | 4d536be368ceb6ab24e88330ed0aecc489be7945 (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.h | 3 |
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 */ }; /** |