summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-02-26 16:11:39 +1000
committerDave Airlie <airlied@redhat.com>2008-02-26 16:13:06 +1000
commit35d1b13b4a574faf3a95bf3b7cdd14897ef07f67 (patch)
tree66bcb7169cb653df3a5218fb7fc4797f55da7252 /shared-core
parent879fb12e289e8997ef325dd5b0068d0d4d6c26df (diff)
i915_mmio: add overlay regs
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c11
-rw-r--r--shared-core/i915_drm.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 11c000b9..7a5d1d9f 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -1300,7 +1300,16 @@ drm_i915_mmio_entry_t mmio_table[] = {
I915_MMIO_MAY_READ|I915_MMIO_MAY_WRITE,
0x2350,
8
- }
+ },
+ [MMIO_REGS_DOVSTA] = {
+ I915_MMIO_MAY_READ,
+ 0x30008,
+ 1
+ },
+ [MMIO_REGS_GAMMAA] = {
+ I915_MMIO_MAY_READ|I915_MMIO_MAY_WRITE,
+ 0x30010,
+ 6
};
static int mmio_table_size = sizeof(mmio_table)/sizeof(drm_i915_mmio_entry_t);
diff --git a/shared-core/i915_drm.h b/shared-core/i915_drm.h
index b8eaa021..a40cabdc 100644
--- a/shared-core/i915_drm.h
+++ b/shared-core/i915_drm.h
@@ -326,6 +326,8 @@ typedef struct drm_i915_vblank_swap {
#define MMIO_REGS_CL_INVOCATION_COUNT 6
#define MMIO_REGS_PS_INVOCATION_COUNT 7
#define MMIO_REGS_PS_DEPTH_COUNT 8
+#define MMIO_REGS_DOVSTA 9
+#define MMIO_REGS_GAMMA 10
typedef struct drm_i915_mmio_entry {
unsigned int flag;