aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-07-24 06:10:04 -0400
committerDavid Herrmann <dh.herrmann@gmail.com>2014-08-05 13:38:12 -0400
commite7b96070dd9e51a8b16340411a8643d8c7d5a001 (patch)
tree7e6eeda12ad5874ee088867fee61b49c1b25569a /include/drm/drmP.h
parente17280758cc0b4f3d7065554006adcb87448f6c0 (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.h35
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 */
541struct 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,
1236extern int drm_noop(struct drm_device *dev, void *data, 1225extern 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) */
1240extern int drm_resctx(struct drm_device *dev, void *data,
1241 struct drm_file *file_priv);
1242extern int drm_addctx(struct drm_device *dev, void *data,
1243 struct drm_file *file_priv);
1244extern int drm_getctx(struct drm_device *dev, void *data,
1245 struct drm_file *file_priv);
1246extern int drm_switchctx(struct drm_device *dev, void *data,
1247 struct drm_file *file_priv);
1248extern int drm_newctx(struct drm_device *dev, void *data,
1249 struct drm_file *file_priv);
1250extern int drm_rmctx(struct drm_device *dev, void *data,
1251 struct drm_file *file_priv);
1252
1253extern int drm_ctxbitmap_init(struct drm_device *dev);
1254extern void drm_ctxbitmap_cleanup(struct drm_device *dev);
1255extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle);
1256extern void drm_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file);
1257
1258extern int drm_setsareactx(struct drm_device *dev, void *data,
1259 struct drm_file *file_priv);
1260extern 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) */
1264extern int drm_getmagic(struct drm_device *dev, void *data, 1229extern int drm_getmagic(struct drm_device *dev, void *data,
1265 struct drm_file *file_priv); 1230 struct drm_file *file_priv);