diff options
author | Dave Airlie <airlied@redhat.com> | 2007-12-16 18:41:56 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-07 00:09:39 -0500 |
commit | e3236a1173222ca209d20bb29f6c1cd3499aa845 (patch) | |
tree | 121840ba613aaad6c5d54cc694fade494f68a83b /drivers/char/drm/drm.h | |
parent | 77e27e9fe5bd399c9f56b941b212a58338e94463 (diff) |
drm: add _DRM_DRIVER flag, and re-order unload.
Allow drivers to addmaps that won't be removed by lastclose or unload.
The unload needs to be re-ordered to avoid removing the hashs before
the driver has removed the final maps.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm.h')
-rw-r--r-- | drivers/char/drm/drm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h index 82fb3d0d2785..3a05c6d5ebe1 100644 --- a/drivers/char/drm/drm.h +++ b/drivers/char/drm/drm.h | |||
@@ -202,7 +202,8 @@ enum drm_map_flags { | |||
202 | _DRM_KERNEL = 0x08, /**< kernel requires access */ | 202 | _DRM_KERNEL = 0x08, /**< kernel requires access */ |
203 | _DRM_WRITE_COMBINING = 0x10, /**< use write-combining if available */ | 203 | _DRM_WRITE_COMBINING = 0x10, /**< use write-combining if available */ |
204 | _DRM_CONTAINS_LOCK = 0x20, /**< SHM page that contains lock */ | 204 | _DRM_CONTAINS_LOCK = 0x20, /**< SHM page that contains lock */ |
205 | _DRM_REMOVABLE = 0x40 /**< Removable mapping */ | 205 | _DRM_REMOVABLE = 0x40, /**< Removable mapping */ |
206 | _DRM_DRIVER = 0x80 /**< Managed by driver */ | ||
206 | }; | 207 | }; |
207 | 208 | ||
208 | struct drm_ctx_priv_map { | 209 | struct drm_ctx_priv_map { |