aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2012-03-28 16:39:25 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-28 17:52:31 -0400
commit57f350b6722f9569f407872f6ead56e2d221d98a (patch)
treee603a42f2af8a94fdfccf9f31b54435b2bdb037a /drivers/gpu/drm/i915/i915_drv.h
parent25eb05fc5ac7a432e1a3a723f9af206142cd07fa (diff)
drm/i915: add DPIO support
ValleyView puts some display related registers like the PLL controls and dividers behind the DPIO bus. Add simple indirect register access routines to get to those registers. v2: move new wait_for macro to intel_drv.h (Ben) fix DPIO_PKT double write (Ben) add debugfs file Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 30612f52b93b..32f3731b1a18 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -360,6 +360,10 @@ typedef struct drm_i915_private {
360 360
361 /* protects the irq masks */ 361 /* protects the irq masks */
362 spinlock_t irq_lock; 362 spinlock_t irq_lock;
363
364 /* DPIO indirect register protection */
365 spinlock_t dpio_lock;
366
363 /** Cached value of IMR to avoid reads in updating the bitfield */ 367 /** Cached value of IMR to avoid reads in updating the bitfield */
364 u32 pipestat[2]; 368 u32 pipestat[2];
365 u32 irq_mask; 369 u32 irq_mask;