diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 15da44cf21b1..9668cc0d7f4e 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -1410,9 +1410,25 @@ | |||
1410 | 1410 | ||
1411 | /* Cursor A & B regs */ | 1411 | /* Cursor A & B regs */ |
1412 | #define CURACNTR 0x70080 | 1412 | #define CURACNTR 0x70080 |
1413 | /* Old style CUR*CNTR flags (desktop 8xx) */ | ||
1414 | #define CURSOR_ENABLE 0x80000000 | ||
1415 | #define CURSOR_GAMMA_ENABLE 0x40000000 | ||
1416 | #define CURSOR_STRIDE_MASK 0x30000000 | ||
1417 | #define CURSOR_FORMAT_SHIFT 24 | ||
1418 | #define CURSOR_FORMAT_MASK (0x07 << CURSOR_FORMAT_SHIFT) | ||
1419 | #define CURSOR_FORMAT_2C (0x00 << CURSOR_FORMAT_SHIFT) | ||
1420 | #define CURSOR_FORMAT_3C (0x01 << CURSOR_FORMAT_SHIFT) | ||
1421 | #define CURSOR_FORMAT_4C (0x02 << CURSOR_FORMAT_SHIFT) | ||
1422 | #define CURSOR_FORMAT_ARGB (0x04 << CURSOR_FORMAT_SHIFT) | ||
1423 | #define CURSOR_FORMAT_XRGB (0x05 << CURSOR_FORMAT_SHIFT) | ||
1424 | /* New style CUR*CNTR flags */ | ||
1425 | #define CURSOR_MODE 0x27 | ||
1413 | #define CURSOR_MODE_DISABLE 0x00 | 1426 | #define CURSOR_MODE_DISABLE 0x00 |
1414 | #define CURSOR_MODE_64_32B_AX 0x07 | 1427 | #define CURSOR_MODE_64_32B_AX 0x07 |
1415 | #define CURSOR_MODE_64_ARGB_AX ((1 << 5) | CURSOR_MODE_64_32B_AX) | 1428 | #define CURSOR_MODE_64_ARGB_AX ((1 << 5) | CURSOR_MODE_64_32B_AX) |
1429 | #define MCURSOR_PIPE_SELECT (1 << 28) | ||
1430 | #define MCURSOR_PIPE_A 0x00 | ||
1431 | #define MCURSOR_PIPE_B (1 << 28) | ||
1416 | #define MCURSOR_GAMMA_ENABLE (1 << 26) | 1432 | #define MCURSOR_GAMMA_ENABLE (1 << 26) |
1417 | #define CURABASE 0x70084 | 1433 | #define CURABASE 0x70084 |
1418 | #define CURAPOS 0x70088 | 1434 | #define CURAPOS 0x70088 |
@@ -1420,6 +1436,7 @@ | |||
1420 | #define CURSOR_POS_SIGN 0x8000 | 1436 | #define CURSOR_POS_SIGN 0x8000 |
1421 | #define CURSOR_X_SHIFT 0 | 1437 | #define CURSOR_X_SHIFT 0 |
1422 | #define CURSOR_Y_SHIFT 16 | 1438 | #define CURSOR_Y_SHIFT 16 |
1439 | #define CURSIZE 0x700a0 | ||
1423 | #define CURBCNTR 0x700c0 | 1440 | #define CURBCNTR 0x700c0 |
1424 | #define CURBBASE 0x700c4 | 1441 | #define CURBBASE 0x700c4 |
1425 | #define CURBPOS 0x700c8 | 1442 | #define CURBPOS 0x700c8 |