drm/i915: Use a private interface for register access within GT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jul 2013 19:36:53 +0000 (20:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 25 Jul 2013 13:22:05 +0000 (15:22 +0200)
commit6af5d92f909796cb706f3b9efefd75cb0f5afcff
treede568838b3531ec9c4b1055f41bb294b1817f189
parent907b28c56ea40629aa6595ddfa414ec2fc7da41c
drm/i915: Use a private interface for register access within GT

The GT functions for enabling register access also need to occasionally
write to and read from registers. To avoid the potential recursion as we
modify the public interface to be stricter, introduce a private register
access API for the GT functions.

v2: Rebase
v3: Rebase onto uncore
v4: Use raw interfaces consistently so that we only use the low-level
    readN functions from a single location.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c