diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-26 21:10:15 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-26 21:11:56 -0400 |
commit | 3f7dc91adef90a20f806282724c40d68d5b020aa (patch) | |
tree | 3deb339fd9c3cba79c293dc4aad2f1ecd2f0821f | |
parent | 52f97df5da1f94d2b7db1bb53a2f053ae162b649 (diff) |
drm/rs600/690: use autogenerated safe register tables.
This ports rs690 to the safe reg tables and makes rs600 also
use the same table.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/Makefile | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/reg_srcs/rs600 | 728 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rs600.c | 9 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rs690.c | 65 |
5 files changed, 745 insertions, 68 deletions
diff --git a/drivers/gpu/drm/radeon/Makefile b/drivers/gpu/drm/radeon/Makefile index 8e1771889b4d..b2213a576a85 100644 --- a/drivers/gpu/drm/radeon/Makefile +++ b/drivers/gpu/drm/radeon/Makefile | |||
@@ -17,10 +17,15 @@ $(obj)/rv515_reg_safe.h: $(src)/reg_srcs/rv515 $(obj)/mkregtable | |||
17 | $(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable | 17 | $(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable |
18 | $(call if_changed,mkregtable) | 18 | $(call if_changed,mkregtable) |
19 | 19 | ||
20 | $(obj)/rs600_reg_safe.h: $(src)/reg_srcs/rs600 $(obj)/mkregtable | ||
21 | $(call if_changed,mkregtable) | ||
22 | |||
20 | $(obj)/rv515.o: $(obj)/rv515_reg_safe.h | 23 | $(obj)/rv515.o: $(obj)/rv515_reg_safe.h |
21 | 24 | ||
22 | $(obj)/r300.o: $(obj)/r300_reg_safe.h | 25 | $(obj)/r300.o: $(obj)/r300_reg_safe.h |
23 | 26 | ||
27 | $(obj)/rs600.o: $(obj)/rs600_reg_safe.h | ||
28 | |||
24 | radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \ | 29 | radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \ |
25 | radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \ | 30 | radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \ |
26 | atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \ | 31 | atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \ |
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h index 7ca6c13569b5..8ace15156c47 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.h +++ b/drivers/gpu/drm/radeon/radeon_asic.h | |||
@@ -266,6 +266,7 @@ static struct radeon_asic rs400_asic = { | |||
266 | /* | 266 | /* |
267 | * rs600. | 267 | * rs600. |
268 | */ | 268 | */ |
269 | int rs600_init(struct radeon_device *rdev); | ||
269 | void rs600_errata(struct radeon_device *rdev); | 270 | void rs600_errata(struct radeon_device *rdev); |
270 | void rs600_vram_info(struct radeon_device *rdev); | 271 | void rs600_vram_info(struct radeon_device *rdev); |
271 | int rs600_mc_init(struct radeon_device *rdev); | 272 | int rs600_mc_init(struct radeon_device *rdev); |
@@ -281,7 +282,7 @@ uint32_t rs600_mc_rreg(struct radeon_device *rdev, uint32_t reg); | |||
281 | void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); | 282 | void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
282 | void rs600_bandwidth_update(struct radeon_device *rdev); | 283 | void rs600_bandwidth_update(struct radeon_device *rdev); |
283 | static struct radeon_asic rs600_asic = { | 284 | static struct radeon_asic rs600_asic = { |
284 | .init = &r300_init, | 285 | .init = &rs600_init, |
285 | .errata = &rs600_errata, | 286 | .errata = &rs600_errata, |
286 | .vram_info = &rs600_vram_info, | 287 | .vram_info = &rs600_vram_info, |
287 | .gpu_reset = &r300_gpu_reset, | 288 | .gpu_reset = &r300_gpu_reset, |
@@ -316,7 +317,6 @@ static struct radeon_asic rs600_asic = { | |||
316 | /* | 317 | /* |
317 | * rs690,rs740 | 318 | * rs690,rs740 |
318 | */ | 319 | */ |
319 | int rs690_init(struct radeon_device *rdev); | ||
320 | void rs690_errata(struct radeon_device *rdev); | 320 | void rs690_errata(struct radeon_device *rdev); |
321 | void rs690_vram_info(struct radeon_device *rdev); | 321 | void rs690_vram_info(struct radeon_device *rdev); |
322 | int rs690_mc_init(struct radeon_device *rdev); | 322 | int rs690_mc_init(struct radeon_device *rdev); |
@@ -325,7 +325,7 @@ uint32_t rs690_mc_rreg(struct radeon_device *rdev, uint32_t reg); | |||
325 | void rs690_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); | 325 | void rs690_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
326 | void rs690_bandwidth_update(struct radeon_device *rdev); | 326 | void rs690_bandwidth_update(struct radeon_device *rdev); |
327 | static struct radeon_asic rs690_asic = { | 327 | static struct radeon_asic rs690_asic = { |
328 | .init = &rs690_init, | 328 | .init = &rs600_init, |
329 | .errata = &rs690_errata, | 329 | .errata = &rs690_errata, |
330 | .vram_info = &rs690_vram_info, | 330 | .vram_info = &rs690_vram_info, |
331 | .gpu_reset = &r300_gpu_reset, | 331 | .gpu_reset = &r300_gpu_reset, |
diff --git a/drivers/gpu/drm/radeon/reg_srcs/rs600 b/drivers/gpu/drm/radeon/reg_srcs/rs600 new file mode 100644 index 000000000000..498c581a328b --- /dev/null +++ b/drivers/gpu/drm/radeon/reg_srcs/rs600 | |||
@@ -0,0 +1,728 @@ | |||
1 | rs600 0x6d40 | ||
2 | 0x1434 SRC_Y_X | ||
3 | 0x1438 DST_Y_X | ||
4 | 0x143C DST_HEIGHT_WIDTH | ||
5 | 0x146C DP_GUI_MASTER_CNTL | ||
6 | 0x1474 BRUSH_Y_X | ||
7 | 0x1478 DP_BRUSH_BKGD_CLR | ||
8 | 0x147C DP_BRUSH_FRGD_CLR | ||
9 | 0x1480 BRUSH_DATA0 | ||
10 | 0x1484 BRUSH_DATA1 | ||
11 | 0x1598 DST_WIDTH_HEIGHT | ||
12 | 0x15C0 CLR_CMP_CNTL | ||
13 | 0x15C4 CLR_CMP_CLR_SRC | ||
14 | 0x15C8 CLR_CMP_CLR_DST | ||
15 | 0x15CC CLR_CMP_MSK | ||
16 | 0x15D8 DP_SRC_FRGD_CLR | ||
17 | 0x15DC DP_SRC_BKGD_CLR | ||
18 | 0x1600 DST_LINE_START | ||
19 | 0x1604 DST_LINE_END | ||
20 | 0x1608 DST_LINE_PATCOUNT | ||
21 | 0x16C0 DP_CNTL | ||
22 | 0x16CC DP_WRITE_MSK | ||
23 | 0x16D0 DP_CNTL_XDIR_YDIR_YMAJOR | ||
24 | 0x16E8 DEFAULT_SC_BOTTOM_RIGHT | ||
25 | 0x16EC SC_TOP_LEFT | ||
26 | 0x16F0 SC_BOTTOM_RIGHT | ||
27 | 0x16F4 SRC_SC_BOTTOM_RIGHT | ||
28 | 0x1714 DSTCACHE_CTLSTAT | ||
29 | 0x1720 WAIT_UNTIL | ||
30 | 0x172C RBBM_GUICNTL | ||
31 | 0x1D98 VAP_VPORT_XSCALE | ||
32 | 0x1D9C VAP_VPORT_XOFFSET | ||
33 | 0x1DA0 VAP_VPORT_YSCALE | ||
34 | 0x1DA4 VAP_VPORT_YOFFSET | ||
35 | 0x1DA8 VAP_VPORT_ZSCALE | ||
36 | 0x1DAC VAP_VPORT_ZOFFSET | ||
37 | 0x2080 VAP_CNTL | ||
38 | 0x2090 VAP_OUT_VTX_FMT_0 | ||
39 | 0x2094 VAP_OUT_VTX_FMT_1 | ||
40 | 0x20B0 VAP_VTE_CNTL | ||
41 | 0x2138 VAP_VF_MIN_VTX_INDX | ||
42 | 0x2140 VAP_CNTL_STATUS | ||
43 | 0x2150 VAP_PROG_STREAM_CNTL_0 | ||
44 | 0x2154 VAP_PROG_STREAM_CNTL_1 | ||
45 | 0x2158 VAP_PROG_STREAM_CNTL_2 | ||
46 | 0x215C VAP_PROG_STREAM_CNTL_3 | ||
47 | 0x2160 VAP_PROG_STREAM_CNTL_4 | ||
48 | 0x2164 VAP_PROG_STREAM_CNTL_5 | ||
49 | 0x2168 VAP_PROG_STREAM_CNTL_6 | ||
50 | 0x216C VAP_PROG_STREAM_CNTL_7 | ||
51 | 0x2180 VAP_VTX_STATE_CNTL | ||
52 | 0x2184 VAP_VSM_VTX_ASSM | ||
53 | 0x2188 VAP_VTX_STATE_IND_REG_0 | ||
54 | 0x218C VAP_VTX_STATE_IND_REG_1 | ||
55 | 0x2190 VAP_VTX_STATE_IND_REG_2 | ||
56 | 0x2194 VAP_VTX_STATE_IND_REG_3 | ||
57 | 0x2198 VAP_VTX_STATE_IND_REG_4 | ||
58 | 0x219C VAP_VTX_STATE_IND_REG_5 | ||
59 | 0x21A0 VAP_VTX_STATE_IND_REG_6 | ||
60 | 0x21A4 VAP_VTX_STATE_IND_REG_7 | ||
61 | 0x21A8 VAP_VTX_STATE_IND_REG_8 | ||
62 | 0x21AC VAP_VTX_STATE_IND_REG_9 | ||
63 | 0x21B0 VAP_VTX_STATE_IND_REG_10 | ||
64 | 0x21B4 VAP_VTX_STATE_IND_REG_11 | ||
65 | 0x21B8 VAP_VTX_STATE_IND_REG_12 | ||
66 | 0x21BC VAP_VTX_STATE_IND_REG_13 | ||
67 | 0x21C0 VAP_VTX_STATE_IND_REG_14 | ||
68 | 0x21C4 VAP_VTX_STATE_IND_REG_15 | ||
69 | 0x21DC VAP_PSC_SGN_NORM_CNTL | ||
70 | 0x21E0 VAP_PROG_STREAM_CNTL_EXT_0 | ||
71 | 0x21E4 VAP_PROG_STREAM_CNTL_EXT_1 | ||
72 | 0x21E8 VAP_PROG_STREAM_CNTL_EXT_2 | ||
73 | 0x21EC VAP_PROG_STREAM_CNTL_EXT_3 | ||
74 | 0x21F0 VAP_PROG_STREAM_CNTL_EXT_4 | ||
75 | 0x21F4 VAP_PROG_STREAM_CNTL_EXT_5 | ||
76 | 0x21F8 VAP_PROG_STREAM_CNTL_EXT_6 | ||
77 | 0x21FC VAP_PROG_STREAM_CNTL_EXT_7 | ||
78 | 0x2200 VAP_PVS_VECTOR_INDX_REG | ||
79 | 0x2204 VAP_PVS_VECTOR_DATA_REG | ||
80 | 0x2208 VAP_PVS_VECTOR_DATA_REG_128 | ||
81 | 0x221C VAP_CLIP_CNTL | ||
82 | 0x2220 VAP_GB_VERT_CLIP_ADJ | ||
83 | 0x2224 VAP_GB_VERT_DISC_ADJ | ||
84 | 0x2228 VAP_GB_HORZ_CLIP_ADJ | ||
85 | 0x222C VAP_GB_HORZ_DISC_ADJ | ||
86 | 0x2230 VAP_PVS_FLOW_CNTL_ADDRS_0 | ||
87 | 0x2234 VAP_PVS_FLOW_CNTL_ADDRS_1 | ||
88 | 0x2238 VAP_PVS_FLOW_CNTL_ADDRS_2 | ||
89 | 0x223C VAP_PVS_FLOW_CNTL_ADDRS_3 | ||
90 | 0x2240 VAP_PVS_FLOW_CNTL_ADDRS_4 | ||
91 | 0x2244 VAP_PVS_FLOW_CNTL_ADDRS_5 | ||
92 | 0x2248 VAP_PVS_FLOW_CNTL_ADDRS_6 | ||
93 | 0x224C VAP_PVS_FLOW_CNTL_ADDRS_7 | ||
94 | 0x2250 VAP_PVS_FLOW_CNTL_ADDRS_8 | ||
95 | 0x2254 VAP_PVS_FLOW_CNTL_ADDRS_9 | ||
96 | 0x2258 VAP_PVS_FLOW_CNTL_ADDRS_10 | ||
97 | 0x225C VAP_PVS_FLOW_CNTL_ADDRS_11 | ||
98 | 0x2260 VAP_PVS_FLOW_CNTL_ADDRS_12 | ||
99 | 0x2264 VAP_PVS_FLOW_CNTL_ADDRS_13 | ||
100 | 0x2268 VAP_PVS_FLOW_CNTL_ADDRS_14 | ||
101 | 0x226C VAP_PVS_FLOW_CNTL_ADDRS_15 | ||
102 | 0x2284 VAP_PVS_STATE_FLUSH_REG | ||
103 | 0x2288 VAP_PVS_VTX_TIMEOUT_REG | ||
104 | 0x2290 VAP_PVS_FLOW_CNTL_LOOP_INDEX_0 | ||
105 | 0x2294 VAP_PVS_FLOW_CNTL_LOOP_INDEX_1 | ||
106 | 0x2298 VAP_PVS_FLOW_CNTL_LOOP_INDEX_2 | ||
107 | 0x229C VAP_PVS_FLOW_CNTL_LOOP_INDEX_3 | ||
108 | 0x22A0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_4 | ||
109 | 0x22A4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_5 | ||
110 | 0x22A8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_6 | ||
111 | 0x22AC VAP_PVS_FLOW_CNTL_LOOP_INDEX_7 | ||
112 | 0x22B0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_8 | ||
113 | 0x22B4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_9 | ||
114 | 0x22B8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_10 | ||
115 | 0x22BC VAP_PVS_FLOW_CNTL_LOOP_INDEX_11 | ||
116 | 0x22C0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_12 | ||
117 | 0x22C4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_13 | ||
118 | 0x22C8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_14 | ||
119 | 0x22CC VAP_PVS_FLOW_CNTL_LOOP_INDEX_15 | ||
120 | 0x22D0 VAP_PVS_CODE_CNTL_0 | ||
121 | 0x22D4 VAP_PVS_CONST_CNTL | ||
122 | 0x22D8 VAP_PVS_CODE_CNTL_1 | ||
123 | 0x22DC VAP_PVS_FLOW_CNTL_OPC | ||
124 | 0x342C RB2D_DSTCACHE_CTLSTAT | ||
125 | 0x4000 GB_VAP_RASTER_VTX_FMT_0 | ||
126 | 0x4004 GB_VAP_RASTER_VTX_FMT_1 | ||
127 | 0x4008 GB_ENABLE | ||
128 | 0x401C GB_SELECT | ||
129 | 0x4020 GB_AA_CONFIG | ||
130 | 0x4024 GB_FIFO_SIZE | ||
131 | 0x4100 TX_INVALTAGS | ||
132 | 0x4200 GA_POINT_S0 | ||
133 | 0x4204 GA_POINT_T0 | ||
134 | 0x4208 GA_POINT_S1 | ||
135 | 0x420C GA_POINT_T1 | ||
136 | 0x4214 GA_TRIANGLE_STIPPLE | ||
137 | 0x421C GA_POINT_SIZE | ||
138 | 0x4230 GA_POINT_MINMAX | ||
139 | 0x4234 GA_LINE_CNTL | ||
140 | 0x4238 GA_LINE_STIPPLE_CONFIG | ||
141 | 0x4260 GA_LINE_STIPPLE_VALUE | ||
142 | 0x4264 GA_LINE_S0 | ||
143 | 0x4268 GA_LINE_S1 | ||
144 | 0x4278 GA_COLOR_CONTROL | ||
145 | 0x427C GA_SOLID_RG | ||
146 | 0x4280 GA_SOLID_BA | ||
147 | 0x4288 GA_POLY_MODE | ||
148 | 0x428C GA_ROUND_MODE | ||
149 | 0x4290 GA_OFFSET | ||
150 | 0x4294 GA_FOG_SCALE | ||
151 | 0x4298 GA_FOG_OFFSET | ||
152 | 0x42A0 SU_TEX_WRAP | ||
153 | 0x42A4 SU_POLY_OFFSET_FRONT_SCALE | ||
154 | 0x42A8 SU_POLY_OFFSET_FRONT_OFFSET | ||
155 | 0x42AC SU_POLY_OFFSET_BACK_SCALE | ||
156 | 0x42B0 SU_POLY_OFFSET_BACK_OFFSET | ||
157 | 0x42B4 SU_POLY_OFFSET_ENABLE | ||
158 | 0x42B8 SU_CULL_MODE | ||
159 | 0x42C0 SU_DEPTH_SCALE | ||
160 | 0x42C4 SU_DEPTH_OFFSET | ||
161 | 0x42C8 SU_REG_DEST | ||
162 | 0x4300 RS_COUNT | ||
163 | 0x4304 RS_INST_COUNT | ||
164 | 0x4310 RS_IP_0 | ||
165 | 0x4314 RS_IP_1 | ||
166 | 0x4318 RS_IP_2 | ||
167 | 0x431C RS_IP_3 | ||
168 | 0x4320 RS_IP_4 | ||
169 | 0x4324 RS_IP_5 | ||
170 | 0x4328 RS_IP_6 | ||
171 | 0x432C RS_IP_7 | ||
172 | 0x4330 RS_INST_0 | ||
173 | 0x4334 RS_INST_1 | ||
174 | 0x4338 RS_INST_2 | ||
175 | 0x433C RS_INST_3 | ||
176 | 0x4340 RS_INST_4 | ||
177 | 0x4344 RS_INST_5 | ||
178 | 0x4348 RS_INST_6 | ||
179 | 0x434C RS_INST_7 | ||
180 | 0x4350 RS_INST_8 | ||
181 | 0x4354 RS_INST_9 | ||
182 | 0x4358 RS_INST_10 | ||
183 | 0x435C RS_INST_11 | ||
184 | 0x4360 RS_INST_12 | ||
185 | 0x4364 RS_INST_13 | ||
186 | 0x4368 RS_INST_14 | ||
187 | 0x436C RS_INST_15 | ||
188 | 0x43A4 SC_HYPERZ_EN | ||
189 | 0x43A8 SC_EDGERULE | ||
190 | 0x43B0 SC_CLIP_0_A | ||
191 | 0x43B4 SC_CLIP_0_B | ||
192 | 0x43B8 SC_CLIP_1_A | ||
193 | 0x43BC SC_CLIP_1_B | ||
194 | 0x43C0 SC_CLIP_2_A | ||
195 | 0x43C4 SC_CLIP_2_B | ||
196 | 0x43C8 SC_CLIP_3_A | ||
197 | 0x43CC SC_CLIP_3_B | ||
198 | 0x43D0 SC_CLIP_RULE | ||
199 | 0x43E0 SC_SCISSOR0 | ||
200 | 0x43E8 SC_SCREENDOOR | ||
201 | 0x4440 TX_FILTER1_0 | ||
202 | 0x4444 TX_FILTER1_1 | ||
203 | 0x4448 TX_FILTER1_2 | ||
204 | 0x444C TX_FILTER1_3 | ||
205 | 0x4450 TX_FILTER1_4 | ||
206 | 0x4454 TX_FILTER1_5 | ||
207 | 0x4458 TX_FILTER1_6 | ||
208 | 0x445C TX_FILTER1_7 | ||
209 | 0x4460 TX_FILTER1_8 | ||
210 | 0x4464 TX_FILTER1_9 | ||
211 | 0x4468 TX_FILTER1_10 | ||
212 | 0x446C TX_FILTER1_11 | ||
213 | 0x4470 TX_FILTER1_12 | ||
214 | 0x4474 TX_FILTER1_13 | ||
215 | 0x4478 TX_FILTER1_14 | ||
216 | 0x447C TX_FILTER1_15 | ||
217 | 0x4580 TX_CHROMA_KEY_0 | ||
218 | 0x4584 TX_CHROMA_KEY_1 | ||
219 | 0x4588 TX_CHROMA_KEY_2 | ||
220 | 0x458C TX_CHROMA_KEY_3 | ||
221 | 0x4590 TX_CHROMA_KEY_4 | ||
222 | 0x4594 TX_CHROMA_KEY_5 | ||
223 | 0x4598 TX_CHROMA_KEY_6 | ||
224 | 0x459C TX_CHROMA_KEY_7 | ||
225 | 0x45A0 TX_CHROMA_KEY_8 | ||
226 | 0x45A4 TX_CHROMA_KEY_9 | ||
227 | 0x45A8 TX_CHROMA_KEY_10 | ||
228 | 0x45AC TX_CHROMA_KEY_11 | ||
229 | 0x45B0 TX_CHROMA_KEY_12 | ||
230 | 0x45B4 TX_CHROMA_KEY_13 | ||
231 | 0x45B8 TX_CHROMA_KEY_14 | ||
232 | 0x45BC TX_CHROMA_KEY_15 | ||
233 | 0x45C0 TX_BORDER_COLOR_0 | ||
234 | 0x45C4 TX_BORDER_COLOR_1 | ||
235 | 0x45C8 TX_BORDER_COLOR_2 | ||
236 | 0x45CC TX_BORDER_COLOR_3 | ||
237 | 0x45D0 TX_BORDER_COLOR_4 | ||
238 | 0x45D4 TX_BORDER_COLOR_5 | ||
239 | 0x45D8 TX_BORDER_COLOR_6 | ||
240 | 0x45DC TX_BORDER_COLOR_7 | ||
241 | 0x45E0 TX_BORDER_COLOR_8 | ||
242 | 0x45E4 TX_BORDER_COLOR_9 | ||
243 | 0x45E8 TX_BORDER_COLOR_10 | ||
244 | 0x45EC TX_BORDER_COLOR_11 | ||
245 | 0x45F0 TX_BORDER_COLOR_12 | ||
246 | 0x45F4 TX_BORDER_COLOR_13 | ||
247 | 0x45F8 TX_BORDER_COLOR_14 | ||
248 | 0x45FC TX_BORDER_COLOR_15 | ||
249 | 0x4600 US_CONFIG | ||
250 | 0x4604 US_PIXSIZE | ||
251 | 0x4608 US_CODE_OFFSET | ||
252 | 0x460C US_RESET | ||
253 | 0x4610 US_CODE_ADDR_0 | ||
254 | 0x4614 US_CODE_ADDR_1 | ||
255 | 0x4618 US_CODE_ADDR_2 | ||
256 | 0x461C US_CODE_ADDR_3 | ||
257 | 0x4620 US_TEX_INST_0 | ||
258 | 0x4624 US_TEX_INST_1 | ||
259 | 0x4628 US_TEX_INST_2 | ||
260 | 0x462C US_TEX_INST_3 | ||
261 | 0x4630 US_TEX_INST_4 | ||
262 | 0x4634 US_TEX_INST_5 | ||
263 | 0x4638 US_TEX_INST_6 | ||
264 | 0x463C US_TEX_INST_7 | ||
265 | 0x4640 US_TEX_INST_8 | ||
266 | 0x4644 US_TEX_INST_9 | ||
267 | 0x4648 US_TEX_INST_10 | ||
268 | 0x464C US_TEX_INST_11 | ||
269 | 0x4650 US_TEX_INST_12 | ||
270 | 0x4654 US_TEX_INST_13 | ||
271 | 0x4658 US_TEX_INST_14 | ||
272 | 0x465C US_TEX_INST_15 | ||
273 | 0x4660 US_TEX_INST_16 | ||
274 | 0x4664 US_TEX_INST_17 | ||
275 | 0x4668 US_TEX_INST_18 | ||
276 | 0x466C US_TEX_INST_19 | ||
277 | 0x4670 US_TEX_INST_20 | ||
278 | 0x4674 US_TEX_INST_21 | ||
279 | 0x4678 US_TEX_INST_22 | ||
280 | 0x467C US_TEX_INST_23 | ||
281 | 0x4680 US_TEX_INST_24 | ||
282 | 0x4684 US_TEX_INST_25 | ||
283 | 0x4688 US_TEX_INST_26 | ||
284 | 0x468C US_TEX_INST_27 | ||
285 | 0x4690 US_TEX_INST_28 | ||
286 | 0x4694 US_TEX_INST_29 | ||
287 | 0x4698 US_TEX_INST_30 | ||
288 | 0x469C US_TEX_INST_31 | ||
289 | 0x46A4 US_OUT_FMT_0 | ||
290 | 0x46A8 US_OUT_FMT_1 | ||
291 | 0x46AC US_OUT_FMT_2 | ||
292 | 0x46B0 US_OUT_FMT_3 | ||
293 | 0x46B4 US_W_FMT | ||
294 | 0x46C0 US_ALU_RGB_ADDR_0 | ||
295 | 0x46C4 US_ALU_RGB_ADDR_1 | ||
296 | 0x46C8 US_ALU_RGB_ADDR_2 | ||
297 | 0x46CC US_ALU_RGB_ADDR_3 | ||
298 | 0x46D0 US_ALU_RGB_ADDR_4 | ||
299 | 0x46D4 US_ALU_RGB_ADDR_5 | ||
300 | 0x46D8 US_ALU_RGB_ADDR_6 | ||
301 | 0x46DC US_ALU_RGB_ADDR_7 | ||
302 | 0x46E0 US_ALU_RGB_ADDR_8 | ||
303 | 0x46E4 US_ALU_RGB_ADDR_9 | ||
304 | 0x46E8 US_ALU_RGB_ADDR_10 | ||
305 | 0x46EC US_ALU_RGB_ADDR_11 | ||
306 | 0x46F0 US_ALU_RGB_ADDR_12 | ||
307 | 0x46F4 US_ALU_RGB_ADDR_13 | ||
308 | 0x46F8 US_ALU_RGB_ADDR_14 | ||
309 | 0x46FC US_ALU_RGB_ADDR_15 | ||
310 | 0x4700 US_ALU_RGB_ADDR_16 | ||
311 | 0x4704 US_ALU_RGB_ADDR_17 | ||
312 | 0x4708 US_ALU_RGB_ADDR_18 | ||
313 | 0x470C US_ALU_RGB_ADDR_19 | ||
314 | 0x4710 US_ALU_RGB_ADDR_20 | ||
315 | 0x4714 US_ALU_RGB_ADDR_21 | ||
316 | 0x4718 US_ALU_RGB_ADDR_22 | ||
317 | 0x471C US_ALU_RGB_ADDR_23 | ||
318 | 0x4720 US_ALU_RGB_ADDR_24 | ||
319 | 0x4724 US_ALU_RGB_ADDR_25 | ||
320 | 0x4728 US_ALU_RGB_ADDR_26 | ||
321 | 0x472C US_ALU_RGB_ADDR_27 | ||
322 | 0x4730 US_ALU_RGB_ADDR_28 | ||
323 | 0x4734 US_ALU_RGB_ADDR_29 | ||
324 | 0x4738 US_ALU_RGB_ADDR_30 | ||
325 | 0x473C US_ALU_RGB_ADDR_31 | ||
326 | 0x4740 US_ALU_RGB_ADDR_32 | ||
327 | 0x4744 US_ALU_RGB_ADDR_33 | ||
328 | 0x4748 US_ALU_RGB_ADDR_34 | ||
329 | 0x474C US_ALU_RGB_ADDR_35 | ||
330 | 0x4750 US_ALU_RGB_ADDR_36 | ||
331 | 0x4754 US_ALU_RGB_ADDR_37 | ||
332 | 0x4758 US_ALU_RGB_ADDR_38 | ||
333 | 0x475C US_ALU_RGB_ADDR_39 | ||
334 | 0x4760 US_ALU_RGB_ADDR_40 | ||
335 | 0x4764 US_ALU_RGB_ADDR_41 | ||
336 | 0x4768 US_ALU_RGB_ADDR_42 | ||
337 | 0x476C US_ALU_RGB_ADDR_43 | ||
338 | 0x4770 US_ALU_RGB_ADDR_44 | ||
339 | 0x4774 US_ALU_RGB_ADDR_45 | ||
340 | 0x4778 US_ALU_RGB_ADDR_46 | ||
341 | 0x477C US_ALU_RGB_ADDR_47 | ||
342 | 0x4780 US_ALU_RGB_ADDR_48 | ||
343 | 0x4784 US_ALU_RGB_ADDR_49 | ||
344 | 0x4788 US_ALU_RGB_ADDR_50 | ||
345 | 0x478C US_ALU_RGB_ADDR_51 | ||
346 | 0x4790 US_ALU_RGB_ADDR_52 | ||
347 | 0x4794 US_ALU_RGB_ADDR_53 | ||
348 | 0x4798 US_ALU_RGB_ADDR_54 | ||
349 | 0x479C US_ALU_RGB_ADDR_55 | ||
350 | 0x47A0 US_ALU_RGB_ADDR_56 | ||
351 | 0x47A4 US_ALU_RGB_ADDR_57 | ||
352 | 0x47A8 US_ALU_RGB_ADDR_58 | ||
353 | 0x47AC US_ALU_RGB_ADDR_59 | ||
354 | 0x47B0 US_ALU_RGB_ADDR_60 | ||
355 | 0x47B4 US_ALU_RGB_ADDR_61 | ||
356 | 0x47B8 US_ALU_RGB_ADDR_62 | ||
357 | 0x47BC US_ALU_RGB_ADDR_63 | ||
358 | 0x47C0 US_ALU_ALPHA_ADDR_0 | ||
359 | 0x47C4 US_ALU_ALPHA_ADDR_1 | ||
360 | 0x47C8 US_ALU_ALPHA_ADDR_2 | ||
361 | 0x47CC US_ALU_ALPHA_ADDR_3 | ||
362 | 0x47D0 US_ALU_ALPHA_ADDR_4 | ||
363 | 0x47D4 US_ALU_ALPHA_ADDR_5 | ||
364 | 0x47D8 US_ALU_ALPHA_ADDR_6 | ||
365 | 0x47DC US_ALU_ALPHA_ADDR_7 | ||
366 | 0x47E0 US_ALU_ALPHA_ADDR_8 | ||
367 | 0x47E4 US_ALU_ALPHA_ADDR_9 | ||
368 | 0x47E8 US_ALU_ALPHA_ADDR_10 | ||
369 | 0x47EC US_ALU_ALPHA_ADDR_11 | ||
370 | 0x47F0 US_ALU_ALPHA_ADDR_12 | ||
371 | 0x47F4 US_ALU_ALPHA_ADDR_13 | ||
372 | 0x47F8 US_ALU_ALPHA_ADDR_14 | ||
373 | 0x47FC US_ALU_ALPHA_ADDR_15 | ||
374 | 0x4800 US_ALU_ALPHA_ADDR_16 | ||
375 | 0x4804 US_ALU_ALPHA_ADDR_17 | ||
376 | 0x4808 US_ALU_ALPHA_ADDR_18 | ||
377 | 0x480C US_ALU_ALPHA_ADDR_19 | ||
378 | 0x4810 US_ALU_ALPHA_ADDR_20 | ||
379 | 0x4814 US_ALU_ALPHA_ADDR_21 | ||
380 | 0x4818 US_ALU_ALPHA_ADDR_22 | ||
381 | 0x481C US_ALU_ALPHA_ADDR_23 | ||
382 | 0x4820 US_ALU_ALPHA_ADDR_24 | ||
383 | 0x4824 US_ALU_ALPHA_ADDR_25 | ||
384 | 0x4828 US_ALU_ALPHA_ADDR_26 | ||
385 | 0x482C US_ALU_ALPHA_ADDR_27 | ||
386 | 0x4830 US_ALU_ALPHA_ADDR_28 | ||
387 | 0x4834 US_ALU_ALPHA_ADDR_29 | ||
388 | 0x4838 US_ALU_ALPHA_ADDR_30 | ||
389 | 0x483C US_ALU_ALPHA_ADDR_31 | ||
390 | 0x4840 US_ALU_ALPHA_ADDR_32 | ||
391 | 0x4844 US_ALU_ALPHA_ADDR_33 | ||
392 | 0x4848 US_ALU_ALPHA_ADDR_34 | ||
393 | 0x484C US_ALU_ALPHA_ADDR_35 | ||
394 | 0x4850 US_ALU_ALPHA_ADDR_36 | ||
395 | 0x4854 US_ALU_ALPHA_ADDR_37 | ||
396 | 0x4858 US_ALU_ALPHA_ADDR_38 | ||
397 | 0x485C US_ALU_ALPHA_ADDR_39 | ||
398 | 0x4860 US_ALU_ALPHA_ADDR_40 | ||
399 | 0x4864 US_ALU_ALPHA_ADDR_41 | ||
400 | 0x4868 US_ALU_ALPHA_ADDR_42 | ||
401 | 0x486C US_ALU_ALPHA_ADDR_43 | ||
402 | 0x4870 US_ALU_ALPHA_ADDR_44 | ||
403 | 0x4874 US_ALU_ALPHA_ADDR_45 | ||
404 | 0x4878 US_ALU_ALPHA_ADDR_46 | ||
405 | 0x487C US_ALU_ALPHA_ADDR_47 | ||
406 | 0x4880 US_ALU_ALPHA_ADDR_48 | ||
407 | 0x4884 US_ALU_ALPHA_ADDR_49 | ||
408 | 0x4888 US_ALU_ALPHA_ADDR_50 | ||
409 | 0x488C US_ALU_ALPHA_ADDR_51 | ||
410 | 0x4890 US_ALU_ALPHA_ADDR_52 | ||
411 | 0x4894 US_ALU_ALPHA_ADDR_53 | ||
412 | 0x4898 US_ALU_ALPHA_ADDR_54 | ||
413 | 0x489C US_ALU_ALPHA_ADDR_55 | ||
414 | 0x48A0 US_ALU_ALPHA_ADDR_56 | ||
415 | 0x48A4 US_ALU_ALPHA_ADDR_57 | ||
416 | 0x48A8 US_ALU_ALPHA_ADDR_58 | ||
417 | 0x48AC US_ALU_ALPHA_ADDR_59 | ||
418 | 0x48B0 US_ALU_ALPHA_ADDR_60 | ||
419 | 0x48B4 US_ALU_ALPHA_ADDR_61 | ||
420 | 0x48B8 US_ALU_ALPHA_ADDR_62 | ||
421 | 0x48BC US_ALU_ALPHA_ADDR_63 | ||
422 | 0x48C0 US_ALU_RGB_INST_0 | ||
423 | 0x48C4 US_ALU_RGB_INST_1 | ||
424 | 0x48C8 US_ALU_RGB_INST_2 | ||
425 | 0x48CC US_ALU_RGB_INST_3 | ||
426 | 0x48D0 US_ALU_RGB_INST_4 | ||
427 | 0x48D4 US_ALU_RGB_INST_5 | ||
428 | 0x48D8 US_ALU_RGB_INST_6 | ||
429 | 0x48DC US_ALU_RGB_INST_7 | ||
430 | 0x48E0 US_ALU_RGB_INST_8 | ||
431 | 0x48E4 US_ALU_RGB_INST_9 | ||
432 | 0x48E8 US_ALU_RGB_INST_10 | ||
433 | 0x48EC US_ALU_RGB_INST_11 | ||
434 | 0x48F0 US_ALU_RGB_INST_12 | ||
435 | 0x48F4 US_ALU_RGB_INST_13 | ||
436 | 0x48F8 US_ALU_RGB_INST_14 | ||
437 | 0x48FC US_ALU_RGB_INST_15 | ||
438 | 0x4900 US_ALU_RGB_INST_16 | ||
439 | 0x4904 US_ALU_RGB_INST_17 | ||
440 | 0x4908 US_ALU_RGB_INST_18 | ||
441 | 0x490C US_ALU_RGB_INST_19 | ||
442 | 0x4910 US_ALU_RGB_INST_20 | ||
443 | 0x4914 US_ALU_RGB_INST_21 | ||
444 | 0x4918 US_ALU_RGB_INST_22 | ||
445 | 0x491C US_ALU_RGB_INST_23 | ||
446 | 0x4920 US_ALU_RGB_INST_24 | ||
447 | 0x4924 US_ALU_RGB_INST_25 | ||
448 | 0x4928 US_ALU_RGB_INST_26 | ||
449 | 0x492C US_ALU_RGB_INST_27 | ||
450 | 0x4930 US_ALU_RGB_INST_28 | ||
451 | 0x4934 US_ALU_RGB_INST_29 | ||
452 | 0x4938 US_ALU_RGB_INST_30 | ||
453 | 0x493C US_ALU_RGB_INST_31 | ||
454 | 0x4940 US_ALU_RGB_INST_32 | ||
455 | 0x4944 US_ALU_RGB_INST_33 | ||
456 | 0x4948 US_ALU_RGB_INST_34 | ||
457 | 0x494C US_ALU_RGB_INST_35 | ||
458 | 0x4950 US_ALU_RGB_INST_36 | ||
459 | 0x4954 US_ALU_RGB_INST_37 | ||
460 | 0x4958 US_ALU_RGB_INST_38 | ||
461 | 0x495C US_ALU_RGB_INST_39 | ||
462 | 0x4960 US_ALU_RGB_INST_40 | ||
463 | 0x4964 US_ALU_RGB_INST_41 | ||
464 | 0x4968 US_ALU_RGB_INST_42 | ||
465 | 0x496C US_ALU_RGB_INST_43 | ||
466 | 0x4970 US_ALU_RGB_INST_44 | ||
467 | 0x4974 US_ALU_RGB_INST_45 | ||
468 | 0x4978 US_ALU_RGB_INST_46 | ||
469 | 0x497C US_ALU_RGB_INST_47 | ||
470 | 0x4980 US_ALU_RGB_INST_48 | ||
471 | 0x4984 US_ALU_RGB_INST_49 | ||
472 | 0x4988 US_ALU_RGB_INST_50 | ||
473 | 0x498C US_ALU_RGB_INST_51 | ||
474 | 0x4990 US_ALU_RGB_INST_52 | ||
475 | 0x4994 US_ALU_RGB_INST_53 | ||
476 | 0x4998 US_ALU_RGB_INST_54 | ||
477 | 0x499C US_ALU_RGB_INST_55 | ||
478 | 0x49A0 US_ALU_RGB_INST_56 | ||
479 | 0x49A4 US_ALU_RGB_INST_57 | ||
480 | 0x49A8 US_ALU_RGB_INST_58 | ||
481 | 0x49AC US_ALU_RGB_INST_59 | ||
482 | 0x49B0 US_ALU_RGB_INST_60 | ||
483 | 0x49B4 US_ALU_RGB_INST_61 | ||
484 | 0x49B8 US_ALU_RGB_INST_62 | ||
485 | 0x49BC US_ALU_RGB_INST_63 | ||
486 | 0x49C0 US_ALU_ALPHA_INST_0 | ||
487 | 0x49C4 US_ALU_ALPHA_INST_1 | ||
488 | 0x49C8 US_ALU_ALPHA_INST_2 | ||
489 | 0x49CC US_ALU_ALPHA_INST_3 | ||
490 | 0x49D0 US_ALU_ALPHA_INST_4 | ||
491 | 0x49D4 US_ALU_ALPHA_INST_5 | ||
492 | 0x49D8 US_ALU_ALPHA_INST_6 | ||
493 | 0x49DC US_ALU_ALPHA_INST_7 | ||
494 | 0x49E0 US_ALU_ALPHA_INST_8 | ||
495 | 0x49E4 US_ALU_ALPHA_INST_9 | ||
496 | 0x49E8 US_ALU_ALPHA_INST_10 | ||
497 | 0x49EC US_ALU_ALPHA_INST_11 | ||
498 | 0x49F0 US_ALU_ALPHA_INST_12 | ||
499 | 0x49F4 US_ALU_ALPHA_INST_13 | ||
500 | 0x49F8 US_ALU_ALPHA_INST_14 | ||
501 | 0x49FC US_ALU_ALPHA_INST_15 | ||
502 | 0x4A00 US_ALU_ALPHA_INST_16 | ||
503 | 0x4A04 US_ALU_ALPHA_INST_17 | ||
504 | 0x4A08 US_ALU_ALPHA_INST_18 | ||
505 | 0x4A0C US_ALU_ALPHA_INST_19 | ||
506 | 0x4A10 US_ALU_ALPHA_INST_20 | ||
507 | 0x4A14 US_ALU_ALPHA_INST_21 | ||
508 | 0x4A18 US_ALU_ALPHA_INST_22 | ||
509 | 0x4A1C US_ALU_ALPHA_INST_23 | ||
510 | 0x4A20 US_ALU_ALPHA_INST_24 | ||
511 | 0x4A24 US_ALU_ALPHA_INST_25 | ||
512 | 0x4A28 US_ALU_ALPHA_INST_26 | ||
513 | 0x4A2C US_ALU_ALPHA_INST_27 | ||
514 | 0x4A30 US_ALU_ALPHA_INST_28 | ||
515 | 0x4A34 US_ALU_ALPHA_INST_29 | ||
516 | 0x4A38 US_ALU_ALPHA_INST_30 | ||
517 | 0x4A3C US_ALU_ALPHA_INST_31 | ||
518 | 0x4A40 US_ALU_ALPHA_INST_32 | ||
519 | 0x4A44 US_ALU_ALPHA_INST_33 | ||
520 | 0x4A48 US_ALU_ALPHA_INST_34 | ||
521 | 0x4A4C US_ALU_ALPHA_INST_35 | ||
522 | 0x4A50 US_ALU_ALPHA_INST_36 | ||
523 | 0x4A54 US_ALU_ALPHA_INST_37 | ||
524 | 0x4A58 US_ALU_ALPHA_INST_38 | ||
525 | 0x4A5C US_ALU_ALPHA_INST_39 | ||
526 | 0x4A60 US_ALU_ALPHA_INST_40 | ||
527 | 0x4A64 US_ALU_ALPHA_INST_41 | ||
528 | 0x4A68 US_ALU_ALPHA_INST_42 | ||
529 | 0x4A6C US_ALU_ALPHA_INST_43 | ||
530 | 0x4A70 US_ALU_ALPHA_INST_44 | ||
531 | 0x4A74 US_ALU_ALPHA_INST_45 | ||
532 | 0x4A78 US_ALU_ALPHA_INST_46 | ||
533 | 0x4A7C US_ALU_ALPHA_INST_47 | ||
534 | 0x4A80 US_ALU_ALPHA_INST_48 | ||
535 | 0x4A84 US_ALU_ALPHA_INST_49 | ||
536 | 0x4A88 US_ALU_ALPHA_INST_50 | ||
537 | 0x4A8C US_ALU_ALPHA_INST_51 | ||
538 | 0x4A90 US_ALU_ALPHA_INST_52 | ||
539 | 0x4A94 US_ALU_ALPHA_INST_53 | ||
540 | 0x4A98 US_ALU_ALPHA_INST_54 | ||
541 | 0x4A9C US_ALU_ALPHA_INST_55 | ||
542 | 0x4AA0 US_ALU_ALPHA_INST_56 | ||
543 | 0x4AA4 US_ALU_ALPHA_INST_57 | ||
544 | 0x4AA8 US_ALU_ALPHA_INST_58 | ||
545 | 0x4AAC US_ALU_ALPHA_INST_59 | ||
546 | 0x4AB0 US_ALU_ALPHA_INST_60 | ||
547 | 0x4AB4 US_ALU_ALPHA_INST_61 | ||
548 | 0x4AB8 US_ALU_ALPHA_INST_62 | ||
549 | 0x4ABC US_ALU_ALPHA_INST_63 | ||
550 | 0x4BC0 FG_FOG_BLEND | ||
551 | 0x4BC4 FG_FOG_FACTOR | ||
552 | 0x4BC8 FG_FOG_COLOR_R | ||
553 | 0x4BCC FG_FOG_COLOR_G | ||
554 | 0x4BD0 FG_FOG_COLOR_B | ||
555 | 0x4BD4 FG_ALPHA_FUNC | ||
556 | 0x4BD8 FG_DEPTH_SRC | ||
557 | 0x4C00 US_ALU_CONST_R_0 | ||
558 | 0x4C04 US_ALU_CONST_G_0 | ||
559 | 0x4C08 US_ALU_CONST_B_0 | ||
560 | 0x4C0C US_ALU_CONST_A_0 | ||
561 | 0x4C10 US_ALU_CONST_R_1 | ||
562 | 0x4C14 US_ALU_CONST_G_1 | ||
563 | 0x4C18 US_ALU_CONST_B_1 | ||
564 | 0x4C1C US_ALU_CONST_A_1 | ||
565 | 0x4C20 US_ALU_CONST_R_2 | ||
566 | 0x4C24 US_ALU_CONST_G_2 | ||
567 | 0x4C28 US_ALU_CONST_B_2 | ||
568 | 0x4C2C US_ALU_CONST_A_2 | ||
569 | 0x4C30 US_ALU_CONST_R_3 | ||
570 | 0x4C34 US_ALU_CONST_G_3 | ||
571 | 0x4C38 US_ALU_CONST_B_3 | ||
572 | 0x4C3C US_ALU_CONST_A_3 | ||
573 | 0x4C40 US_ALU_CONST_R_4 | ||
574 | 0x4C44 US_ALU_CONST_G_4 | ||
575 | 0x4C48 US_ALU_CONST_B_4 | ||
576 | 0x4C4C US_ALU_CONST_A_4 | ||
577 | 0x4C50 US_ALU_CONST_R_5 | ||
578 | 0x4C54 US_ALU_CONST_G_5 | ||
579 | 0x4C58 US_ALU_CONST_B_5 | ||
580 | 0x4C5C US_ALU_CONST_A_5 | ||
581 | 0x4C60 US_ALU_CONST_R_6 | ||
582 | 0x4C64 US_ALU_CONST_G_6 | ||
583 | 0x4C68 US_ALU_CONST_B_6 | ||
584 | 0x4C6C US_ALU_CONST_A_6 | ||
585 | 0x4C70 US_ALU_CONST_R_7 | ||
586 | 0x4C74 US_ALU_CONST_G_7 | ||
587 | 0x4C78 US_ALU_CONST_B_7 | ||
588 | 0x4C7C US_ALU_CONST_A_7 | ||
589 | 0x4C80 US_ALU_CONST_R_8 | ||
590 | 0x4C84 US_ALU_CONST_G_8 | ||
591 | 0x4C88 US_ALU_CONST_B_8 | ||
592 | 0x4C8C US_ALU_CONST_A_8 | ||
593 | 0x4C90 US_ALU_CONST_R_9 | ||
594 | 0x4C94 US_ALU_CONST_G_9 | ||
595 | 0x4C98 US_ALU_CONST_B_9 | ||
596 | 0x4C9C US_ALU_CONST_A_9 | ||
597 | 0x4CA0 US_ALU_CONST_R_10 | ||
598 | 0x4CA4 US_ALU_CONST_G_10 | ||
599 | 0x4CA8 US_ALU_CONST_B_10 | ||
600 | 0x4CAC US_ALU_CONST_A_10 | ||
601 | 0x4CB0 US_ALU_CONST_R_11 | ||
602 | 0x4CB4 US_ALU_CONST_G_11 | ||
603 | 0x4CB8 US_ALU_CONST_B_11 | ||
604 | 0x4CBC US_ALU_CONST_A_11 | ||
605 | 0x4CC0 US_ALU_CONST_R_12 | ||
606 | 0x4CC4 US_ALU_CONST_G_12 | ||
607 | 0x4CC8 US_ALU_CONST_B_12 | ||
608 | 0x4CCC US_ALU_CONST_A_12 | ||
609 | 0x4CD0 US_ALU_CONST_R_13 | ||
610 | 0x4CD4 US_ALU_CONST_G_13 | ||
611 | 0x4CD8 US_ALU_CONST_B_13 | ||
612 | 0x4CDC US_ALU_CONST_A_13 | ||
613 | 0x4CE0 US_ALU_CONST_R_14 | ||
614 | 0x4CE4 US_ALU_CONST_G_14 | ||
615 | 0x4CE8 US_ALU_CONST_B_14 | ||
616 | 0x4CEC US_ALU_CONST_A_14 | ||
617 | 0x4CF0 US_ALU_CONST_R_15 | ||
618 | 0x4CF4 US_ALU_CONST_G_15 | ||
619 | 0x4CF8 US_ALU_CONST_B_15 | ||
620 | 0x4CFC US_ALU_CONST_A_15 | ||
621 | 0x4D00 US_ALU_CONST_R_16 | ||
622 | 0x4D04 US_ALU_CONST_G_16 | ||
623 | 0x4D08 US_ALU_CONST_B_16 | ||
624 | 0x4D0C US_ALU_CONST_A_16 | ||
625 | 0x4D10 US_ALU_CONST_R_17 | ||
626 | 0x4D14 US_ALU_CONST_G_17 | ||
627 | 0x4D18 US_ALU_CONST_B_17 | ||
628 | 0x4D1C US_ALU_CONST_A_17 | ||
629 | 0x4D20 US_ALU_CONST_R_18 | ||
630 | 0x4D24 US_ALU_CONST_G_18 | ||
631 | 0x4D28 US_ALU_CONST_B_18 | ||
632 | 0x4D2C US_ALU_CONST_A_18 | ||
633 | 0x4D30 US_ALU_CONST_R_19 | ||
634 | 0x4D34 US_ALU_CONST_G_19 | ||
635 | 0x4D38 US_ALU_CONST_B_19 | ||
636 | 0x4D3C US_ALU_CONST_A_19 | ||
637 | 0x4D40 US_ALU_CONST_R_20 | ||
638 | 0x4D44 US_ALU_CONST_G_20 | ||
639 | 0x4D48 US_ALU_CONST_B_20 | ||
640 | 0x4D4C US_ALU_CONST_A_20 | ||
641 | 0x4D50 US_ALU_CONST_R_21 | ||
642 | 0x4D54 US_ALU_CONST_G_21 | ||
643 | 0x4D58 US_ALU_CONST_B_21 | ||
644 | 0x4D5C US_ALU_CONST_A_21 | ||
645 | 0x4D60 US_ALU_CONST_R_22 | ||
646 | 0x4D64 US_ALU_CONST_G_22 | ||
647 | 0x4D68 US_ALU_CONST_B_22 | ||
648 | 0x4D6C US_ALU_CONST_A_22 | ||
649 | 0x4D70 US_ALU_CONST_R_23 | ||
650 | 0x4D74 US_ALU_CONST_G_23 | ||
651 | 0x4D78 US_ALU_CONST_B_23 | ||
652 | 0x4D7C US_ALU_CONST_A_23 | ||
653 | 0x4D80 US_ALU_CONST_R_24 | ||
654 | 0x4D84 US_ALU_CONST_G_24 | ||
655 | 0x4D88 US_ALU_CONST_B_24 | ||
656 | 0x4D8C US_ALU_CONST_A_24 | ||
657 | 0x4D90 US_ALU_CONST_R_25 | ||
658 | 0x4D94 US_ALU_CONST_G_25 | ||
659 | 0x4D98 US_ALU_CONST_B_25 | ||
660 | 0x4D9C US_ALU_CONST_A_25 | ||
661 | 0x4DA0 US_ALU_CONST_R_26 | ||
662 | 0x4DA4 US_ALU_CONST_G_26 | ||
663 | 0x4DA8 US_ALU_CONST_B_26 | ||
664 | 0x4DAC US_ALU_CONST_A_26 | ||
665 | 0x4DB0 US_ALU_CONST_R_27 | ||
666 | 0x4DB4 US_ALU_CONST_G_27 | ||
667 | 0x4DB8 US_ALU_CONST_B_27 | ||
668 | 0x4DBC US_ALU_CONST_A_27 | ||
669 | 0x4DC0 US_ALU_CONST_R_28 | ||
670 | 0x4DC4 US_ALU_CONST_G_28 | ||
671 | 0x4DC8 US_ALU_CONST_B_28 | ||
672 | 0x4DCC US_ALU_CONST_A_28 | ||
673 | 0x4DD0 US_ALU_CONST_R_29 | ||
674 | 0x4DD4 US_ALU_CONST_G_29 | ||
675 | 0x4DD8 US_ALU_CONST_B_29 | ||
676 | 0x4DDC US_ALU_CONST_A_29 | ||
677 | 0x4DE0 US_ALU_CONST_R_30 | ||
678 | 0x4DE4 US_ALU_CONST_G_30 | ||
679 | 0x4DE8 US_ALU_CONST_B_30 | ||
680 | 0x4DEC US_ALU_CONST_A_30 | ||
681 | 0x4DF0 US_ALU_CONST_R_31 | ||
682 | 0x4DF4 US_ALU_CONST_G_31 | ||
683 | 0x4DF8 US_ALU_CONST_B_31 | ||
684 | 0x4DFC US_ALU_CONST_A_31 | ||
685 | 0x4E04 RB3D_BLENDCNTL_R3 | ||
686 | 0x4E08 RB3D_ABLENDCNTL_R3 | ||
687 | 0x4E0C RB3D_COLOR_CHANNEL_MASK | ||
688 | 0x4E10 RB3D_CONSTANT_COLOR | ||
689 | 0x4E14 RB3D_COLOR_CLEAR_VALUE | ||
690 | 0x4E18 RB3D_ROPCNTL_R3 | ||
691 | 0x4E1C RB3D_CLRCMP_FLIPE_R3 | ||
692 | 0x4E20 RB3D_CLRCMP_CLR_R3 | ||
693 | 0x4E24 RB3D_CLRCMP_MSK_R3 | ||
694 | 0x4E48 RB3D_DEBUG_CTL | ||
695 | 0x4E4C RB3D_DSTCACHE_CTLSTAT_R3 | ||
696 | 0x4E50 RB3D_DITHER_CTL | ||
697 | 0x4E54 RB3D_CMASK_OFFSET0 | ||
698 | 0x4E58 RB3D_CMASK_OFFSET1 | ||
699 | 0x4E5C RB3D_CMASK_OFFSET2 | ||
700 | 0x4E60 RB3D_CMASK_OFFSET3 | ||
701 | 0x4E64 RB3D_CMASK_PITCH0 | ||
702 | 0x4E68 RB3D_CMASK_PITCH1 | ||
703 | 0x4E6C RB3D_CMASK_PITCH2 | ||
704 | 0x4E70 RB3D_CMASK_PITCH3 | ||
705 | 0x4E74 RB3D_CMASK_WRINDEX | ||
706 | 0x4E78 RB3D_CMASK_DWORD | ||
707 | 0x4E7C RB3D_CMASK_RDINDEX | ||
708 | 0x4E80 RB3D_AARESOLVE_OFFSET | ||
709 | 0x4E84 RB3D_AARESOLVE_PITCH | ||
710 | 0x4E88 RB3D_AARESOLVE_CTL | ||
711 | 0x4F04 ZB_ZSTENCILCNTL | ||
712 | 0x4F08 ZB_STENCILREFMASK | ||
713 | 0x4F14 ZB_ZTOP | ||
714 | 0x4F18 ZB_ZCACHE_CTLSTAT | ||
715 | 0x4F1C ZB_BW_CNTL | ||
716 | 0x4F28 ZB_DEPTHCLEARVALUE | ||
717 | 0x4F30 ZB_ZMASK_OFFSET | ||
718 | 0x4F34 ZB_ZMASK_PITCH | ||
719 | 0x4F38 ZB_ZMASK_WRINDEX | ||
720 | 0x4F3C ZB_ZMASK_DWORD | ||
721 | 0x4F40 ZB_ZMASK_RDINDEX | ||
722 | 0x4F44 ZB_HIZ_OFFSET | ||
723 | 0x4F48 ZB_HIZ_WRINDEX | ||
724 | 0x4F4C ZB_HIZ_DWORD | ||
725 | 0x4F50 ZB_HIZ_RDINDEX | ||
726 | 0x4F54 ZB_HIZ_PITCH | ||
727 | 0x4F58 ZB_ZPASS_DATA | ||
728 | 0x4F60 ZB_DEPTHXY_OFFSET | ||
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index 7e8ce983a908..1b8d62f5e73c 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c | |||
@@ -29,6 +29,8 @@ | |||
29 | #include "radeon_reg.h" | 29 | #include "radeon_reg.h" |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | 31 | ||
32 | #include "rs600_reg_safe.h" | ||
33 | |||
32 | /* rs600 depends on : */ | 34 | /* rs600 depends on : */ |
33 | void r100_hdp_reset(struct radeon_device *rdev); | 35 | void r100_hdp_reset(struct radeon_device *rdev); |
34 | int r100_gui_wait_for_idle(struct radeon_device *rdev); | 36 | int r100_gui_wait_for_idle(struct radeon_device *rdev); |
@@ -409,3 +411,10 @@ void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v) | |||
409 | ((reg) & RS600_MC_ADDR_MASK)); | 411 | ((reg) & RS600_MC_ADDR_MASK)); |
410 | WREG32(RS600_MC_DATA, v); | 412 | WREG32(RS600_MC_DATA, v); |
411 | } | 413 | } |
414 | |||
415 | int rs600_init(struct radeon_device *rdev) | ||
416 | { | ||
417 | rdev->config.r300.reg_safe_bm = rs600_reg_safe_bm; | ||
418 | rdev->config.r300.reg_safe_bm_size = ARRAY_SIZE(rs600_reg_safe_bm); | ||
419 | return 0; | ||
420 | } | ||
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index bc6b7c5339bc..839595b00728 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c | |||
@@ -652,68 +652,3 @@ void rs690_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v) | |||
652 | WREG32(RS690_MC_DATA, v); | 652 | WREG32(RS690_MC_DATA, v); |
653 | WREG32(RS690_MC_INDEX, RS690_MC_INDEX_WR_ACK); | 653 | WREG32(RS690_MC_INDEX, RS690_MC_INDEX_WR_ACK); |
654 | } | 654 | } |
655 | |||
656 | static const unsigned rs690_reg_safe_bm[219] = { | ||
657 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
658 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
659 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
660 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
661 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
662 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
663 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
664 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
665 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
666 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
667 | 0x17FF1FFF,0xFFFFFFFC,0xFFFFFFFF,0xFF30FFBF, | ||
668 | 0xFFFFFFF8,0xC3E6FFFF,0xFFFFF6DF,0xFFFFFFFF, | ||
669 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
670 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
671 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFF03F, | ||
672 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
673 | 0xFFFFFFFF,0xFFFFEFCE,0xF00EBFFF,0x007C0000, | ||
674 | 0xF0000078,0xFF000009,0xFFFFFFFF,0xFFFFFFFF, | ||
675 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
676 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
677 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
678 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
679 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
680 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
681 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
682 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
683 | 0xFFFFF7FF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
684 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
685 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
686 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
687 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
688 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
689 | 0xFFFFFC78,0xFFFFFFFF,0xFFFFFFFE,0xFFFFFFFF, | ||
690 | 0x38FF8F50,0xFFF88082,0xF000000C,0xFAE009FF, | ||
691 | 0x0000FFFF,0xFFFFFFFF,0xFFFFFFFF,0x00000000, | ||
692 | 0x00000000,0x0000C100,0x00000000,0x00000000, | ||
693 | 0x00000000,0x00000000,0x00000000,0x00000000, | ||
694 | 0x00000000,0xFFFF0000,0xFFFFFFFF,0xFF80FFFF, | ||
695 | 0x00000000,0x00000000,0x00000000,0x00000000, | ||
696 | 0x0003FC01,0xFFFFFFF8,0xFE800B19,0xFFFFFFFF, | ||
697 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
698 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
699 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
700 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
701 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
702 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
703 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
704 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
705 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
706 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
707 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
708 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
709 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
710 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
711 | 0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF, | ||
712 | }; | ||
713 | |||
714 | int rs690_init(struct radeon_device *rdev) | ||
715 | { | ||
716 | rdev->config.r300.reg_safe_bm = rs690_reg_safe_bm; | ||
717 | rdev->config.r300.reg_safe_bm_size = ARRAY_SIZE(rs690_reg_safe_bm); | ||
718 | return 0; | ||
719 | } | ||