Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
467 | giacomo | 1 | #ifndef _RADEON_H |
2 | #define _RADEON_H |
||
3 | |||
4 | |||
5 | #define RADEON_REGSIZE 0x4000 |
||
6 | |||
7 | |||
8 | #define MM_INDEX 0x0000 |
||
9 | #define MM_DATA 0x0004 |
||
10 | #define BUS_CNTL 0x0030 |
||
11 | #define HI_STAT 0x004C |
||
12 | #define BUS_CNTL1 0x0034 |
||
13 | #define I2C_CNTL_1 0x0094 |
||
14 | #define CONFIG_CNTL 0x00E0 |
||
15 | #define CONFIG_MEMSIZE 0x00F8 |
||
16 | #define CONFIG_APER_0_BASE 0x0100 |
||
17 | #define CONFIG_APER_1_BASE 0x0104 |
||
18 | #define CONFIG_APER_SIZE 0x0108 |
||
19 | #define CONFIG_REG_1_BASE 0x010C |
||
20 | #define CONFIG_REG_APER_SIZE 0x0110 |
||
21 | #define PAD_AGPINPUT_DELAY 0x0164 |
||
22 | #define PAD_CTLR_STRENGTH 0x0168 |
||
23 | #define PAD_CTLR_UPDATE 0x016C |
||
24 | #define AGP_CNTL 0x0174 |
||
25 | #define BM_STATUS 0x0160 |
||
26 | #define CAP0_TRIG_CNTL 0x0950 |
||
27 | #define VIPH_CONTROL 0x0C40 |
||
28 | #define VENDOR_ID 0x0F00 |
||
29 | #define DEVICE_ID 0x0F02 |
||
30 | #define COMMAND 0x0F04 |
||
31 | #define STATUS 0x0F06 |
||
32 | #define REVISION_ID 0x0F08 |
||
33 | #define REGPROG_INF 0x0F09 |
||
34 | #define SUB_CLASS 0x0F0A |
||
35 | #define BASE_CODE 0x0F0B |
||
36 | #define CACHE_LINE 0x0F0C |
||
37 | #define LATENCY 0x0F0D |
||
38 | #define HEADER 0x0F0E |
||
39 | #define BIST 0x0F0F |
||
40 | #define REG_MEM_BASE 0x0F10 |
||
41 | #define REG_IO_BASE 0x0F14 |
||
42 | #define REG_REG_BASE 0x0F18 |
||
43 | #define ADAPTER_ID 0x0F2C |
||
44 | #define BIOS_ROM 0x0F30 |
||
45 | #define CAPABILITIES_PTR 0x0F34 |
||
46 | #define INTERRUPT_LINE 0x0F3C |
||
47 | #define INTERRUPT_PIN 0x0F3D |
||
48 | #define MIN_GRANT 0x0F3E |
||
49 | #define MAX_LATENCY 0x0F3F |
||
50 | #define ADAPTER_ID_W 0x0F4C |
||
51 | #define PMI_CAP_ID 0x0F50 |
||
52 | #define PMI_NXT_CAP_PTR 0x0F51 |
||
53 | #define PMI_PMC_REG 0x0F52 |
||
54 | #define PM_STATUS 0x0F54 |
||
55 | #define PMI_DATA 0x0F57 |
||
56 | #define AGP_CAP_ID 0x0F58 |
||
57 | #define AGP_STATUS 0x0F5C |
||
58 | #define AGP_COMMAND 0x0F60 |
||
59 | #define AIC_CTRL 0x01D0 |
||
60 | #define AIC_STAT 0x01D4 |
||
61 | #define AIC_PT_BASE 0x01D8 |
||
62 | #define AIC_LO_ADDR 0x01DC |
||
63 | #define AIC_HI_ADDR 0x01E0 |
||
64 | #define AIC_TLB_ADDR 0x01E4 |
||
65 | #define AIC_TLB_DATA 0x01E8 |
||
66 | #define DAC_CNTL 0x0058 |
||
67 | #define DAC_CNTL2 0x007c |
||
68 | #define CRTC_GEN_CNTL 0x0050 |
||
69 | #define MEM_CNTL 0x0140 |
||
70 | #define EXT_MEM_CNTL 0x0144 |
||
71 | #define MC_AGP_LOCATION 0x014C |
||
72 | #define MEM_IO_CNTL_A0 0x0178 |
||
73 | #define MEM_INIT_LATENCY_TIMER 0x0154 |
||
74 | #define MEM_SDRAM_MODE_REG 0x0158 |
||
75 | #define AGP_BASE 0x0170 |
||
76 | #define MEM_IO_CNTL_A1 0x017C |
||
77 | #define MEM_IO_CNTL_B0 0x0180 |
||
78 | #define MEM_IO_CNTL_B1 0x0184 |
||
79 | #define MC_DEBUG 0x0188 |
||
80 | #define MC_STATUS 0x0150 |
||
81 | #define MEM_IO_OE_CNTL 0x018C |
||
82 | #define MC_FB_LOCATION 0x0148 |
||
83 | #define HOST_PATH_CNTL 0x0130 |
||
84 | #define MEM_VGA_WP_SEL 0x0038 |
||
85 | #define MEM_VGA_RP_SEL 0x003C |
||
86 | #define HDP_DEBUG 0x0138 |
||
87 | #define SW_SEMAPHORE 0x013C |
||
88 | #define CRTC2_GEN_CNTL 0x03f8 |
||
89 | #define CRTC2_DISPLAY_BASE_ADDR 0x033c |
||
90 | #define SURFACE_CNTL 0x0B00 |
||
91 | #define SURFACE0_LOWER_BOUND 0x0B04 |
||
92 | #define SURFACE1_LOWER_BOUND 0x0B14 |
||
93 | #define SURFACE2_LOWER_BOUND 0x0B24 |
||
94 | #define SURFACE3_LOWER_BOUND 0x0B34 |
||
95 | #define SURFACE4_LOWER_BOUND 0x0B44 |
||
96 | #define SURFACE5_LOWER_BOUND 0x0B54 |
||
97 | #define SURFACE6_LOWER_BOUND 0x0B64 |
||
98 | #define SURFACE7_LOWER_BOUND 0x0B74 |
||
99 | #define SURFACE0_UPPER_BOUND 0x0B08 |
||
100 | #define SURFACE1_UPPER_BOUND 0x0B18 |
||
101 | #define SURFACE2_UPPER_BOUND 0x0B28 |
||
102 | #define SURFACE3_UPPER_BOUND 0x0B38 |
||
103 | #define SURFACE4_UPPER_BOUND 0x0B48 |
||
104 | #define SURFACE5_UPPER_BOUND 0x0B58 |
||
105 | #define SURFACE6_UPPER_BOUND 0x0B68 |
||
106 | #define SURFACE7_UPPER_BOUND 0x0B78 |
||
107 | #define SURFACE0_INFO 0x0B0C |
||
108 | #define SURFACE1_INFO 0x0B1C |
||
109 | #define SURFACE2_INFO 0x0B2C |
||
110 | #define SURFACE3_INFO 0x0B3C |
||
111 | #define SURFACE4_INFO 0x0B4C |
||
112 | #define SURFACE5_INFO 0x0B5C |
||
113 | #define SURFACE6_INFO 0x0B6C |
||
114 | #define SURFACE7_INFO 0x0B7C |
||
115 | #define SURFACE_ACCESS_FLAGS 0x0BF8 |
||
116 | #define SURFACE_ACCESS_CLR 0x0BFC |
||
117 | #define GEN_INT_CNTL 0x0040 |
||
118 | #define GEN_INT_STATUS 0x0044 |
||
119 | #define CRTC_EXT_CNTL 0x0054 |
||
120 | #define RB3D_CNTL 0x1C3C |
||
121 | #define WAIT_UNTIL 0x1720 |
||
122 | #define ISYNC_CNTL 0x1724 |
||
123 | #define RBBM_GUICNTL 0x172C |
||
124 | #define RBBM_STATUS 0x0E40 |
||
125 | #define RBBM_STATUS_alt_1 0x1740 |
||
126 | #define RBBM_CNTL 0x00EC |
||
127 | #define RBBM_CNTL_alt_1 0x0E44 |
||
128 | #define RBBM_SOFT_RESET 0x00F0 |
||
129 | #define RBBM_SOFT_RESET_alt_1 0x0E48 |
||
130 | #define NQWAIT_UNTIL 0x0E50 |
||
131 | #define RBBM_DEBUG 0x0E6C |
||
132 | #define RBBM_CMDFIFO_ADDR 0x0E70 |
||
133 | #define RBBM_CMDFIFO_DATAL 0x0E74 |
||
134 | #define RBBM_CMDFIFO_DATAH 0x0E78 |
||
135 | #define RBBM_CMDFIFO_STAT 0x0E7C |
||
136 | #define CRTC_STATUS 0x005C |
||
137 | #define GPIO_VGA_DDC 0x0060 |
||
138 | #define GPIO_DVI_DDC 0x0064 |
||
139 | #define GPIO_MONID 0x0068 |
||
140 | #define GPIO_CRT2_DDC 0x006c |
||
141 | #define PALETTE_INDEX 0x00B0 |
||
142 | #define PALETTE_DATA 0x00B4 |
||
143 | #define PALETTE_30_DATA 0x00B8 |
||
144 | #define CRTC_H_TOTAL_DISP 0x0200 |
||
145 | #define CRTC_H_SYNC_STRT_WID 0x0204 |
||
146 | #define CRTC_V_TOTAL_DISP 0x0208 |
||
147 | #define CRTC_V_SYNC_STRT_WID 0x020C |
||
148 | #define CRTC_VLINE_CRNT_VLINE 0x0210 |
||
149 | #define CRTC_CRNT_FRAME 0x0214 |
||
150 | #define CRTC_GUI_TRIG_VLINE 0x0218 |
||
151 | #define CRTC_DEBUG 0x021C |
||
152 | #define CRTC_OFFSET_RIGHT 0x0220 |
||
153 | #define CRTC_OFFSET 0x0224 |
||
154 | #define CRTC_OFFSET_CNTL 0x0228 |
||
155 | #define CRTC_PITCH 0x022C |
||
156 | #define OVR_CLR 0x0230 |
||
157 | #define OVR_WID_LEFT_RIGHT 0x0234 |
||
158 | #define OVR_WID_TOP_BOTTOM 0x0238 |
||
159 | #define DISPLAY_BASE_ADDR 0x023C |
||
160 | #define SNAPSHOT_VH_COUNTS 0x0240 |
||
161 | #define SNAPSHOT_F_COUNT 0x0244 |
||
162 | #define N_VIF_COUNT 0x0248 |
||
163 | #define SNAPSHOT_VIF_COUNT 0x024C |
||
164 | #define FP_CRTC_H_TOTAL_DISP 0x0250 |
||
165 | #define FP_CRTC_V_TOTAL_DISP 0x0254 |
||
166 | #define CRT_CRTC_H_SYNC_STRT_WID 0x0258 |
||
167 | #define CRT_CRTC_V_SYNC_STRT_WID 0x025C |
||
168 | #define CUR_OFFSET 0x0260 |
||
169 | #define CUR_HORZ_VERT_POSN 0x0264 |
||
170 | #define CUR_HORZ_VERT_OFF 0x0268 |
||
171 | #define CUR_CLR0 0x026C |
||
172 | #define CUR_CLR1 0x0270 |
||
173 | #define FP_HORZ_VERT_ACTIVE 0x0278 |
||
174 | #define CRTC_MORE_CNTL 0x027C |
||
175 | #define DAC_EXT_CNTL 0x0280 |
||
176 | #define FP_GEN_CNTL 0x0284 |
||
177 | #define FP_HORZ_STRETCH 0x028C |
||
178 | #define FP_VERT_STRETCH 0x0290 |
||
179 | #define FP_H_SYNC_STRT_WID 0x02C4 |
||
180 | #define FP_V_SYNC_STRT_WID 0x02C8 |
||
181 | #define AUX_WINDOW_HORZ_CNTL 0x02D8 |
||
182 | #define AUX_WINDOW_VERT_CNTL 0x02DC |
||
183 | //#define DDA_CONFIG 0x02e0 |
||
184 | //#define DDA_ON_OFF 0x02e4 |
||
185 | #define DVI_I2C_CNTL_1 0x02e4 |
||
186 | #define GRPH_BUFFER_CNTL 0x02F0 |
||
187 | #define VGA_BUFFER_CNTL 0x02F4 |
||
188 | #define OV0_Y_X_START 0x0400 |
||
189 | #define OV0_Y_X_END 0x0404 |
||
190 | #define OV0_PIPELINE_CNTL 0x0408 |
||
191 | #define OV0_REG_LOAD_CNTL 0x0410 |
||
192 | #define OV0_SCALE_CNTL 0x0420 |
||
193 | #define OV0_V_INC 0x0424 |
||
194 | #define OV0_P1_V_ACCUM_INIT 0x0428 |
||
195 | #define OV0_P23_V_ACCUM_INIT 0x042C |
||
196 | #define OV0_P1_BLANK_LINES_AT_TOP 0x0430 |
||
197 | #define OV0_P23_BLANK_LINES_AT_TOP 0x0434 |
||
198 | #define OV0_BASE_ADDR 0x043C |
||
199 | #define OV0_VID_BUF0_BASE_ADRS 0x0440 |
||
200 | #define OV0_VID_BUF1_BASE_ADRS 0x0444 |
||
201 | #define OV0_VID_BUF2_BASE_ADRS 0x0448 |
||
202 | #define OV0_VID_BUF3_BASE_ADRS 0x044C |
||
203 | #define OV0_VID_BUF4_BASE_ADRS 0x0450 |
||
204 | #define OV0_VID_BUF5_BASE_ADRS 0x0454 |
||
205 | #define OV0_VID_BUF_PITCH0_VALUE 0x0460 |
||
206 | #define OV0_VID_BUF_PITCH1_VALUE 0x0464 |
||
207 | #define OV0_AUTO_FLIP_CNTRL 0x0470 |
||
208 | #define OV0_DEINTERLACE_PATTERN 0x0474 |
||
209 | #define OV0_SUBMIT_HISTORY 0x0478 |
||
210 | #define OV0_H_INC 0x0480 |
||
211 | #define OV0_STEP_BY 0x0484 |
||
212 | #define OV0_P1_H_ACCUM_INIT 0x0488 |
||
213 | #define OV0_P23_H_ACCUM_INIT 0x048C |
||
214 | #define OV0_P1_X_START_END 0x0494 |
||
215 | #define OV0_P2_X_START_END 0x0498 |
||
216 | #define OV0_P3_X_START_END 0x049C |
||
217 | #define OV0_FILTER_CNTL 0x04A0 |
||
218 | #define OV0_FOUR_TAP_COEF_0 0x04B0 |
||
219 | #define OV0_FOUR_TAP_COEF_1 0x04B4 |
||
220 | #define OV0_FOUR_TAP_COEF_2 0x04B8 |
||
221 | #define OV0_FOUR_TAP_COEF_3 0x04BC |
||
222 | #define OV0_FOUR_TAP_COEF_4 0x04C0 |
||
223 | #define OV0_FLAG_CNTRL 0x04DC |
||
224 | #define OV0_SLICE_CNTL 0x04E0 |
||
225 | #define OV0_VID_KEY_CLR_LOW 0x04E4 |
||
226 | #define OV0_VID_KEY_CLR_HIGH 0x04E8 |
||
227 | #define OV0_GRPH_KEY_CLR_LOW 0x04EC |
||
228 | #define OV0_GRPH_KEY_CLR_HIGH 0x04F0 |
||
229 | #define OV0_KEY_CNTL 0x04F4 |
||
230 | #define OV0_TEST 0x04F8 |
||
231 | #define SUBPIC_CNTL 0x0540 |
||
232 | #define SUBPIC_DEFCOLCON 0x0544 |
||
233 | #define SUBPIC_Y_X_START 0x054C |
||
234 | #define SUBPIC_Y_X_END 0x0550 |
||
235 | #define SUBPIC_V_INC 0x0554 |
||
236 | #define SUBPIC_H_INC 0x0558 |
||
237 | #define SUBPIC_BUF0_OFFSET 0x055C |
||
238 | #define SUBPIC_BUF1_OFFSET 0x0560 |
||
239 | #define SUBPIC_LC0_OFFSET 0x0564 |
||
240 | #define SUBPIC_LC1_OFFSET 0x0568 |
||
241 | #define SUBPIC_PITCH 0x056C |
||
242 | #define SUBPIC_BTN_HLI_COLCON 0x0570 |
||
243 | #define SUBPIC_BTN_HLI_Y_X_START 0x0574 |
||
244 | #define SUBPIC_BTN_HLI_Y_X_END 0x0578 |
||
245 | #define SUBPIC_PALETTE_INDEX 0x057C |
||
246 | #define SUBPIC_PALETTE_DATA 0x0580 |
||
247 | #define SUBPIC_H_ACCUM_INIT 0x0584 |
||
248 | #define SUBPIC_V_ACCUM_INIT 0x0588 |
||
249 | #define DISP_MISC_CNTL 0x0D00 |
||
250 | #define DAC_MACRO_CNTL 0x0D04 |
||
251 | #define DISP_PWR_MAN 0x0D08 |
||
252 | #define DISP_TEST_DEBUG_CNTL 0x0D10 |
||
253 | #define DISP_HW_DEBUG 0x0D14 |
||
254 | #define DAC_CRC_SIG1 0x0D18 |
||
255 | #define DAC_CRC_SIG2 0x0D1C |
||
256 | #define OV0_LIN_TRANS_A 0x0D20 |
||
257 | #define OV0_LIN_TRANS_B 0x0D24 |
||
258 | #define OV0_LIN_TRANS_C 0x0D28 |
||
259 | #define OV0_LIN_TRANS_D 0x0D2C |
||
260 | #define OV0_LIN_TRANS_E 0x0D30 |
||
261 | #define OV0_LIN_TRANS_F 0x0D34 |
||
262 | #define OV0_GAMMA_0_F 0x0D40 |
||
263 | #define OV0_GAMMA_10_1F 0x0D44 |
||
264 | #define OV0_GAMMA_20_3F 0x0D48 |
||
265 | #define OV0_GAMMA_40_7F 0x0D4C |
||
266 | #define OV0_GAMMA_380_3BF 0x0D50 |
||
267 | #define OV0_GAMMA_3C0_3FF 0x0D54 |
||
268 | #define DISP_MERGE_CNTL 0x0D60 |
||
269 | #define DISP_OUTPUT_CNTL 0x0D64 |
||
270 | #define DISP_LIN_TRANS_GRPH_A 0x0D80 |
||
271 | #define DISP_LIN_TRANS_GRPH_B 0x0D84 |
||
272 | #define DISP_LIN_TRANS_GRPH_C 0x0D88 |
||
273 | #define DISP_LIN_TRANS_GRPH_D 0x0D8C |
||
274 | #define DISP_LIN_TRANS_GRPH_E 0x0D90 |
||
275 | #define DISP_LIN_TRANS_GRPH_F 0x0D94 |
||
276 | #define DISP_LIN_TRANS_VID_A 0x0D98 |
||
277 | #define DISP_LIN_TRANS_VID_B 0x0D9C |
||
278 | #define DISP_LIN_TRANS_VID_C 0x0DA0 |
||
279 | #define DISP_LIN_TRANS_VID_D 0x0DA4 |
||
280 | #define DISP_LIN_TRANS_VID_E 0x0DA8 |
||
281 | #define DISP_LIN_TRANS_VID_F 0x0DAC |
||
282 | #define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0 |
||
283 | #define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4 |
||
284 | #define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8 |
||
285 | #define RMX_HORZ_PHASE 0x0DBC |
||
286 | #define DAC_EMBEDDED_SYNC_CNTL 0x0DC0 |
||
287 | #define DAC_BROAD_PULSE 0x0DC4 |
||
288 | #define DAC_SKEW_CLKS 0x0DC8 |
||
289 | #define DAC_INCR 0x0DCC |
||
290 | #define DAC_NEG_SYNC_LEVEL 0x0DD0 |
||
291 | #define DAC_POS_SYNC_LEVEL 0x0DD4 |
||
292 | #define DAC_BLANK_LEVEL 0x0DD8 |
||
293 | #define CLOCK_CNTL_INDEX 0x0008 |
||
294 | #define CLOCK_CNTL_DATA 0x000C |
||
295 | #define CP_RB_CNTL 0x0704 |
||
296 | #define CP_RB_BASE 0x0700 |
||
297 | #define CP_RB_RPTR_ADDR 0x070C |
||
298 | #define CP_RB_RPTR 0x0710 |
||
299 | #define CP_RB_WPTR 0x0714 |
||
300 | #define CP_RB_WPTR_DELAY 0x0718 |
||
301 | #define CP_IB_BASE 0x0738 |
||
302 | #define CP_IB_BUFSZ 0x073C |
||
303 | #define SCRATCH_REG0 0x15E0 |
||
304 | #define GUI_SCRATCH_REG0 0x15E0 |
||
305 | #define SCRATCH_REG1 0x15E4 |
||
306 | #define GUI_SCRATCH_REG1 0x15E4 |
||
307 | #define SCRATCH_REG2 0x15E8 |
||
308 | #define GUI_SCRATCH_REG2 0x15E8 |
||
309 | #define SCRATCH_REG3 0x15EC |
||
310 | #define GUI_SCRATCH_REG3 0x15EC |
||
311 | #define SCRATCH_REG4 0x15F0 |
||
312 | #define GUI_SCRATCH_REG4 0x15F0 |
||
313 | #define SCRATCH_REG5 0x15F4 |
||
314 | #define GUI_SCRATCH_REG5 0x15F4 |
||
315 | #define SCRATCH_UMSK 0x0770 |
||
316 | #define SCRATCH_ADDR 0x0774 |
||
317 | #define DP_BRUSH_FRGD_CLR 0x147C |
||
318 | #define DP_BRUSH_BKGD_CLR 0x1478 |
||
319 | #define DST_LINE_START 0x1600 |
||
320 | #define DST_LINE_END 0x1604 |
||
321 | #define SRC_OFFSET 0x15AC |
||
322 | #define SRC_PITCH 0x15B0 |
||
323 | #define SRC_TILE 0x1704 |
||
324 | #define SRC_PITCH_OFFSET 0x1428 |
||
325 | #define SRC_X 0x1414 |
||
326 | #define SRC_Y 0x1418 |
||
327 | #define SRC_X_Y 0x1590 |
||
328 | #define SRC_Y_X 0x1434 |
||
329 | #define DST_Y_X 0x1438 |
||
330 | #define DST_WIDTH_HEIGHT 0x1598 |
||
331 | #define DST_HEIGHT_WIDTH 0x143c |
||
332 | #define DST_OFFSET 0x1404 |
||
333 | #define SRC_CLUT_ADDRESS 0x1780 |
||
334 | #define SRC_CLUT_DATA 0x1784 |
||
335 | #define SRC_CLUT_DATA_RD 0x1788 |
||
336 | #define HOST_DATA0 0x17C0 |
||
337 | #define HOST_DATA1 0x17C4 |
||
338 | #define HOST_DATA2 0x17C8 |
||
339 | #define HOST_DATA3 0x17CC |
||
340 | #define HOST_DATA4 0x17D0 |
||
341 | #define HOST_DATA5 0x17D4 |
||
342 | #define HOST_DATA6 0x17D8 |
||
343 | #define HOST_DATA7 0x17DC |
||
344 | #define HOST_DATA_LAST 0x17E0 |
||
345 | #define DP_SRC_ENDIAN 0x15D4 |
||
346 | #define DP_SRC_FRGD_CLR 0x15D8 |
||
347 | #define DP_SRC_BKGD_CLR 0x15DC |
||
348 | #define SC_LEFT 0x1640 |
||
349 | #define SC_RIGHT 0x1644 |
||
350 | #define SC_TOP 0x1648 |
||
351 | #define SC_BOTTOM 0x164C |
||
352 | #define SRC_SC_RIGHT 0x1654 |
||
353 | #define SRC_SC_BOTTOM 0x165C |
||
354 | #define DP_CNTL 0x16C0 |
||
355 | #define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0 |
||
356 | #define DP_DATATYPE 0x16C4 |
||
357 | #define DP_MIX 0x16C8 |
||
358 | #define DP_WRITE_MSK 0x16CC |
||
359 | #define DP_XOP 0x17F8 |
||
360 | #define CLR_CMP_CLR_SRC 0x15C4 |
||
361 | #define CLR_CMP_CLR_DST 0x15C8 |
||
362 | #define CLR_CMP_CNTL 0x15C0 |
||
363 | #define CLR_CMP_MSK 0x15CC |
||
364 | #define DSTCACHE_MODE 0x1710 |
||
365 | #define DSTCACHE_CTLSTAT 0x1714 |
||
366 | #define DEFAULT_PITCH_OFFSET 0x16E0 |
||
367 | #define DEFAULT_SC_BOTTOM_RIGHT 0x16E8 |
||
368 | #define DP_GUI_MASTER_CNTL 0x146C |
||
369 | #define SC_TOP_LEFT 0x16EC |
||
370 | #define SC_BOTTOM_RIGHT 0x16F0 |
||
371 | #define SRC_SC_BOTTOM_RIGHT 0x16F4 |
||
372 | #define RB2D_DSTCACHE_MODE 0x3428 |
||
373 | #define RB2D_DSTCACHE_CTLSTAT 0x342C |
||
374 | #define LVDS_GEN_CNTL 0x02d0 |
||
375 | #define LVDS_PLL_CNTL 0x02d4 |
||
376 | #define TMDS_CRC 0x02a0 |
||
377 | #define TMDS_TRANSMITTER_CNTL 0x02a4 |
||
378 | |||
379 | #define RADEON_BASE_CODE 0x0f0b |
||
380 | #define RADEON_BIOS_0_SCRATCH 0x0010 |
||
381 | #define RADEON_BIOS_1_SCRATCH 0x0014 |
||
382 | #define RADEON_BIOS_2_SCRATCH 0x0018 |
||
383 | #define RADEON_BIOS_3_SCRATCH 0x001c |
||
384 | #define RADEON_BIOS_4_SCRATCH 0x0020 |
||
385 | #define RADEON_BIOS_5_SCRATCH 0x0024 |
||
386 | #define RADEON_BIOS_6_SCRATCH 0x0028 |
||
387 | #define RADEON_BIOS_7_SCRATCH 0x002c |
||
388 | |||
389 | #define TV_DAC_CNTL 0x088c |
||
390 | #define GPIOPAD_MASK 0x0198 |
||
391 | #define GPIOPAD_A 0x019c |
||
392 | #define GPIOPAD_EN 0x01a0 |
||
393 | #define GPIOPAD_Y 0x01a4 |
||
394 | #define ZV_LCDPAD_MASK 0x01a8 |
||
395 | #define ZV_LCDPAD_A 0x01ac |
||
396 | #define ZV_LCDPAD_EN 0x01b0 |
||
397 | #define ZV_LCDPAD_Y 0x01b4 |
||
398 | |||
399 | /* PLL Registers */ |
||
400 | #define CLK_PIN_CNTL 0x0001 |
||
401 | #define PPLL_CNTL 0x0002 |
||
402 | #define PPLL_REF_DIV 0x0003 |
||
403 | #define PPLL_DIV_0 0x0004 |
||
404 | #define PPLL_DIV_1 0x0005 |
||
405 | #define PPLL_DIV_2 0x0006 |
||
406 | #define PPLL_DIV_3 0x0007 |
||
407 | #define VCLK_ECP_CNTL 0x0008 |
||
408 | #define HTOTAL_CNTL 0x0009 |
||
409 | #define M_SPLL_REF_FB_DIV 0x000a |
||
410 | #define AGP_PLL_CNTL 0x000b |
||
411 | #define SPLL_CNTL 0x000c |
||
412 | #define SCLK_CNTL 0x000d |
||
413 | #define MPLL_CNTL 0x000e |
||
414 | #define MDLL_CKO 0x000f |
||
415 | #define MDLL_RDCKA 0x0010 |
||
416 | #define MCLK_CNTL 0x0012 |
||
417 | #define AGP_PLL_CNTL 0x000b |
||
418 | #define PLL_TEST_CNTL 0x0013 |
||
419 | #define CLK_PWRMGT_CNTL 0x0014 |
||
420 | #define PLL_PWRMGT_CNTL 0x0015 |
||
421 | #define MCLK_MISC 0x001f |
||
422 | #define P2PLL_CNTL 0x002a |
||
423 | #define P2PLL_REF_DIV 0x002b |
||
424 | #define PIXCLKS_CNTL 0x002d |
||
425 | |||
426 | /* MCLK_CNTL bit constants */ |
||
427 | #define FORCEON_MCLKA (1 << 16) |
||
428 | #define FORCEON_MCLKB (1 << 17) |
||
429 | #define FORCEON_YCLKA (1 << 18) |
||
430 | #define FORCEON_YCLKB (1 << 19) |
||
431 | #define FORCEON_MC (1 << 20) |
||
432 | #define FORCEON_AIC (1 << 21) |
||
433 | |||
434 | |||
435 | /* BUS_CNTL bit constants */ |
||
436 | #define BUS_DBL_RESYNC 0x00000001 |
||
437 | #define BUS_MSTR_RESET 0x00000002 |
||
438 | #define BUS_FLUSH_BUF 0x00000004 |
||
439 | #define BUS_STOP_REQ_DIS 0x00000008 |
||
440 | #define BUS_ROTATION_DIS 0x00000010 |
||
441 | #define BUS_MASTER_DIS 0x00000040 |
||
442 | #define BUS_ROM_WRT_EN 0x00000080 |
||
443 | #define BUS_DIS_ROM 0x00001000 |
||
444 | #define BUS_PCI_READ_RETRY_EN 0x00002000 |
||
445 | #define BUS_AGP_AD_STEPPING_EN 0x00004000 |
||
446 | #define BUS_PCI_WRT_RETRY_EN 0x00008000 |
||
447 | #define BUS_MSTR_RD_MULT 0x00100000 |
||
448 | #define BUS_MSTR_RD_LINE 0x00200000 |
||
449 | #define BUS_SUSPEND 0x00400000 |
||
450 | #define LAT_16X 0x00800000 |
||
451 | #define BUS_RD_DISCARD_EN 0x01000000 |
||
452 | #define BUS_RD_ABORT_EN 0x02000000 |
||
453 | #define BUS_MSTR_WS 0x04000000 |
||
454 | #define BUS_PARKING_DIS 0x08000000 |
||
455 | #define BUS_MSTR_DISCONNECT_EN 0x10000000 |
||
456 | #define BUS_WRT_BURST 0x20000000 |
||
457 | #define BUS_READ_BURST 0x40000000 |
||
458 | #define BUS_RDY_READ_DLY 0x80000000 |
||
459 | |||
460 | |||
461 | /* CLOCK_CNTL_INDEX bit constants */ |
||
462 | #define PLL_WR_EN 0x00000080 |
||
463 | |||
464 | /* CONFIG_CNTL bit constants */ |
||
465 | #define CFG_VGA_RAM_EN 0x00000100 |
||
466 | |||
467 | /* CRTC_EXT_CNTL bit constants */ |
||
468 | #define VGA_ATI_LINEAR 0x00000008 |
||
469 | #define VGA_128KAP_PAGING 0x00000010 |
||
470 | #define XCRT_CNT_EN (1 << 6) |
||
471 | #define CRTC_HSYNC_DIS (1 << 8) |
||
472 | #define CRTC_VSYNC_DIS (1 << 9) |
||
473 | #define CRTC_DISPLAY_DIS (1 << 10) |
||
474 | #define CRTC_CRT_ON (1 << 15) |
||
475 | |||
476 | |||
477 | /* DSTCACHE_CTLSTAT bit constants */ |
||
478 | #define RB2D_DC_FLUSH (3 << 0) |
||
479 | #define RB2D_DC_FLUSH_ALL 0xf |
||
480 | #define RB2D_DC_BUSY (1 << 31) |
||
481 | |||
482 | |||
483 | /* CRTC_GEN_CNTL bit constants */ |
||
484 | #define CRTC_DBL_SCAN_EN 0x00000001 |
||
485 | #define CRTC_CUR_EN 0x00010000 |
||
486 | #define CRTC_INTERLACE_EN (1 << 1) |
||
487 | #define CRTC_EXT_DISP_EN (1 << 24) |
||
488 | #define CRTC_EN (1 << 25) |
||
489 | #define CRTC_DISP_REQ_EN_B (1 << 26) |
||
490 | |||
491 | /* CRTC_STATUS bit constants */ |
||
492 | #define CRTC_VBLANK 0x00000001 |
||
493 | |||
494 | /* CRTC2_GEN_CNTL bit constants */ |
||
495 | #define CRT2_ON (1 << 7) |
||
496 | #define CRTC2_DISPLAY_DIS (1 << 23) |
||
497 | #define CRTC2_EN (1 << 25) |
||
498 | #define CRTC2_DISP_REQ_EN_B (1 << 26) |
||
499 | |||
500 | /* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */ |
||
501 | #define CUR_LOCK 0x80000000 |
||
502 | |||
503 | |||
504 | /* FP bit constants */ |
||
505 | #define FP_CRTC_H_TOTAL_MASK 0x000003ff |
||
506 | #define FP_CRTC_H_DISP_MASK 0x01ff0000 |
||
507 | #define FP_CRTC_V_TOTAL_MASK 0x00000fff |
||
508 | #define FP_CRTC_V_DISP_MASK 0x0fff0000 |
||
509 | #define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8 |
||
510 | #define FP_H_SYNC_WID_MASK 0x003f0000 |
||
511 | #define FP_V_SYNC_STRT_MASK 0x00000fff |
||
512 | #define FP_V_SYNC_WID_MASK 0x001f0000 |
||
513 | #define FP_CRTC_H_TOTAL_SHIFT 0x00000000 |
||
514 | #define FP_CRTC_H_DISP_SHIFT 0x00000010 |
||
515 | #define FP_CRTC_V_TOTAL_SHIFT 0x00000000 |
||
516 | #define FP_CRTC_V_DISP_SHIFT 0x00000010 |
||
517 | #define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003 |
||
518 | #define FP_H_SYNC_WID_SHIFT 0x00000010 |
||
519 | #define FP_V_SYNC_STRT_SHIFT 0x00000000 |
||
520 | #define FP_V_SYNC_WID_SHIFT 0x00000010 |
||
521 | |||
522 | /* FP_GEN_CNTL bit constants */ |
||
523 | #define FP_FPON (1 << 0) |
||
524 | #define FP_TMDS_EN (1 << 2) |
||
525 | #define FP_EN_TMDS (1 << 7) |
||
526 | #define FP_DETECT_SENSE (1 << 8) |
||
527 | #define FP_SEL_CRTC2 (1 << 13) |
||
528 | #define FP_CRTC_DONT_SHADOW_HPAR (1 << 15) |
||
529 | #define FP_CRTC_DONT_SHADOW_VPAR (1 << 16) |
||
530 | #define FP_CRTC_DONT_SHADOW_HEND (1 << 17) |
||
531 | #define FP_CRTC_USE_SHADOW_VEND (1 << 18) |
||
532 | #define FP_RMX_HVSYNC_CONTROL_EN (1 << 20) |
||
533 | #define FP_DFP_SYNC_SEL (1 << 21) |
||
534 | #define FP_CRTC_LOCK_8DOT (1 << 22) |
||
535 | #define FP_CRT_SYNC_SEL (1 << 23) |
||
536 | #define FP_USE_SHADOW_EN (1 << 24) |
||
537 | #define FP_CRT_SYNC_ALT (1 << 26) |
||
538 | |||
539 | /* LVDS_GEN_CNTL bit constants */ |
||
540 | #define LVDS_ON (1 << 0) |
||
541 | #define LVDS_DISPLAY_DIS (1 << 1) |
||
542 | #define LVDS_PANEL_TYPE (1 << 2) |
||
543 | #define LVDS_PANEL_FORMAT (1 << 3) |
||
544 | #define LVDS_EN (1 << 7) |
||
545 | #define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00 |
||
546 | #define LVDS_BL_MOD_LEVEL_SHIFT 8 |
||
547 | #define LVDS_BL_MOD_EN (1 << 16) |
||
548 | #define LVDS_DIGON (1 << 18) |
||
549 | #define LVDS_BLON (1 << 19) |
||
550 | #define LVDS_SEL_CRTC2 (1 << 23) |
||
551 | #define LVDS_STATE_MASK \ |
||
552 | (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | \ |
||
553 | LVDS_EN | LVDS_DIGON | LVDS_BLON) |
||
554 | |||
555 | /* LVDS_PLL_CNTL bit constatns */ |
||
556 | #define HSYNC_DELAY_SHIFT 0x1c |
||
557 | #define HSYNC_DELAY_MASK (0xf << 0x1c) |
||
558 | |||
559 | /* TMDS_TRANSMITTER_CNTL bit constants */ |
||
560 | #define TMDS_PLL_EN (1 << 0) |
||
561 | #define TMDS_PLLRST (1 << 1) |
||
562 | #define TMDS_RAN_PAT_RST (1 << 7) |
||
563 | #define ICHCSEL (1 << 28) |
||
564 | |||
565 | /* FP_HORZ_STRETCH bit constants */ |
||
566 | #define HORZ_STRETCH_RATIO_MASK 0xffff |
||
567 | #define HORZ_STRETCH_RATIO_MAX 4096 |
||
568 | #define HORZ_PANEL_SIZE (0x1ff << 16) |
||
569 | #define HORZ_PANEL_SHIFT 16 |
||
570 | #define HORZ_STRETCH_PIXREP (0 << 25) |
||
571 | #define HORZ_STRETCH_BLEND (1 << 26) |
||
572 | #define HORZ_STRETCH_ENABLE (1 << 25) |
||
573 | #define HORZ_AUTO_RATIO (1 << 27) |
||
574 | #define HORZ_FP_LOOP_STRETCH (0x7 << 28) |
||
575 | #define HORZ_AUTO_RATIO_INC (1 << 31) |
||
576 | |||
577 | |||
578 | /* FP_VERT_STRETCH bit constants */ |
||
579 | #define VERT_STRETCH_RATIO_MASK 0xfff |
||
580 | #define VERT_STRETCH_RATIO_MAX 4096 |
||
581 | #define VERT_PANEL_SIZE (0xfff << 12) |
||
582 | #define VERT_PANEL_SHIFT 12 |
||
583 | #define VERT_STRETCH_LINREP (0 << 26) |
||
584 | #define VERT_STRETCH_BLEND (1 << 26) |
||
585 | #define VERT_STRETCH_ENABLE (1 << 25) |
||
586 | #define VERT_AUTO_RATIO_EN (1 << 27) |
||
587 | #define VERT_FP_LOOP_STRETCH (0x7 << 28) |
||
588 | #define VERT_STRETCH_RESERVED 0xf1000000 |
||
589 | |||
590 | /* DAC_CNTL bit constants */ |
||
591 | #define DAC_8BIT_EN 0x00000100 |
||
592 | #define DAC_4BPP_PIX_ORDER 0x00000200 |
||
593 | #define DAC_CRC_EN 0x00080000 |
||
594 | #define DAC_MASK_ALL (0xff << 24) |
||
595 | #define DAC_EXPAND_MODE (1 << 14) |
||
596 | #define DAC_VGA_ADR_EN (1 << 13) |
||
597 | #define DAC_RANGE_CNTL (3 << 0) |
||
598 | #define DAC_BLANKING (1 << 2) |
||
599 | #define DAC_CMP_EN (1 << 3) |
||
600 | |||
601 | /* DAC_CNTL2 bit constants */ |
||
602 | #define DAC2_CMP_EN (1 << 7) |
||
603 | |||
604 | /* GEN_RESET_CNTL bit constants */ |
||
605 | #define SOFT_RESET_GUI 0x00000001 |
||
606 | #define SOFT_RESET_VCLK 0x00000100 |
||
607 | #define SOFT_RESET_PCLK 0x00000200 |
||
608 | #define SOFT_RESET_ECP 0x00000400 |
||
609 | #define SOFT_RESET_DISPENG_XCLK 0x00000800 |
||
610 | |||
611 | /* MEM_CNTL bit constants */ |
||
612 | #define MEM_CTLR_STATUS_IDLE 0x00000000 |
||
613 | #define MEM_CTLR_STATUS_BUSY 0x00100000 |
||
614 | #define MEM_SEQNCR_STATUS_IDLE 0x00000000 |
||
615 | #define MEM_SEQNCR_STATUS_BUSY 0x00200000 |
||
616 | #define MEM_ARBITER_STATUS_IDLE 0x00000000 |
||
617 | #define MEM_ARBITER_STATUS_BUSY 0x00400000 |
||
618 | #define MEM_REQ_UNLOCK 0x00000000 |
||
619 | #define MEM_REQ_LOCK 0x00800000 |
||
620 | |||
621 | |||
622 | /* RBBM_SOFT_RESET bit constants */ |
||
623 | #define SOFT_RESET_CP (1 << 0) |
||
624 | #define SOFT_RESET_HI (1 << 1) |
||
625 | #define SOFT_RESET_SE (1 << 2) |
||
626 | #define SOFT_RESET_RE (1 << 3) |
||
627 | #define SOFT_RESET_PP (1 << 4) |
||
628 | #define SOFT_RESET_E2 (1 << 5) |
||
629 | #define SOFT_RESET_RB (1 << 6) |
||
630 | #define SOFT_RESET_HDP (1 << 7) |
||
631 | |||
632 | /* SURFACE_CNTL bit consants */ |
||
633 | #define SURF_TRANSLATION_DIS (1 << 8) |
||
634 | #define NONSURF_AP0_SWP_16BPP (1 << 20) |
||
635 | #define NONSURF_AP0_SWP_32BPP (1 << 21) |
||
636 | #define NONSURF_AP1_SWP_16BPP (1 << 22) |
||
637 | #define NONSURF_AP1_SWP_32BPP (1 << 23) |
||
638 | |||
639 | /* DEFAULT_SC_BOTTOM_RIGHT bit constants */ |
||
640 | #define DEFAULT_SC_RIGHT_MAX (0x1fff << 0) |
||
641 | #define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16) |
||
642 | |||
643 | /* MM_INDEX bit constants */ |
||
644 | #define MM_APER 0x80000000 |
||
645 | |||
646 | /* CLR_CMP_CNTL bit constants */ |
||
647 | #define COMPARE_SRC_FALSE 0x00000000 |
||
648 | #define COMPARE_SRC_TRUE 0x00000001 |
||
649 | #define COMPARE_SRC_NOT_EQUAL 0x00000004 |
||
650 | #define COMPARE_SRC_EQUAL 0x00000005 |
||
651 | #define COMPARE_SRC_EQUAL_FLIP 0x00000007 |
||
652 | #define COMPARE_DST_FALSE 0x00000000 |
||
653 | #define COMPARE_DST_TRUE 0x00000100 |
||
654 | #define COMPARE_DST_NOT_EQUAL 0x00000400 |
||
655 | #define COMPARE_DST_EQUAL 0x00000500 |
||
656 | #define COMPARE_DESTINATION 0x00000000 |
||
657 | #define COMPARE_SOURCE 0x01000000 |
||
658 | #define COMPARE_SRC_AND_DST 0x02000000 |
||
659 | |||
660 | |||
661 | /* DP_CNTL bit constants */ |
||
662 | #define DST_X_RIGHT_TO_LEFT 0x00000000 |
||
663 | #define DST_X_LEFT_TO_RIGHT 0x00000001 |
||
664 | #define DST_Y_BOTTOM_TO_TOP 0x00000000 |
||
665 | #define DST_Y_TOP_TO_BOTTOM 0x00000002 |
||
666 | #define DST_X_MAJOR 0x00000000 |
||
667 | #define DST_Y_MAJOR 0x00000004 |
||
668 | #define DST_X_TILE 0x00000008 |
||
669 | #define DST_Y_TILE 0x00000010 |
||
670 | #define DST_LAST_PEL 0x00000020 |
||
671 | #define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000 |
||
672 | #define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040 |
||
673 | #define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000 |
||
674 | #define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080 |
||
675 | #define DST_BRES_SIGN 0x00000100 |
||
676 | #define DST_HOST_BIG_ENDIAN_EN 0x00000200 |
||
677 | #define DST_POLYLINE_NONLAST 0x00008000 |
||
678 | #define DST_RASTER_STALL 0x00010000 |
||
679 | #define DST_POLY_EDGE 0x00040000 |
||
680 | |||
681 | |||
682 | /* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */ |
||
683 | #define DST_X_MAJOR_S 0x00000000 |
||
684 | #define DST_Y_MAJOR_S 0x00000001 |
||
685 | #define DST_Y_BOTTOM_TO_TOP_S 0x00000000 |
||
686 | #define DST_Y_TOP_TO_BOTTOM_S 0x00008000 |
||
687 | #define DST_X_RIGHT_TO_LEFT_S 0x00000000 |
||
688 | #define DST_X_LEFT_TO_RIGHT_S 0x80000000 |
||
689 | |||
690 | |||
691 | /* DP_DATATYPE bit constants */ |
||
692 | #define DST_8BPP 0x00000002 |
||
693 | #define DST_15BPP 0x00000003 |
||
694 | #define DST_16BPP 0x00000004 |
||
695 | #define DST_24BPP 0x00000005 |
||
696 | #define DST_32BPP 0x00000006 |
||
697 | #define DST_8BPP_RGB332 0x00000007 |
||
698 | #define DST_8BPP_Y8 0x00000008 |
||
699 | #define DST_8BPP_RGB8 0x00000009 |
||
700 | #define DST_16BPP_VYUY422 0x0000000b |
||
701 | #define DST_16BPP_YVYU422 0x0000000c |
||
702 | #define DST_32BPP_AYUV444 0x0000000e |
||
703 | #define DST_16BPP_ARGB4444 0x0000000f |
||
704 | #define BRUSH_SOLIDCOLOR 0x00000d00 |
||
705 | #define SRC_MONO 0x00000000 |
||
706 | #define SRC_MONO_LBKGD 0x00010000 |
||
707 | #define SRC_DSTCOLOR 0x00030000 |
||
708 | #define BYTE_ORDER_MSB_TO_LSB 0x00000000 |
||
709 | #define BYTE_ORDER_LSB_TO_MSB 0x40000000 |
||
710 | #define DP_CONVERSION_TEMP 0x80000000 |
||
711 | #define HOST_BIG_ENDIAN_EN (1 << 29) |
||
712 | |||
713 | |||
714 | /* DP_GUI_MASTER_CNTL bit constants */ |
||
715 | #define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000 |
||
716 | #define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001 |
||
717 | #define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000 |
||
718 | #define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002 |
||
719 | #define GMC_SRC_CLIP_DEFAULT 0x00000000 |
||
720 | #define GMC_SRC_CLIP_LEAVE 0x00000004 |
||
721 | #define GMC_DST_CLIP_DEFAULT 0x00000000 |
||
722 | #define GMC_DST_CLIP_LEAVE 0x00000008 |
||
723 | #define GMC_BRUSH_8x8MONO 0x00000000 |
||
724 | #define GMC_BRUSH_8x8MONO_LBKGD 0x00000010 |
||
725 | #define GMC_BRUSH_8x1MONO 0x00000020 |
||
726 | #define GMC_BRUSH_8x1MONO_LBKGD 0x00000030 |
||
727 | #define GMC_BRUSH_1x8MONO 0x00000040 |
||
728 | #define GMC_BRUSH_1x8MONO_LBKGD 0x00000050 |
||
729 | #define GMC_BRUSH_32x1MONO 0x00000060 |
||
730 | #define GMC_BRUSH_32x1MONO_LBKGD 0x00000070 |
||
731 | #define GMC_BRUSH_32x32MONO 0x00000080 |
||
732 | #define GMC_BRUSH_32x32MONO_LBKGD 0x00000090 |
||
733 | #define GMC_BRUSH_8x8COLOR 0x000000a0 |
||
734 | #define GMC_BRUSH_8x1COLOR 0x000000b0 |
||
735 | #define GMC_BRUSH_1x8COLOR 0x000000c0 |
||
736 | #define GMC_BRUSH_SOLID_COLOR 0x000000d0 |
||
737 | #define GMC_DST_8BPP 0x00000200 |
||
738 | #define GMC_DST_15BPP 0x00000300 |
||
739 | #define GMC_DST_16BPP 0x00000400 |
||
740 | #define GMC_DST_24BPP 0x00000500 |
||
741 | #define GMC_DST_32BPP 0x00000600 |
||
742 | #define GMC_DST_8BPP_RGB332 0x00000700 |
||
743 | #define GMC_DST_8BPP_Y8 0x00000800 |
||
744 | #define GMC_DST_8BPP_RGB8 0x00000900 |
||
745 | #define GMC_DST_16BPP_VYUY422 0x00000b00 |
||
746 | #define GMC_DST_16BPP_YVYU422 0x00000c00 |
||
747 | #define GMC_DST_32BPP_AYUV444 0x00000e00 |
||
748 | #define GMC_DST_16BPP_ARGB4444 0x00000f00 |
||
749 | #define GMC_SRC_MONO 0x00000000 |
||
750 | #define GMC_SRC_MONO_LBKGD 0x00001000 |
||
751 | #define GMC_SRC_DSTCOLOR 0x00003000 |
||
752 | #define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000 |
||
753 | #define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000 |
||
754 | #define GMC_DP_CONVERSION_TEMP_9300 0x00008000 |
||
755 | #define GMC_DP_CONVERSION_TEMP_6500 0x00000000 |
||
756 | #define GMC_DP_SRC_RECT 0x02000000 |
||
757 | #define GMC_DP_SRC_HOST 0x03000000 |
||
758 | #define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000 |
||
759 | #define GMC_3D_FCN_EN_CLR 0x00000000 |
||
760 | #define GMC_3D_FCN_EN_SET 0x08000000 |
||
761 | #define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000 |
||
762 | #define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000 |
||
763 | #define GMC_AUX_CLIP_LEAVE 0x00000000 |
||
764 | #define GMC_AUX_CLIP_CLEAR 0x20000000 |
||
765 | #define GMC_WRITE_MASK_LEAVE 0x00000000 |
||
766 | #define GMC_WRITE_MASK_SET 0x40000000 |
||
767 | #define GMC_CLR_CMP_CNTL_DIS (1 << 28) |
||
768 | #define GMC_SRC_DATATYPE_COLOR (3 << 12) |
||
769 | #define ROP3_S 0x00cc0000 |
||
770 | #define ROP3_SRCCOPY 0x00cc0000 |
||
771 | #define ROP3_P 0x00f00000 |
||
772 | #define ROP3_PATCOPY 0x00f00000 |
||
773 | #define DP_SRC_SOURCE_MASK (7 << 24) |
||
774 | #define GMC_BRUSH_NONE (15 << 4) |
||
775 | #define DP_SRC_SOURCE_MEMORY (2 << 24) |
||
776 | #define GMC_BRUSH_SOLIDCOLOR 0x000000d0 |
||
777 | |||
778 | /* DP_MIX bit constants */ |
||
779 | #define DP_SRC_RECT 0x00000200 |
||
780 | #define DP_SRC_HOST 0x00000300 |
||
781 | #define DP_SRC_HOST_BYTEALIGN 0x00000400 |
||
782 | |||
783 | /* MPLL_CNTL bit constants */ |
||
784 | #define MPLL_RESET 0x00000001 |
||
785 | |||
786 | /* MDLL_CKO bit constants */ |
||
787 | #define MCKOA_SLEEP 0x00000001 |
||
788 | #define MCKOA_RESET 0x00000002 |
||
789 | #define MCKOA_REF_SKEW_MASK 0x00000700 |
||
790 | #define MCKOA_FB_SKEW_MASK 0x00007000 |
||
791 | |||
792 | /* MDLL_RDCKA bit constants */ |
||
793 | #define MRDCKA0_SLEEP 0x00000001 |
||
794 | #define MRDCKA0_RESET 0x00000002 |
||
795 | #define MRDCKA1_SLEEP 0x00010000 |
||
796 | #define MRDCKA1_RESET 0x00020000 |
||
797 | |||
798 | /* VCLK_ECP_CNTL constants */ |
||
799 | #define PIXCLK_ALWAYS_ONb 0x00000040 |
||
800 | #define PIXCLK_DAC_ALWAYS_ONb 0x00000080 |
||
801 | |||
802 | /* BUS_CNTL1 constants */ |
||
803 | #define BUS_CNTL1_MOBILE_PLATFORM_SEL_MASK 0x0c000000 |
||
804 | #define BUS_CNTL1_MOBILE_PLATFORM_SEL_SHIFT 26 |
||
805 | #define BUS_CNTL1_AGPCLK_VALID 0x80000000 |
||
806 | |||
807 | /* PLL_PWRMGT_CNTL constants */ |
||
808 | #define PLL_PWRMGT_CNTL_SPLL_TURNOFF 0x00000002 |
||
809 | #define PLL_PWRMGT_CNTL_PPLL_TURNOFF 0x00000004 |
||
810 | #define PLL_PWRMGT_CNTL_P2PLL_TURNOFF 0x00000008 |
||
811 | #define PLL_PWRMGT_CNTL_TVPLL_TURNOFF 0x00000010 |
||
812 | #define PLL_PWRMGT_CNTL_MOBILE_SU 0x00010000 |
||
813 | #define PLL_PWRMGT_CNTL_SU_SCLK_USE_BCLK 0x00020000 |
||
814 | #define PLL_PWRMGT_CNTL_SU_MCLK_USE_BCLK 0x00040000 |
||
815 | |||
816 | /* TV_DAC_CNTL constants */ |
||
817 | #define TV_DAC_CNTL_BGSLEEP 0x00000040 |
||
818 | #define TV_DAC_CNTL_DETECT 0x00000010 |
||
819 | #define TV_DAC_CNTL_BGADJ_MASK 0x000f0000 |
||
820 | #define TV_DAC_CNTL_DACADJ_MASK 0x00f00000 |
||
821 | #define TV_DAC_CNTL_BGADJ__SHIFT 16 |
||
822 | #define TV_DAC_CNTL_DACADJ__SHIFT 20 |
||
823 | #define TV_DAC_CNTL_RDACPD 0x01000000 |
||
824 | #define TV_DAC_CNTL_GDACPD 0x02000000 |
||
825 | #define TV_DAC_CNTL_BDACPD 0x04000000 |
||
826 | |||
827 | /* DISP_MISC_CNTL constants */ |
||
828 | #define DISP_MISC_CNTL_SOFT_RESET_GRPH_PP (1 << 0) |
||
829 | #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_PP (1 << 1) |
||
830 | #define DISP_MISC_CNTL_SOFT_RESET_OV0_PP (1 << 2) |
||
831 | #define DISP_MISC_CNTL_SOFT_RESET_GRPH_SCLK (1 << 4) |
||
832 | #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_SCLK (1 << 5) |
||
833 | #define DISP_MISC_CNTL_SOFT_RESET_OV0_SCLK (1 << 6) |
||
834 | #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_PP (1 << 12) |
||
835 | #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_SCLK (1 << 15) |
||
836 | #define DISP_MISC_CNTL_SOFT_RESET_LVDS (1 << 16) |
||
837 | #define DISP_MISC_CNTL_SOFT_RESET_TMDS (1 << 17) |
||
838 | #define DISP_MISC_CNTL_SOFT_RESET_DIG_TMDS (1 << 18) |
||
839 | #define DISP_MISC_CNTL_SOFT_RESET_TV (1 << 19) |
||
840 | |||
841 | /* DISP_PWR_MAN constants */ |
||
842 | #define DISP_PWR_MAN_DISP_PWR_MAN_D3_CRTC_EN (1 << 0) |
||
843 | #define DISP_PWR_MAN_DISP2_PWR_MAN_D3_CRTC2_EN (1 << 4) |
||
844 | #define DISP_PWR_MAN_DISP_D3_RST (1 << 16) |
||
845 | #define DISP_PWR_MAN_DISP_D3_REG_RST (1 << 17) |
||
846 | #define DISP_PWR_MAN_DISP_D3_GRPH_RST (1 << 18) |
||
847 | #define DISP_PWR_MAN_DISP_D3_SUBPIC_RST (1 << 19) |
||
848 | #define DISP_PWR_MAN_DISP_D3_OV0_RST (1 << 20) |
||
849 | #define DISP_PWR_MAN_DISP_D1D2_GRPH_RST (1 << 21) |
||
850 | #define DISP_PWR_MAN_DISP_D1D2_SUBPIC_RST (1 << 22) |
||
851 | #define DISP_PWR_MAN_DISP_D1D2_OV0_RST (1 << 23) |
||
852 | #define DISP_PWR_MAN_DIG_TMDS_ENABLE_RST (1 << 24) |
||
853 | #define DISP_PWR_MAN_TV_ENABLE_RST (1 << 25) |
||
854 | #define DISP_PWR_MAN_AUTO_PWRUP_EN (1 << 26) |
||
855 | |||
856 | /* masks */ |
||
857 | |||
858 | #define CONFIG_MEMSIZE_MASK 0x1f000000 |
||
859 | #define MEM_CFG_TYPE 0x40000000 |
||
860 | #define DST_OFFSET_MASK 0x003fffff |
||
861 | #define DST_PITCH_MASK 0x3fc00000 |
||
862 | #define DEFAULT_TILE_MASK 0xc0000000 |
||
863 | #define PPLL_DIV_SEL_MASK 0x00000300 |
||
864 | #define PPLL_RESET 0x00000001 |
||
865 | #define PPLL_ATOMIC_UPDATE_EN 0x00010000 |
||
866 | #define PPLL_REF_DIV_MASK 0x000003ff |
||
867 | #define PPLL_FB3_DIV_MASK 0x000007ff |
||
868 | #define PPLL_POST3_DIV_MASK 0x00070000 |
||
869 | #define PPLL_ATOMIC_UPDATE_R 0x00008000 |
||
870 | #define PPLL_ATOMIC_UPDATE_W 0x00008000 |
||
871 | #define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000 |
||
872 | |||
873 | #define GUI_ACTIVE 0x80000000 |
||
874 | |||
875 | #endif /* _RADEON_H */ |
||
876 |