aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index fedaf013f848..84e9c18fdbef 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -140,6 +140,7 @@
140#define DRM_MEM_HASHTAB 23 140#define DRM_MEM_HASHTAB 23
141 141
142#define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8) 142#define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8)
143#define DRM_MAP_HASH_OFFSET 0x10000000
143 144
144/*@}*/ 145/*@}*/
145 146
@@ -485,6 +486,7 @@ typedef struct drm_sigdata {
485 */ 486 */
486typedef struct drm_map_list { 487typedef struct drm_map_list {
487 struct list_head head; /**< list head */ 488 struct list_head head; /**< list head */
489 drm_hash_item_t hash;
488 drm_map_t *map; /**< mapping */ 490 drm_map_t *map; /**< mapping */
489 unsigned int user_token; 491 unsigned int user_token;
490} drm_map_list_t; 492} drm_map_list_t;
@@ -662,6 +664,7 @@ typedef struct drm_device {
662 /*@{ */ 664 /*@{ */
663 drm_map_list_t *maplist; /**< Linked list of regions */ 665 drm_map_list_t *maplist; /**< Linked list of regions */
664 int map_count; /**< Number of mappable regions */ 666 int map_count; /**< Number of mappable regions */
667 drm_open_hash_t map_hash; /**< User token hash table for maps */
665 668
666 /** \name Context handle management */ 669 /** \name Context handle management */
667 /*@{ */ 670 /*@{ */