diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 91f1d1cd0070..f1f4d8f1df6a 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -29,6 +29,9 @@ | |||
29 | 29 | ||
30 | #define _PORT(port, a, b) ((a) + (port)*((b)-(a))) | 30 | #define _PORT(port, a, b) ((a) + (port)*((b)-(a))) |
31 | 31 | ||
32 | #define _MASKED_BIT_ENABLE(a) (((a) << 16) | (a)) | ||
33 | #define _MASKED_BIT_DISABLE(a) ((a) << 16) | ||
34 | |||
32 | /* | 35 | /* |
33 | * The Bridge device's PCI config space has information about the | 36 | * The Bridge device's PCI config space has information about the |
34 | * fb aperture size and the amount of pre-reserved memory. | 37 | * fb aperture size and the amount of pre-reserved memory. |
@@ -425,8 +428,6 @@ | |||
425 | #define ARB_MODE 0x04030 | 428 | #define ARB_MODE 0x04030 |
426 | #define ARB_MODE_SWIZZLE_SNB (1<<4) | 429 | #define ARB_MODE_SWIZZLE_SNB (1<<4) |
427 | #define ARB_MODE_SWIZZLE_IVB (1<<5) | 430 | #define ARB_MODE_SWIZZLE_IVB (1<<5) |
428 | #define ARB_MODE_ENABLE(x) GFX_MODE_ENABLE(x) | ||
429 | #define ARB_MODE_DISABLE(x) GFX_MODE_DISABLE(x) | ||
430 | #define RENDER_HWS_PGA_GEN7 (0x04080) | 431 | #define RENDER_HWS_PGA_GEN7 (0x04080) |
431 | #define RING_FAULT_REG(ring) (0x4094 + 0x100*(ring)->id) | 432 | #define RING_FAULT_REG(ring) (0x4094 + 0x100*(ring)->id) |
432 | #define DONE_REG 0x40b0 | 433 | #define DONE_REG 0x40b0 |
@@ -514,9 +515,6 @@ | |||
514 | #define GFX_PSMI_GRANULARITY (1<<10) | 515 | #define GFX_PSMI_GRANULARITY (1<<10) |
515 | #define GFX_PPGTT_ENABLE (1<<9) | 516 | #define GFX_PPGTT_ENABLE (1<<9) |
516 | 517 | ||
517 | #define GFX_MODE_ENABLE(bit) (((bit) << 16) | (bit)) | ||
518 | #define GFX_MODE_DISABLE(bit) (((bit) << 16) | (0)) | ||
519 | |||
520 | #define SCPD0 0x0209c /* 915+ only */ | 518 | #define SCPD0 0x0209c /* 915+ only */ |
521 | #define IER 0x020a0 | 519 | #define IER 0x020a0 |
522 | #define IIR 0x020a4 | 520 | #define IIR 0x020a4 |