aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index d5c14af51e99..beaf4bcfdac8 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -123,6 +123,12 @@ struct i915_vma {
123 struct drm_i915_gem_object *obj; 123 struct drm_i915_gem_object *obj;
124 struct i915_address_space *vm; 124 struct i915_address_space *vm;
125 125
126 /** Flags and address space this VMA is bound to */
127#define GLOBAL_BIND (1<<0)
128#define LOCAL_BIND (1<<1)
129#define PTE_READ_ONLY (1<<2)
130 unsigned int bound : 4;
131
126 /** This object's place on the active/inactive lists */ 132 /** This object's place on the active/inactive lists */
127 struct list_head mm_list; 133 struct list_head mm_list;
128 134
@@ -155,8 +161,6 @@ struct i915_vma {
155 * setting the valid PTE entries to a reserved scratch page. */ 161 * setting the valid PTE entries to a reserved scratch page. */
156 void (*unbind_vma)(struct i915_vma *vma); 162 void (*unbind_vma)(struct i915_vma *vma);
157 /* Map an object into an address space with the given cache flags. */ 163 /* Map an object into an address space with the given cache flags. */
158#define GLOBAL_BIND (1<<0)
159#define PTE_READ_ONLY (1<<1)
160 void (*bind_vma)(struct i915_vma *vma, 164 void (*bind_vma)(struct i915_vma *vma,
161 enum i915_cache_level cache_level, 165 enum i915_cache_level cache_level,
162 u32 flags); 166 u32 flags);
@@ -270,8 +274,6 @@ struct i915_hw_ppgtt {
270 274
271int i915_gem_gtt_init(struct drm_device *dev); 275int i915_gem_gtt_init(struct drm_device *dev);
272void i915_gem_init_global_gtt(struct drm_device *dev); 276void i915_gem_init_global_gtt(struct drm_device *dev);
273int i915_gem_setup_global_gtt(struct drm_device *dev, unsigned long start,
274 unsigned long mappable_end, unsigned long end);
275void i915_global_gtt_cleanup(struct drm_device *dev); 277void i915_global_gtt_cleanup(struct drm_device *dev);
276 278
277 279