diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r300d.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r300d.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r300d.h b/drivers/gpu/drm/radeon/r300d.h index 63ec076f2cd..d4fa3eb1074 100644 --- a/drivers/gpu/drm/radeon/r300d.h +++ b/drivers/gpu/drm/radeon/r300d.h | |||
@@ -73,4 +73,29 @@ | |||
73 | #define CP_PACKET0_GET_ONE_REG_WR(h) (((h) >> 15) & 1) | 73 | #define CP_PACKET0_GET_ONE_REG_WR(h) (((h) >> 15) & 1) |
74 | #define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF) | 74 | #define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF) |
75 | 75 | ||
76 | /* Registers */ | ||
77 | #define R_000148_MC_FB_LOCATION 0x000148 | ||
78 | #define S_000148_MC_FB_START(x) (((x) & 0xFFFF) << 0) | ||
79 | #define G_000148_MC_FB_START(x) (((x) >> 0) & 0xFFFF) | ||
80 | #define C_000148_MC_FB_START 0xFFFF0000 | ||
81 | #define S_000148_MC_FB_TOP(x) (((x) & 0xFFFF) << 16) | ||
82 | #define G_000148_MC_FB_TOP(x) (((x) >> 16) & 0xFFFF) | ||
83 | #define C_000148_MC_FB_TOP 0x0000FFFF | ||
84 | #define R_00014C_MC_AGP_LOCATION 0x00014C | ||
85 | #define S_00014C_MC_AGP_START(x) (((x) & 0xFFFF) << 0) | ||
86 | #define G_00014C_MC_AGP_START(x) (((x) >> 0) & 0xFFFF) | ||
87 | #define C_00014C_MC_AGP_START 0xFFFF0000 | ||
88 | #define S_00014C_MC_AGP_TOP(x) (((x) & 0xFFFF) << 16) | ||
89 | #define G_00014C_MC_AGP_TOP(x) (((x) >> 16) & 0xFFFF) | ||
90 | #define C_00014C_MC_AGP_TOP 0x0000FFFF | ||
91 | #define R_00015C_AGP_BASE_2 0x00015C | ||
92 | #define S_00015C_AGP_BASE_ADDR_2(x) (((x) & 0xF) << 0) | ||
93 | #define G_00015C_AGP_BASE_ADDR_2(x) (((x) >> 0) & 0xF) | ||
94 | #define C_00015C_AGP_BASE_ADDR_2 0xFFFFFFF0 | ||
95 | #define R_000170_AGP_BASE 0x000170 | ||
96 | #define S_000170_AGP_BASE_ADDR(x) (((x) & 0xFFFFFFFF) << 0) | ||
97 | #define G_000170_AGP_BASE_ADDR(x) (((x) >> 0) & 0xFFFFFFFF) | ||
98 | #define C_000170_AGP_BASE_ADDR 0x00000000 | ||
99 | |||
100 | |||
76 | #endif | 101 | #endif |