diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-07-24 06:10:04 -0400 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-08-05 13:38:12 -0400 |
commit | e7b96070dd9e51a8b16340411a8643d8c7d5a001 (patch) | |
tree | 7e6eeda12ad5874ee088867fee61b49c1b25569a /include/drm/drmP.h | |
parent | e17280758cc0b4f3d7065554006adcb87448f6c0 (diff) |
drm: mark drm_context support as legacy
This renames all drm-context helpers to drm_legacy_*() and moves the
internal definitions into the new drm_legacy.h header. This header is
local to DRM-core and drivers shouldn't access it.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 458385ec15f3..a57646382086 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -151,8 +151,6 @@ int drm_err(const char *func, const char *format, ...); | |||
151 | also include looping detection. */ | 151 | also include looping detection. */ |
152 | 152 | ||
153 | #define DRM_MAGIC_HASH_ORDER 4 /**< Size of key hash table. Must be power of 2. */ | 153 | #define DRM_MAGIC_HASH_ORDER 4 /**< Size of key hash table. Must be power of 2. */ |
154 | #define DRM_KERNEL_CONTEXT 0 /**< Change drm_resctx if changed */ | ||
155 | #define DRM_RESERVED_CONTEXTS 1 /**< Change drm_resctx if changed */ | ||
156 | 154 | ||
157 | #define DRM_MAP_HASH_OFFSET 0x10000000 | 155 | #define DRM_MAP_HASH_OFFSET 0x10000000 |
158 | 156 | ||
@@ -535,15 +533,6 @@ struct drm_map_list { | |||
535 | struct drm_master *master; | 533 | struct drm_master *master; |
536 | }; | 534 | }; |
537 | 535 | ||
538 | /** | ||
539 | * Context handle list | ||
540 | */ | ||
541 | struct drm_ctx_list { | ||
542 | struct list_head head; /**< list head */ | ||
543 | drm_context_t handle; /**< context handle */ | ||
544 | struct drm_file *tag; /**< associated fd private data */ | ||
545 | }; | ||
546 | |||
547 | /* location of GART table */ | 536 | /* location of GART table */ |
548 | #define DRM_ATI_GART_MAIN 1 | 537 | #define DRM_ATI_GART_MAIN 1 |
549 | #define DRM_ATI_GART_FB 2 | 538 | #define DRM_ATI_GART_FB 2 |
@@ -1236,30 +1225,6 @@ extern int drm_setversion(struct drm_device *dev, void *data, | |||
1236 | extern int drm_noop(struct drm_device *dev, void *data, | 1225 | extern int drm_noop(struct drm_device *dev, void *data, |
1237 | struct drm_file *file_priv); | 1226 | struct drm_file *file_priv); |
1238 | 1227 | ||
1239 | /* Context IOCTL support (drm_context.h) */ | ||
1240 | extern int drm_resctx(struct drm_device *dev, void *data, | ||
1241 | struct drm_file *file_priv); | ||
1242 | extern int drm_addctx(struct drm_device *dev, void *data, | ||
1243 | struct drm_file *file_priv); | ||
1244 | extern int drm_getctx(struct drm_device *dev, void *data, | ||
1245 | struct drm_file *file_priv); | ||
1246 | extern int drm_switchctx(struct drm_device *dev, void *data, | ||
1247 | struct drm_file *file_priv); | ||
1248 | extern int drm_newctx(struct drm_device *dev, void *data, | ||
1249 | struct drm_file *file_priv); | ||
1250 | extern int drm_rmctx(struct drm_device *dev, void *data, | ||
1251 | struct drm_file *file_priv); | ||
1252 | |||
1253 | extern int drm_ctxbitmap_init(struct drm_device *dev); | ||
1254 | extern void drm_ctxbitmap_cleanup(struct drm_device *dev); | ||
1255 | extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle); | ||
1256 | extern void drm_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file); | ||
1257 | |||
1258 | extern int drm_setsareactx(struct drm_device *dev, void *data, | ||
1259 | struct drm_file *file_priv); | ||
1260 | extern int drm_getsareactx(struct drm_device *dev, void *data, | ||
1261 | struct drm_file *file_priv); | ||
1262 | |||
1263 | /* Authentication IOCTL support (drm_auth.h) */ | 1228 | /* Authentication IOCTL support (drm_auth.h) */ |
1264 | extern int drm_getmagic(struct drm_device *dev, void *data, | 1229 | extern int drm_getmagic(struct drm_device *dev, void *data, |
1265 | struct drm_file *file_priv); | 1230 | struct drm_file *file_priv); |