summaryrefslogtreecommitdiff
path: root/shared-core/drm.h
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-13 14:33:52 +1000
committerDave Airlie <airlied@airlied2.(none)>2007-04-13 14:51:16 +1000
commitcc471a361fc7058df4fb8d15d9c9a8b5cdd3dd77 (patch)
treea5dede8c959941189f7590a1f0ebfce1621a5590 /shared-core/drm.h
parent27598bacfd8e086832753a8b931f0fce18989f8d (diff)
i915/drm: clean up a lot of the i915/drm startup/teardown sequences
When the kernel driver is loaded it sets up a lot of stuff.. it tears down the same stuff on unload. This add a new map type called DRM_DRIVER which means the driver will clean the mapping up and fix up the map cleaner
Diffstat (limited to 'shared-core/drm.h')
-rw-r--r--shared-core/drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index b5b0aa52..6c626f66 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -289,7 +289,8 @@ typedef enum drm_map_flags {
_DRM_KERNEL = 0x08, /**< kernel requires access */
_DRM_WRITE_COMBINING = 0x10, /**< use write-combining if available */
_DRM_CONTAINS_LOCK = 0x20, /**< SHM page that contains lock */
- _DRM_REMOVABLE = 0x40 /**< Removable mapping */
+ _DRM_REMOVABLE = 0x40, /**< Removable mapping */
+ _DRM_DRIVER = 0x80 /**< Driver will take care of it */
} drm_map_flags_t;
typedef struct drm_ctx_priv_map {