aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-13 14:06:50 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-19 07:39:38 -0500
commit311bd68e024f9006db66cbadc3bd9f62fd663f4b (patch)
treeb4092a6de5015d58bde98b2efc0c6f5b95ffe2c7 /drivers/gpu/drm/i915/i915_drv.h
parent18b2190ca5bd3f19717421b1591c79c9b0372428 (diff)
drm/i915: Trivial sparse fixes
Move code around and invoke iomem annotation in a few more places in order to silence sparse. Still a few more iomem annotations to go... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 9b9a771110a4..eaec56ef12b6 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1392,25 +1392,4 @@ i915_write(struct drm_i915_private *dev_priv, u32 reg, u64 val, int len)
1392 } 1392 }
1393} 1393}
1394 1394
1395/**
1396 * Reads a dword out of the status page, which is written to from the command
1397 * queue by automatic updates, MI_REPORT_HEAD, MI_STORE_DATA_INDEX, or
1398 * MI_STORE_DATA_IMM.
1399 *
1400 * The following dwords have a reserved meaning:
1401 * 0x00: ISR copy, updated when an ISR bit not set in the HWSTAM changes.
1402 * 0x04: ring 0 head pointer
1403 * 0x05: ring 1 head pointer (915-class)
1404 * 0x06: ring 2 head pointer (915-class)
1405 * 0x10-0x1b: Context status DWords (GM45)
1406 * 0x1f: Last written status offset. (GM45)
1407 *
1408 * The area from dword 0x20 to 0x3ff is available for driver usage.
1409 */
1410#define READ_HWSP(dev_priv, reg) (((volatile u32 *)\
1411 (LP_RING(dev_priv)->status_page.page_addr))[reg])
1412#define READ_BREADCRUMB(dev_priv) READ_HWSP(dev_priv, I915_BREADCRUMB_INDEX)
1413#define I915_GEM_HWS_INDEX 0x20
1414#define I915_BREADCRUMB_INDEX 0x21
1415
1416#endif 1395#endif