summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-08-02 16:24:01 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-21 11:20:01 +0100
commit333e9fe94d00ce8c334d91099449b9948bf76b92 (patch)
treec60f9ec1ba5efc88bae754315b1c8ecc2c262b13 /drivers/gpu/drm/i915/intel_ringbuffer.h
parentb8aea0c8003927f13e257c7ff370b6b73dbe2a5a (diff)
downloadlwn-333e9fe94d00ce8c334d91099449b9948bf76b92.tar.gz
lwn-333e9fe94d00ce8c334d91099449b9948bf76b92.zip
drm/i915: add relative ring register macros
Documentation explicitly mentions that the ring registers are designed to have the same offsets relative to a base registers. Use this to fight the code beaurocratic in intel_ringbuffer.c. No code changes in this patch, just the new definitions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index be1fd9b37088..3917d8b1c1a9 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -20,6 +20,7 @@ struct intel_ring_buffer {
u32 tail;
u32 start;
} regs;
+ u32 mmio_base;
unsigned long size;
unsigned int alignment;
void *virtual_start;