drm/i915: add relative ring register macros
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 Aug 2010 14:24:01 +0000 (16:24 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Sep 2010 10:20:01 +0000 (11:20 +0100)
commit333e9fe94d00ce8c334d91099449b9948bf76b92
treec60f9ec1ba5efc88bae754315b1c8ecc2c262b13
parentb8aea0c8003927f13e257c7ff370b6b73dbe2a5a
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>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h