Go to the documentation of this file. 1 #ifndef _INTEL_RINGBUFFER_H_
2 #define _INTEL_RINGBUFFER_H_
10 #define I915_READ_TAIL(ring) I915_READ(RING_TAIL((ring)->mmio_base))
11 #define I915_WRITE_TAIL(ring, val) I915_WRITE(RING_TAIL((ring)->mmio_base), val)
13 #define I915_READ_START(ring) I915_READ(RING_START((ring)->mmio_base))
14 #define I915_WRITE_START(ring, val) I915_WRITE(RING_START((ring)->mmio_base), val)
16 #define I915_READ_HEAD(ring) I915_READ(RING_HEAD((ring)->mmio_base))
17 #define I915_WRITE_HEAD(ring, val) I915_WRITE(RING_HEAD((ring)->mmio_base), val)
19 #define I915_READ_CTL(ring) I915_READ(RING_CTL((ring)->mmio_base))
20 #define I915_WRITE_CTL(ring, val) I915_WRITE(RING_CTL((ring)->mmio_base), val)
22 #define I915_READ_IMR(ring) I915_READ(RING_IMR((ring)->mmio_base))
23 #define I915_WRITE_IMR(ring, val) I915_WRITE(RING_IMR((ring)->mmio_base), val)
25 #define I915_READ_NOPID(ring) I915_READ(RING_NOPID((ring)->mmio_base))
26 #define I915_READ_SYNC_0(ring) I915_READ(RING_SYNC_0((ring)->mmio_base))
27 #define I915_READ_SYNC_1(ring) I915_READ(RING_SYNC_1((ring)->mmio_base))
36 #define I915_NUM_RINGS 3
71 u32 invalidate_domains,
134 static inline unsigned
137 return 1 << ring->
id;
152 idx = (other -
ring) - 1;
183 #define I915_GEM_HWS_INDEX 0x20