diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 2ea7a311a1f0..5af65b89765f 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -81,7 +81,9 @@ struct intel_ring_buffer { | |||
81 | u32 (*get_seqno)(struct intel_ring_buffer *ring, | 81 | u32 (*get_seqno)(struct intel_ring_buffer *ring, |
82 | bool lazy_coherency); | 82 | bool lazy_coherency); |
83 | int (*dispatch_execbuffer)(struct intel_ring_buffer *ring, | 83 | int (*dispatch_execbuffer)(struct intel_ring_buffer *ring, |
84 | u32 offset, u32 length); | 84 | u32 offset, u32 length, |
85 | unsigned flags); | ||
86 | #define I915_DISPATCH_SECURE 0x1 | ||
85 | void (*cleanup)(struct intel_ring_buffer *ring); | 87 | void (*cleanup)(struct intel_ring_buffer *ring); |
86 | int (*sync_to)(struct intel_ring_buffer *ring, | 88 | int (*sync_to)(struct intel_ring_buffer *ring, |
87 | struct intel_ring_buffer *to, | 89 | struct intel_ring_buffer *to, |
@@ -181,6 +183,8 @@ intel_read_status_page(struct intel_ring_buffer *ring, | |||
181 | * The area from dword 0x20 to 0x3ff is available for driver usage. | 183 | * The area from dword 0x20 to 0x3ff is available for driver usage. |
182 | */ | 184 | */ |
183 | #define I915_GEM_HWS_INDEX 0x20 | 185 | #define I915_GEM_HWS_INDEX 0x20 |
186 | #define I915_GEM_HWS_SCRATCH_INDEX 0x30 | ||
187 | #define I915_GEM_HWS_SCRATCH_ADDR (I915_GEM_HWS_SCRATCH_INDEX << MI_STORE_DWORD_INDEX_SHIFT) | ||
184 | 188 | ||
185 | void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring); | 189 | void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring); |
186 | 190 | ||