diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-20 23:21:01 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-21 00:20:38 -0400 |
commit | 50f153036c9d9e4ae1768d5ca9c2ad4184f7a0b7 (patch) | |
tree | f9e4946bd45ead837fa298713c77ac51374dd8e3 /drivers/gpu/drm | |
parent | 759e4f83f418f4001e724042b4c0e408d615d9ec (diff) |
drm/radeon/kms: generate the safe register tables.
Previously we just made these offline and included them,
but no reason we can't generate them at build time.
TODO: add rs690 + r100/r200 when done.
should we do rs480/rs690 no tcl version?
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/radeon/Makefile | 15 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/mkregtable.c | 726 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 45 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/reg_srcs/r300 | 728 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/reg_srcs/rv515 | 486 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rv515.c | 64 |
6 files changed, 1960 insertions, 104 deletions
diff --git a/drivers/gpu/drm/radeon/Makefile b/drivers/gpu/drm/radeon/Makefile index 013d38059943..8e1771889b4d 100644 --- a/drivers/gpu/drm/radeon/Makefile +++ b/drivers/gpu/drm/radeon/Makefile | |||
@@ -6,6 +6,21 @@ ccflags-y := -Iinclude/drm | |||
6 | radeon-y := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o \ | 6 | radeon-y := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o \ |
7 | radeon_irq.o r300_cmdbuf.o r600_cp.o | 7 | radeon_irq.o r300_cmdbuf.o r600_cp.o |
8 | 8 | ||
9 | hostprogs-y := mkregtable | ||
10 | |||
11 | quiet_cmd_mkregtable = MKREGTABLE $@ | ||
12 | cmd_mkregtable = $(obj)/mkregtable $< > $@ | ||
13 | |||
14 | $(obj)/rv515_reg_safe.h: $(src)/reg_srcs/rv515 $(obj)/mkregtable | ||
15 | $(call if_changed,mkregtable) | ||
16 | |||
17 | $(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable | ||
18 | $(call if_changed,mkregtable) | ||
19 | |||
20 | $(obj)/rv515.o: $(obj)/rv515_reg_safe.h | ||
21 | |||
22 | $(obj)/r300.o: $(obj)/r300_reg_safe.h | ||
23 | |||
9 | radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \ | 24 | radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \ |
10 | radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \ | 25 | radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \ |
11 | atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \ | 26 | atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \ |
diff --git a/drivers/gpu/drm/radeon/mkregtable.c b/drivers/gpu/drm/radeon/mkregtable.c new file mode 100644 index 000000000000..0acd1cf8c361 --- /dev/null +++ b/drivers/gpu/drm/radeon/mkregtable.c | |||
@@ -0,0 +1,726 @@ | |||
1 | /* utility to create the register check tables | ||
2 | * this includes inlined list.h safe for userspace. | ||
3 | * | ||
4 | * Copyright 2009 Jerome Glisse | ||
5 | * Copyright 2009 Red Hat Inc. | ||
6 | * | ||
7 | * Authors: | ||
8 | * Jerome Glisse | ||
9 | * Dave Airlie | ||
10 | */ | ||
11 | |||
12 | #include <sys/types.h> | ||
13 | #include <stdlib.h> | ||
14 | #include <string.h> | ||
15 | #include <stdio.h> | ||
16 | #include <regex.h> | ||
17 | #include <libgen.h> | ||
18 | |||
19 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | ||
20 | /** | ||
21 | * container_of - cast a member of a structure out to the containing structure | ||
22 | * @ptr: the pointer to the member. | ||
23 | * @type: the type of the container struct this is embedded in. | ||
24 | * @member: the name of the member within the struct. | ||
25 | * | ||
26 | */ | ||
27 | #define container_of(ptr, type, member) ({ \ | ||
28 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ||
29 | (type *)( (char *)__mptr - offsetof(type,member) );}) | ||
30 | |||
31 | |||
32 | |||
33 | /* | ||
34 | * Simple doubly linked list implementation. | ||
35 | * | ||
36 | * Some of the internal functions ("__xxx") are useful when | ||
37 | * manipulating whole lists rather than single entries, as | ||
38 | * sometimes we already know the next/prev entries and we can | ||
39 | * generate better code by using them directly rather than | ||
40 | * using the generic single-entry routines. | ||
41 | */ | ||
42 | |||
43 | struct list_head { | ||
44 | struct list_head *next, *prev; | ||
45 | }; | ||
46 | |||
47 | #define LIST_HEAD_INIT(name) { &(name), &(name) } | ||
48 | |||
49 | #define LIST_HEAD(name) \ | ||
50 | struct list_head name = LIST_HEAD_INIT(name) | ||
51 | |||
52 | static inline void INIT_LIST_HEAD(struct list_head *list) | ||
53 | { | ||
54 | list->next = list; | ||
55 | list->prev = list; | ||
56 | } | ||
57 | |||
58 | /* | ||
59 | * Insert a new entry between two known consecutive entries. | ||
60 | * | ||
61 | * This is only for internal list manipulation where we know | ||
62 | * the prev/next entries already! | ||
63 | */ | ||
64 | #ifndef CONFIG_DEBUG_LIST | ||
65 | static inline void __list_add(struct list_head *new, | ||
66 | struct list_head *prev, | ||
67 | struct list_head *next) | ||
68 | { | ||
69 | next->prev = new; | ||
70 | new->next = next; | ||
71 | new->prev = prev; | ||
72 | prev->next = new; | ||
73 | } | ||
74 | #else | ||
75 | extern void __list_add(struct list_head *new, | ||
76 | struct list_head *prev, | ||
77 | struct list_head *next); | ||
78 | #endif | ||
79 | |||
80 | /** | ||
81 | * list_add - add a new entry | ||
82 | * @new: new entry to be added | ||
83 | * @head: list head to add it after | ||
84 | * | ||
85 | * Insert a new entry after the specified head. | ||
86 | * This is good for implementing stacks. | ||
87 | */ | ||
88 | static inline void list_add(struct list_head *new, struct list_head *head) | ||
89 | { | ||
90 | __list_add(new, head, head->next); | ||
91 | } | ||
92 | |||
93 | |||
94 | /** | ||
95 | * list_add_tail - add a new entry | ||
96 | * @new: new entry to be added | ||
97 | * @head: list head to add it before | ||
98 | * | ||
99 | * Insert a new entry before the specified head. | ||
100 | * This is useful for implementing queues. | ||
101 | */ | ||
102 | static inline void list_add_tail(struct list_head *new, struct list_head *head) | ||
103 | { | ||
104 | __list_add(new, head->prev, head); | ||
105 | } | ||
106 | |||
107 | /* | ||
108 | * Delete a list entry by making the prev/next entries | ||
109 | * point to each other. | ||
110 | * | ||
111 | * This is only for internal list manipulation where we know | ||
112 | * the prev/next entries already! | ||
113 | */ | ||
114 | static inline void __list_del(struct list_head * prev, struct list_head * next) | ||
115 | { | ||
116 | next->prev = prev; | ||
117 | prev->next = next; | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * list_del - deletes entry from list. | ||
122 | * @entry: the element to delete from the list. | ||
123 | * Note: list_empty() on entry does not return true after this, the entry is | ||
124 | * in an undefined state. | ||
125 | */ | ||
126 | #ifndef CONFIG_DEBUG_LIST | ||
127 | static inline void list_del(struct list_head *entry) | ||
128 | { | ||
129 | __list_del(entry->prev, entry->next); | ||
130 | entry->next = (void*)0xDEADBEEF; | ||
131 | entry->prev = (void*)0xBEEFDEAD; | ||
132 | } | ||
133 | #else | ||
134 | extern void list_del(struct list_head *entry); | ||
135 | #endif | ||
136 | |||
137 | /** | ||
138 | * list_replace - replace old entry by new one | ||
139 | * @old : the element to be replaced | ||
140 | * @new : the new element to insert | ||
141 | * | ||
142 | * If @old was empty, it will be overwritten. | ||
143 | */ | ||
144 | static inline void list_replace(struct list_head *old, | ||
145 | struct list_head *new) | ||
146 | { | ||
147 | new->next = old->next; | ||
148 | new->next->prev = new; | ||
149 | new->prev = old->prev; | ||
150 | new->prev->next = new; | ||
151 | } | ||
152 | |||
153 | static inline void list_replace_init(struct list_head *old, | ||
154 | struct list_head *new) | ||
155 | { | ||
156 | list_replace(old, new); | ||
157 | INIT_LIST_HEAD(old); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * list_del_init - deletes entry from list and reinitialize it. | ||
162 | * @entry: the element to delete from the list. | ||
163 | */ | ||
164 | static inline void list_del_init(struct list_head *entry) | ||
165 | { | ||
166 | __list_del(entry->prev, entry->next); | ||
167 | INIT_LIST_HEAD(entry); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * list_move - delete from one list and add as another's head | ||
172 | * @list: the entry to move | ||
173 | * @head: the head that will precede our entry | ||
174 | */ | ||
175 | static inline void list_move(struct list_head *list, struct list_head *head) | ||
176 | { | ||
177 | __list_del(list->prev, list->next); | ||
178 | list_add(list, head); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * list_move_tail - delete from one list and add as another's tail | ||
183 | * @list: the entry to move | ||
184 | * @head: the head that will follow our entry | ||
185 | */ | ||
186 | static inline void list_move_tail(struct list_head *list, | ||
187 | struct list_head *head) | ||
188 | { | ||
189 | __list_del(list->prev, list->next); | ||
190 | list_add_tail(list, head); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * list_is_last - tests whether @list is the last entry in list @head | ||
195 | * @list: the entry to test | ||
196 | * @head: the head of the list | ||
197 | */ | ||
198 | static inline int list_is_last(const struct list_head *list, | ||
199 | const struct list_head *head) | ||
200 | { | ||
201 | return list->next == head; | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * list_empty - tests whether a list is empty | ||
206 | * @head: the list to test. | ||
207 | */ | ||
208 | static inline int list_empty(const struct list_head *head) | ||
209 | { | ||
210 | return head->next == head; | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * list_empty_careful - tests whether a list is empty and not being modified | ||
215 | * @head: the list to test | ||
216 | * | ||
217 | * Description: | ||
218 | * tests whether a list is empty _and_ checks that no other CPU might be | ||
219 | * in the process of modifying either member (next or prev) | ||
220 | * | ||
221 | * NOTE: using list_empty_careful() without synchronization | ||
222 | * can only be safe if the only activity that can happen | ||
223 | * to the list entry is list_del_init(). Eg. it cannot be used | ||
224 | * if another CPU could re-list_add() it. | ||
225 | */ | ||
226 | static inline int list_empty_careful(const struct list_head *head) | ||
227 | { | ||
228 | struct list_head *next = head->next; | ||
229 | return (next == head) && (next == head->prev); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * list_is_singular - tests whether a list has just one entry. | ||
234 | * @head: the list to test. | ||
235 | */ | ||
236 | static inline int list_is_singular(const struct list_head *head) | ||
237 | { | ||
238 | return !list_empty(head) && (head->next == head->prev); | ||
239 | } | ||
240 | |||
241 | static inline void __list_cut_position(struct list_head *list, | ||
242 | struct list_head *head, struct list_head *entry) | ||
243 | { | ||
244 | struct list_head *new_first = entry->next; | ||
245 | list->next = head->next; | ||
246 | list->next->prev = list; | ||
247 | list->prev = entry; | ||
248 | entry->next = list; | ||
249 | head->next = new_first; | ||
250 | new_first->prev = head; | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * list_cut_position - cut a list into two | ||
255 | * @list: a new list to add all removed entries | ||
256 | * @head: a list with entries | ||
257 | * @entry: an entry within head, could be the head itself | ||
258 | * and if so we won't cut the list | ||
259 | * | ||
260 | * This helper moves the initial part of @head, up to and | ||
261 | * including @entry, from @head to @list. You should | ||
262 | * pass on @entry an element you know is on @head. @list | ||
263 | * should be an empty list or a list you do not care about | ||
264 | * losing its data. | ||
265 | * | ||
266 | */ | ||
267 | static inline void list_cut_position(struct list_head *list, | ||
268 | struct list_head *head, struct list_head *entry) | ||
269 | { | ||
270 | if (list_empty(head)) | ||
271 | return; | ||
272 | if (list_is_singular(head) && | ||
273 | (head->next != entry && head != entry)) | ||
274 | return; | ||
275 | if (entry == head) | ||
276 | INIT_LIST_HEAD(list); | ||
277 | else | ||
278 | __list_cut_position(list, head, entry); | ||
279 | } | ||
280 | |||
281 | static inline void __list_splice(const struct list_head *list, | ||
282 | struct list_head *prev, | ||
283 | struct list_head *next) | ||
284 | { | ||
285 | struct list_head *first = list->next; | ||
286 | struct list_head *last = list->prev; | ||
287 | |||
288 | first->prev = prev; | ||
289 | prev->next = first; | ||
290 | |||
291 | last->next = next; | ||
292 | next->prev = last; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * list_splice - join two lists, this is designed for stacks | ||
297 | * @list: the new list to add. | ||
298 | * @head: the place to add it in the first list. | ||
299 | */ | ||
300 | static inline void list_splice(const struct list_head *list, | ||
301 | struct list_head *head) | ||
302 | { | ||
303 | if (!list_empty(list)) | ||
304 | __list_splice(list, head, head->next); | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * list_splice_tail - join two lists, each list being a queue | ||
309 | * @list: the new list to add. | ||
310 | * @head: the place to add it in the first list. | ||
311 | */ | ||
312 | static inline void list_splice_tail(struct list_head *list, | ||
313 | struct list_head *head) | ||
314 | { | ||
315 | if (!list_empty(list)) | ||
316 | __list_splice(list, head->prev, head); | ||
317 | } | ||
318 | |||
319 | /** | ||
320 | * list_splice_init - join two lists and reinitialise the emptied list. | ||
321 | * @list: the new list to add. | ||
322 | * @head: the place to add it in the first list. | ||
323 | * | ||
324 | * The list at @list is reinitialised | ||
325 | */ | ||
326 | static inline void list_splice_init(struct list_head *list, | ||
327 | struct list_head *head) | ||
328 | { | ||
329 | if (!list_empty(list)) { | ||
330 | __list_splice(list, head, head->next); | ||
331 | INIT_LIST_HEAD(list); | ||
332 | } | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * list_splice_tail_init - join two lists and reinitialise the emptied list | ||
337 | * @list: the new list to add. | ||
338 | * @head: the place to add it in the first list. | ||
339 | * | ||
340 | * Each of the lists is a queue. | ||
341 | * The list at @list is reinitialised | ||
342 | */ | ||
343 | static inline void list_splice_tail_init(struct list_head *list, | ||
344 | struct list_head *head) | ||
345 | { | ||
346 | if (!list_empty(list)) { | ||
347 | __list_splice(list, head->prev, head); | ||
348 | INIT_LIST_HEAD(list); | ||
349 | } | ||
350 | } | ||
351 | |||
352 | /** | ||
353 | * list_entry - get the struct for this entry | ||
354 | * @ptr: the &struct list_head pointer. | ||
355 | * @type: the type of the struct this is embedded in. | ||
356 | * @member: the name of the list_struct within the struct. | ||
357 | */ | ||
358 | #define list_entry(ptr, type, member) \ | ||
359 | container_of(ptr, type, member) | ||
360 | |||
361 | /** | ||
362 | * list_first_entry - get the first element from a list | ||
363 | * @ptr: the list head to take the element from. | ||
364 | * @type: the type of the struct this is embedded in. | ||
365 | * @member: the name of the list_struct within the struct. | ||
366 | * | ||
367 | * Note, that list is expected to be not empty. | ||
368 | */ | ||
369 | #define list_first_entry(ptr, type, member) \ | ||
370 | list_entry((ptr)->next, type, member) | ||
371 | |||
372 | /** | ||
373 | * list_for_each - iterate over a list | ||
374 | * @pos: the &struct list_head to use as a loop cursor. | ||
375 | * @head: the head for your list. | ||
376 | */ | ||
377 | #define list_for_each(pos, head) \ | ||
378 | for (pos = (head)->next; prefetch(pos->next), pos != (head); \ | ||
379 | pos = pos->next) | ||
380 | |||
381 | /** | ||
382 | * __list_for_each - iterate over a list | ||
383 | * @pos: the &struct list_head to use as a loop cursor. | ||
384 | * @head: the head for your list. | ||
385 | * | ||
386 | * This variant differs from list_for_each() in that it's the | ||
387 | * simplest possible list iteration code, no prefetching is done. | ||
388 | * Use this for code that knows the list to be very short (empty | ||
389 | * or 1 entry) most of the time. | ||
390 | */ | ||
391 | #define __list_for_each(pos, head) \ | ||
392 | for (pos = (head)->next; pos != (head); pos = pos->next) | ||
393 | |||
394 | /** | ||
395 | * list_for_each_prev - iterate over a list backwards | ||
396 | * @pos: the &struct list_head to use as a loop cursor. | ||
397 | * @head: the head for your list. | ||
398 | */ | ||
399 | #define list_for_each_prev(pos, head) \ | ||
400 | for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \ | ||
401 | pos = pos->prev) | ||
402 | |||
403 | /** | ||
404 | * list_for_each_safe - iterate over a list safe against removal of list entry | ||
405 | * @pos: the &struct list_head to use as a loop cursor. | ||
406 | * @n: another &struct list_head to use as temporary storage | ||
407 | * @head: the head for your list. | ||
408 | */ | ||
409 | #define list_for_each_safe(pos, n, head) \ | ||
410 | for (pos = (head)->next, n = pos->next; pos != (head); \ | ||
411 | pos = n, n = pos->next) | ||
412 | |||
413 | /** | ||
414 | * list_for_each_prev_safe - iterate over a list backwards safe against removal of list entry | ||
415 | * @pos: the &struct list_head to use as a loop cursor. | ||
416 | * @n: another &struct list_head to use as temporary storage | ||
417 | * @head: the head for your list. | ||
418 | */ | ||
419 | #define list_for_each_prev_safe(pos, n, head) \ | ||
420 | for (pos = (head)->prev, n = pos->prev; \ | ||
421 | prefetch(pos->prev), pos != (head); \ | ||
422 | pos = n, n = pos->prev) | ||
423 | |||
424 | /** | ||
425 | * list_for_each_entry - iterate over list of given type | ||
426 | * @pos: the type * to use as a loop cursor. | ||
427 | * @head: the head for your list. | ||
428 | * @member: the name of the list_struct within the struct. | ||
429 | */ | ||
430 | #define list_for_each_entry(pos, head, member) \ | ||
431 | for (pos = list_entry((head)->next, typeof(*pos), member); \ | ||
432 | &pos->member != (head); \ | ||
433 | pos = list_entry(pos->member.next, typeof(*pos), member)) | ||
434 | |||
435 | /** | ||
436 | * list_for_each_entry_reverse - iterate backwards over list of given type. | ||
437 | * @pos: the type * to use as a loop cursor. | ||
438 | * @head: the head for your list. | ||
439 | * @member: the name of the list_struct within the struct. | ||
440 | */ | ||
441 | #define list_for_each_entry_reverse(pos, head, member) \ | ||
442 | for (pos = list_entry((head)->prev, typeof(*pos), member); \ | ||
443 | prefetch(pos->member.prev), &pos->member != (head); \ | ||
444 | pos = list_entry(pos->member.prev, typeof(*pos), member)) | ||
445 | |||
446 | /** | ||
447 | * list_prepare_entry - prepare a pos entry for use in list_for_each_entry_continue() | ||
448 | * @pos: the type * to use as a start point | ||
449 | * @head: the head of the list | ||
450 | * @member: the name of the list_struct within the struct. | ||
451 | * | ||
452 | * Prepares a pos entry for use as a start point in list_for_each_entry_continue(). | ||
453 | */ | ||
454 | #define list_prepare_entry(pos, head, member) \ | ||
455 | ((pos) ? : list_entry(head, typeof(*pos), member)) | ||
456 | |||
457 | /** | ||
458 | * list_for_each_entry_continue - continue iteration over list of given type | ||
459 | * @pos: the type * to use as a loop cursor. | ||
460 | * @head: the head for your list. | ||
461 | * @member: the name of the list_struct within the struct. | ||
462 | * | ||
463 | * Continue to iterate over list of given type, continuing after | ||
464 | * the current position. | ||
465 | */ | ||
466 | #define list_for_each_entry_continue(pos, head, member) \ | ||
467 | for (pos = list_entry(pos->member.next, typeof(*pos), member); \ | ||
468 | prefetch(pos->member.next), &pos->member != (head); \ | ||
469 | pos = list_entry(pos->member.next, typeof(*pos), member)) | ||
470 | |||
471 | /** | ||
472 | * list_for_each_entry_continue_reverse - iterate backwards from the given point | ||
473 | * @pos: the type * to use as a loop cursor. | ||
474 | * @head: the head for your list. | ||
475 | * @member: the name of the list_struct within the struct. | ||
476 | * | ||
477 | * Start to iterate over list of given type backwards, continuing after | ||
478 | * the current position. | ||
479 | */ | ||
480 | #define list_for_each_entry_continue_reverse(pos, head, member) \ | ||
481 | for (pos = list_entry(pos->member.prev, typeof(*pos), member); \ | ||
482 | prefetch(pos->member.prev), &pos->member != (head); \ | ||
483 | pos = list_entry(pos->member.prev, typeof(*pos), member)) | ||
484 | |||
485 | /** | ||
486 | * list_for_each_entry_from - iterate over list of given type from the current point | ||
487 | * @pos: the type * to use as a loop cursor. | ||
488 | * @head: the head for your list. | ||
489 | * @member: the name of the list_struct within the struct. | ||
490 | * | ||
491 | * Iterate over list of given type, continuing from current position. | ||
492 | */ | ||
493 | #define list_for_each_entry_from(pos, head, member) \ | ||
494 | for (; prefetch(pos->member.next), &pos->member != (head); \ | ||
495 | pos = list_entry(pos->member.next, typeof(*pos), member)) | ||
496 | |||
497 | /** | ||
498 | * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry | ||
499 | * @pos: the type * to use as a loop cursor. | ||
500 | * @n: another type * to use as temporary storage | ||
501 | * @head: the head for your list. | ||
502 | * @member: the name of the list_struct within the struct. | ||
503 | */ | ||
504 | #define list_for_each_entry_safe(pos, n, head, member) \ | ||
505 | for (pos = list_entry((head)->next, typeof(*pos), member), \ | ||
506 | n = list_entry(pos->member.next, typeof(*pos), member); \ | ||
507 | &pos->member != (head); \ | ||
508 | pos = n, n = list_entry(n->member.next, typeof(*n), member)) | ||
509 | |||
510 | /** | ||
511 | * list_for_each_entry_safe_continue | ||
512 | * @pos: the type * to use as a loop cursor. | ||
513 | * @n: another type * to use as temporary storage | ||
514 | * @head: the head for your list. | ||
515 | * @member: the name of the list_struct within the struct. | ||
516 | * | ||
517 | * Iterate over list of given type, continuing after current point, | ||
518 | * safe against removal of list entry. | ||
519 | */ | ||
520 | #define list_for_each_entry_safe_continue(pos, n, head, member) \ | ||
521 | for (pos = list_entry(pos->member.next, typeof(*pos), member), \ | ||
522 | n = list_entry(pos->member.next, typeof(*pos), member); \ | ||
523 | &pos->member != (head); \ | ||
524 | pos = n, n = list_entry(n->member.next, typeof(*n), member)) | ||
525 | |||
526 | /** | ||
527 | * list_for_each_entry_safe_from | ||
528 | * @pos: the type * to use as a loop cursor. | ||
529 | * @n: another type * to use as temporary storage | ||
530 | * @head: the head for your list. | ||
531 | * @member: the name of the list_struct within the struct. | ||
532 | * | ||
533 | * Iterate over list of given type from current point, safe against | ||
534 | * removal of list entry. | ||
535 | */ | ||
536 | #define list_for_each_entry_safe_from(pos, n, head, member) \ | ||
537 | for (n = list_entry(pos->member.next, typeof(*pos), member); \ | ||
538 | &pos->member != (head); \ | ||
539 | pos = n, n = list_entry(n->member.next, typeof(*n), member)) | ||
540 | |||
541 | /** | ||
542 | * list_for_each_entry_safe_reverse | ||
543 | * @pos: the type * to use as a loop cursor. | ||
544 | * @n: another type * to use as temporary storage | ||
545 | * @head: the head for your list. | ||
546 | * @member: the name of the list_struct within the struct. | ||
547 | * | ||
548 | * Iterate backwards over list of given type, safe against removal | ||
549 | * of list entry. | ||
550 | */ | ||
551 | #define list_for_each_entry_safe_reverse(pos, n, head, member) \ | ||
552 | for (pos = list_entry((head)->prev, typeof(*pos), member), \ | ||
553 | n = list_entry(pos->member.prev, typeof(*pos), member); \ | ||
554 | &pos->member != (head); \ | ||
555 | pos = n, n = list_entry(n->member.prev, typeof(*n), member)) | ||
556 | |||
557 | struct offset { | ||
558 | struct list_head list; | ||
559 | unsigned offset; | ||
560 | }; | ||
561 | |||
562 | struct table { | ||
563 | struct list_head offsets; | ||
564 | unsigned offset_max; | ||
565 | unsigned nentry; | ||
566 | unsigned *table; | ||
567 | char *gpu_prefix; | ||
568 | }; | ||
569 | |||
570 | struct offset* offset_new(unsigned o) | ||
571 | { | ||
572 | struct offset *offset; | ||
573 | |||
574 | offset = (struct offset*)malloc(sizeof(struct offset)); | ||
575 | if (offset) { | ||
576 | INIT_LIST_HEAD(&offset->list); | ||
577 | offset->offset = o; | ||
578 | } | ||
579 | return offset; | ||
580 | } | ||
581 | |||
582 | void table_offset_add(struct table *t, struct offset *offset) | ||
583 | { | ||
584 | list_add_tail(&offset->list, &t->offsets); | ||
585 | } | ||
586 | |||
587 | void table_init(struct table *t) | ||
588 | { | ||
589 | INIT_LIST_HEAD(&t->offsets); | ||
590 | t->offset_max = 0; | ||
591 | t->nentry = 0; | ||
592 | t->table = NULL; | ||
593 | } | ||
594 | |||
595 | void table_print(struct table *t) | ||
596 | { | ||
597 | unsigned nlloop, i, j, n, c, id; | ||
598 | |||
599 | nlloop = (t->nentry + 3) / 4; | ||
600 | c = t->nentry; | ||
601 | printf("static const unsigned %s_reg_safe_bm[%d] = {\n", t->gpu_prefix, t->nentry); | ||
602 | for(i = 0, id = 0; i < nlloop; i++) { | ||
603 | n = 4; | ||
604 | if (n > c) { | ||
605 | n = c; | ||
606 | } | ||
607 | c -= n; | ||
608 | for(j = 0; j < n; j++) { | ||
609 | if (j == 0) printf("\t"); | ||
610 | else printf(" "); | ||
611 | printf("0x%08X,", t->table[id++]); | ||
612 | } | ||
613 | printf("\n"); | ||
614 | } | ||
615 | printf("};\n"); | ||
616 | } | ||
617 | |||
618 | int table_build(struct table *t) | ||
619 | { | ||
620 | struct offset *offset; | ||
621 | unsigned i, m; | ||
622 | |||
623 | t->nentry = ((t->offset_max >> 2) + 31) / 32; | ||
624 | t->table = (unsigned*)malloc(sizeof(unsigned) * t->nentry); | ||
625 | if (t->table == NULL) { | ||
626 | return -1; | ||
627 | } | ||
628 | memset(t->table, 0xff, sizeof(unsigned) * t->nentry); | ||
629 | list_for_each_entry(offset, &t->offsets, list) { | ||
630 | i = (offset->offset >> 2) / 32; | ||
631 | m = (offset->offset >> 2) & 31; | ||
632 | m = 1 << m; | ||
633 | t->table[i] ^= m; | ||
634 | } | ||
635 | return 0; | ||
636 | } | ||
637 | |||
638 | static char gpu_name[10]; | ||
639 | int parser_auth(struct table *t, const char *filename) | ||
640 | { | ||
641 | FILE *file; | ||
642 | regex_t mask_rex; | ||
643 | regmatch_t match[4]; | ||
644 | char buf[1024]; | ||
645 | size_t end; | ||
646 | int len; | ||
647 | int done = 0; | ||
648 | int r; | ||
649 | unsigned o; | ||
650 | struct offset *offset; | ||
651 | char last_reg_s[10]; | ||
652 | int last_reg; | ||
653 | |||
654 | if (regcomp(&mask_rex, "(0x[0-9a-fA-F]*) *([_a-zA-Z0-9]*)", REG_EXTENDED)) { | ||
655 | fprintf(stderr, "Failed to compile regular expression\n"); | ||
656 | return -1; | ||
657 | } | ||
658 | file = fopen(filename, "r"); | ||
659 | if (file == NULL) { | ||
660 | fprintf(stderr, "Failed to open: %s\n", filename); | ||
661 | return -1; | ||
662 | } | ||
663 | fseek(file, 0, SEEK_END); | ||
664 | end = ftell(file); | ||
665 | fseek(file, 0, SEEK_SET); | ||
666 | |||
667 | /* get header */ | ||
668 | if (fgets(buf, 1024, file) == NULL) | ||
669 | return -1; | ||
670 | |||
671 | /* first line will contain the last register | ||
672 | * and gpu name */ | ||
673 | sscanf(buf, "%s %s", gpu_name, last_reg_s); | ||
674 | t->gpu_prefix = gpu_name; | ||
675 | last_reg = strtol(last_reg_s, NULL, 16); | ||
676 | |||
677 | do { | ||
678 | if (fgets(buf, 1024, file) == NULL) | ||
679 | return -1; | ||
680 | len = strlen(buf); | ||
681 | if (ftell(file) == end) { | ||
682 | done = 1; | ||
683 | } | ||
684 | if (len) { | ||
685 | r = regexec(&mask_rex, buf, 4, match, 0); | ||
686 | if (r == REG_NOMATCH) { | ||
687 | } else if (r) { | ||
688 | fprintf(stderr, "Error matching regular expression %d in %s\n", | ||
689 | r, filename); | ||
690 | return -1; | ||
691 | } else { | ||
692 | buf[match[0].rm_eo] = 0; | ||
693 | buf[match[1].rm_eo] = 0; | ||
694 | buf[match[2].rm_eo] = 0; | ||
695 | o = strtol(&buf[match[1].rm_so], NULL, 16); | ||
696 | offset = offset_new(o); | ||
697 | table_offset_add(t, offset); | ||
698 | if (o > t->offset_max) { | ||
699 | t->offset_max = o; | ||
700 | } | ||
701 | } | ||
702 | } | ||
703 | } while (!done); | ||
704 | fclose(file); | ||
705 | if (t->offset_max < last_reg) | ||
706 | t->offset_max = last_reg; | ||
707 | return table_build(t); | ||
708 | } | ||
709 | |||
710 | int main(int argc, char *argv[]) | ||
711 | { | ||
712 | struct table t; | ||
713 | |||
714 | if (argc != 2) { | ||
715 | fprintf(stderr, "Usage: %s <authfile>\n", | ||
716 | argv[0]); | ||
717 | exit(1); | ||
718 | } | ||
719 | table_init(&t); | ||
720 | if (parser_auth(&t, argv[1])) { | ||
721 | fprintf(stderr, "Failed to parse file %s\n", argv[1]); | ||
722 | return -1; | ||
723 | } | ||
724 | table_print(&t); | ||
725 | return 0; | ||
726 | } | ||
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index c47579dcafa1..482d6b296b74 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include "radeon_drm.h" | 33 | #include "radeon_drm.h" |
34 | #include "radeon_share.h" | 34 | #include "radeon_share.h" |
35 | 35 | ||
36 | #include "r300_reg_safe.h" | ||
37 | |||
36 | /* r300,r350,rv350,rv370,rv380 depends on : */ | 38 | /* r300,r350,rv350,rv370,rv380 depends on : */ |
37 | void r100_hdp_reset(struct radeon_device *rdev); | 39 | void r100_hdp_reset(struct radeon_device *rdev); |
38 | int r100_cp_reset(struct radeon_device *rdev); | 40 | int r100_cp_reset(struct radeon_device *rdev); |
@@ -953,49 +955,6 @@ static inline void r300_cs_track_clear(struct r300_cs_track *track) | |||
953 | } | 955 | } |
954 | } | 956 | } |
955 | 957 | ||
956 | static const unsigned r300_reg_safe_bm[159] = { | ||
957 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
958 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
959 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
960 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
961 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
962 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
963 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
964 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
965 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
966 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
967 | 0x17FF1FFF, 0xFFFFFFFC, 0xFFFFFFFF, 0xFF30FFBF, | ||
968 | 0xFFFFFFF8, 0xC3E6FFFF, 0xFFFFF6DF, 0xFFFFFFFF, | ||
969 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
970 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
971 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFF03F, | ||
972 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
973 | 0xFFFFFFFF, 0xFFFFEFCE, 0xF00EBFFF, 0x007C0000, | ||
974 | 0xF0000078, 0xFF000009, 0xFFFFFFFF, 0xFFFFFFFF, | ||
975 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
976 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
977 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
978 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
979 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
980 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
981 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
982 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
983 | 0xFFFFF7FF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
984 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
985 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
986 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
987 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
988 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
989 | 0xFFFFFC78, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFF, | ||
990 | 0x38FF8F50, 0xFFF88082, 0xF000000C, 0xFAE009FF, | ||
991 | 0x0000FFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, | ||
992 | 0x00000000, 0x0000C100, 0x00000000, 0x00000000, | ||
993 | 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||
994 | 0x00000000, 0xFFFF0000, 0xFFFFFFFF, 0xFF80FFFF, | ||
995 | 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||
996 | 0x0003FC01, 0xFFFFFFF8, 0xFE800B19, | ||
997 | }; | ||
998 | |||
999 | static int r300_packet0_check(struct radeon_cs_parser *p, | 958 | static int r300_packet0_check(struct radeon_cs_parser *p, |
1000 | struct radeon_cs_packet *pkt, | 959 | struct radeon_cs_packet *pkt, |
1001 | unsigned idx, unsigned reg) | 960 | unsigned idx, unsigned reg) |
diff --git a/drivers/gpu/drm/radeon/reg_srcs/r300 b/drivers/gpu/drm/radeon/reg_srcs/r300 new file mode 100644 index 000000000000..b4bd5b64fcba --- /dev/null +++ b/drivers/gpu/drm/radeon/reg_srcs/r300 | |||
@@ -0,0 +1,728 @@ | |||
1 | r300 0x4f60 | ||
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/reg_srcs/rv515 b/drivers/gpu/drm/radeon/reg_srcs/rv515 new file mode 100644 index 000000000000..d1fcf382fd77 --- /dev/null +++ b/drivers/gpu/drm/radeon/reg_srcs/rv515 | |||
@@ -0,0 +1,486 @@ | |||
1 | rv515 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 | 0x2218 VAP_TEX_TO_COLOR_CNTL | ||
82 | 0x221C VAP_CLIP_CNTL | ||
83 | 0x2220 VAP_GB_VERT_CLIP_ADJ | ||
84 | 0x2224 VAP_GB_VERT_DISC_ADJ | ||
85 | 0x2228 VAP_GB_HORZ_CLIP_ADJ | ||
86 | 0x222C VAP_GB_HORZ_DISC_ADJ | ||
87 | 0x2230 VAP_PVS_FLOW_CNTL_ADDRS_0 | ||
88 | 0x2234 VAP_PVS_FLOW_CNTL_ADDRS_1 | ||
89 | 0x2238 VAP_PVS_FLOW_CNTL_ADDRS_2 | ||
90 | 0x223C VAP_PVS_FLOW_CNTL_ADDRS_3 | ||
91 | 0x2240 VAP_PVS_FLOW_CNTL_ADDRS_4 | ||
92 | 0x2244 VAP_PVS_FLOW_CNTL_ADDRS_5 | ||
93 | 0x2248 VAP_PVS_FLOW_CNTL_ADDRS_6 | ||
94 | 0x224C VAP_PVS_FLOW_CNTL_ADDRS_7 | ||
95 | 0x2250 VAP_PVS_FLOW_CNTL_ADDRS_8 | ||
96 | 0x2254 VAP_PVS_FLOW_CNTL_ADDRS_9 | ||
97 | 0x2258 VAP_PVS_FLOW_CNTL_ADDRS_10 | ||
98 | 0x225C VAP_PVS_FLOW_CNTL_ADDRS_11 | ||
99 | 0x2260 VAP_PVS_FLOW_CNTL_ADDRS_12 | ||
100 | 0x2264 VAP_PVS_FLOW_CNTL_ADDRS_13 | ||
101 | 0x2268 VAP_PVS_FLOW_CNTL_ADDRS_14 | ||
102 | 0x226C VAP_PVS_FLOW_CNTL_ADDRS_15 | ||
103 | 0x2284 VAP_PVS_STATE_FLUSH_REG | ||
104 | 0x2288 VAP_PVS_VTX_TIMEOUT_REG | ||
105 | 0x2290 VAP_PVS_FLOW_CNTL_LOOP_INDEX_0 | ||
106 | 0x2294 VAP_PVS_FLOW_CNTL_LOOP_INDEX_1 | ||
107 | 0x2298 VAP_PVS_FLOW_CNTL_LOOP_INDEX_2 | ||
108 | 0x229C VAP_PVS_FLOW_CNTL_LOOP_INDEX_3 | ||
109 | 0x22A0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_4 | ||
110 | 0x22A4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_5 | ||
111 | 0x22A8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_6 | ||
112 | 0x22AC VAP_PVS_FLOW_CNTL_LOOP_INDEX_7 | ||
113 | 0x22B0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_8 | ||
114 | 0x22B4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_9 | ||
115 | 0x22B8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_10 | ||
116 | 0x22BC VAP_PVS_FLOW_CNTL_LOOP_INDEX_11 | ||
117 | 0x22C0 VAP_PVS_FLOW_CNTL_LOOP_INDEX_12 | ||
118 | 0x22C4 VAP_PVS_FLOW_CNTL_LOOP_INDEX_13 | ||
119 | 0x22C8 VAP_PVS_FLOW_CNTL_LOOP_INDEX_14 | ||
120 | 0x22CC VAP_PVS_FLOW_CNTL_LOOP_INDEX_15 | ||
121 | 0x22D0 VAP_PVS_CODE_CNTL_0 | ||
122 | 0x22D4 VAP_PVS_CONST_CNTL | ||
123 | 0x22D8 VAP_PVS_CODE_CNTL_1 | ||
124 | 0x22DC VAP_PVS_FLOW_CNTL_OPC | ||
125 | 0x2500 VAP_PVS_FLOW_CNTL_ADDRS_LW_0 | ||
126 | 0x2504 VAP_PVS_FLOW_CNTL_ADDRS_UW_0 | ||
127 | 0x2508 VAP_PVS_FLOW_CNTL_ADDRS_LW_1 | ||
128 | 0x250C VAP_PVS_FLOW_CNTL_ADDRS_UW_1 | ||
129 | 0x2510 VAP_PVS_FLOW_CNTL_ADDRS_LW_2 | ||
130 | 0x2514 VAP_PVS_FLOW_CNTL_ADDRS_UW_2 | ||
131 | 0x2518 VAP_PVS_FLOW_CNTL_ADDRS_LW_3 | ||
132 | 0x251C VAP_PVS_FLOW_CNTL_ADDRS_UW_3 | ||
133 | 0x2520 VAP_PVS_FLOW_CNTL_ADDRS_LW_4 | ||
134 | 0x2524 VAP_PVS_FLOW_CNTL_ADDRS_UW_4 | ||
135 | 0x2528 VAP_PVS_FLOW_CNTL_ADDRS_LW_5 | ||
136 | 0x252C VAP_PVS_FLOW_CNTL_ADDRS_UW_5 | ||
137 | 0x2530 VAP_PVS_FLOW_CNTL_ADDRS_LW_6 | ||
138 | 0x2534 VAP_PVS_FLOW_CNTL_ADDRS_UW_6 | ||
139 | 0x2538 VAP_PVS_FLOW_CNTL_ADDRS_LW_7 | ||
140 | 0x253C VAP_PVS_FLOW_CNTL_ADDRS_UW_7 | ||
141 | 0x2540 VAP_PVS_FLOW_CNTL_ADDRS_LW_8 | ||
142 | 0x2544 VAP_PVS_FLOW_CNTL_ADDRS_UW_8 | ||
143 | 0x2548 VAP_PVS_FLOW_CNTL_ADDRS_LW_9 | ||
144 | 0x254C VAP_PVS_FLOW_CNTL_ADDRS_UW_9 | ||
145 | 0x2550 VAP_PVS_FLOW_CNTL_ADDRS_LW_10 | ||
146 | 0x2554 VAP_PVS_FLOW_CNTL_ADDRS_UW_10 | ||
147 | 0x2558 VAP_PVS_FLOW_CNTL_ADDRS_LW_11 | ||
148 | 0x255C VAP_PVS_FLOW_CNTL_ADDRS_UW_11 | ||
149 | 0x2560 VAP_PVS_FLOW_CNTL_ADDRS_LW_12 | ||
150 | 0x2564 VAP_PVS_FLOW_CNTL_ADDRS_UW_12 | ||
151 | 0x2568 VAP_PVS_FLOW_CNTL_ADDRS_LW_13 | ||
152 | 0x256C VAP_PVS_FLOW_CNTL_ADDRS_UW_13 | ||
153 | 0x2570 VAP_PVS_FLOW_CNTL_ADDRS_LW_14 | ||
154 | 0x2574 VAP_PVS_FLOW_CNTL_ADDRS_UW_14 | ||
155 | 0x2578 VAP_PVS_FLOW_CNTL_ADDRS_LW_15 | ||
156 | 0x257C VAP_PVS_FLOW_CNTL_ADDRS_UW_15 | ||
157 | 0x342C RB2D_DSTCACHE_CTLSTAT | ||
158 | 0x4000 GB_VAP_RASTER_VTX_FMT_0 | ||
159 | 0x4004 GB_VAP_RASTER_VTX_FMT_1 | ||
160 | 0x4008 GB_ENABLE | ||
161 | 0x401C GB_SELECT | ||
162 | 0x4020 GB_AA_CONFIG | ||
163 | 0x4024 GB_FIFO_SIZE | ||
164 | 0x4100 TX_INVALTAGS | ||
165 | 0x4200 GA_POINT_S0 | ||
166 | 0x4204 GA_POINT_T0 | ||
167 | 0x4208 GA_POINT_S1 | ||
168 | 0x420C GA_POINT_T1 | ||
169 | 0x4214 GA_TRIANGLE_STIPPLE | ||
170 | 0x421C GA_POINT_SIZE | ||
171 | 0x4230 GA_POINT_MINMAX | ||
172 | 0x4234 GA_LINE_CNTL | ||
173 | 0x4238 GA_LINE_STIPPLE_CONFIG | ||
174 | 0x4260 GA_LINE_STIPPLE_VALUE | ||
175 | 0x4264 GA_LINE_S0 | ||
176 | 0x4268 GA_LINE_S1 | ||
177 | 0x4278 GA_COLOR_CONTROL | ||
178 | 0x427C GA_SOLID_RG | ||
179 | 0x4280 GA_SOLID_BA | ||
180 | 0x4288 GA_POLY_MODE | ||
181 | 0x428C GA_ROUND_MODE | ||
182 | 0x4290 GA_OFFSET | ||
183 | 0x4294 GA_FOG_SCALE | ||
184 | 0x4298 GA_FOG_OFFSET | ||
185 | 0x42A0 SU_TEX_WRAP | ||
186 | 0x42A4 SU_POLY_OFFSET_FRONT_SCALE | ||
187 | 0x42A8 SU_POLY_OFFSET_FRONT_OFFSET | ||
188 | 0x42AC SU_POLY_OFFSET_BACK_SCALE | ||
189 | 0x42B0 SU_POLY_OFFSET_BACK_OFFSET | ||
190 | 0x42B4 SU_POLY_OFFSET_ENABLE | ||
191 | 0x42B8 SU_CULL_MODE | ||
192 | 0x42C0 SU_DEPTH_SCALE | ||
193 | 0x42C4 SU_DEPTH_OFFSET | ||
194 | 0x42C8 SU_REG_DEST | ||
195 | 0x4300 RS_COUNT | ||
196 | 0x4304 RS_INST_COUNT | ||
197 | 0x4074 RS_IP_0 | ||
198 | 0x4078 RS_IP_1 | ||
199 | 0x407C RS_IP_2 | ||
200 | 0x4080 RS_IP_3 | ||
201 | 0x4084 RS_IP_4 | ||
202 | 0x4088 RS_IP_5 | ||
203 | 0x408C RS_IP_6 | ||
204 | 0x4090 RS_IP_7 | ||
205 | 0x4094 RS_IP_8 | ||
206 | 0x4098 RS_IP_9 | ||
207 | 0x409C RS_IP_10 | ||
208 | 0x40A0 RS_IP_11 | ||
209 | 0x40A4 RS_IP_12 | ||
210 | 0x40A8 RS_IP_13 | ||
211 | 0x40AC RS_IP_14 | ||
212 | 0x40B0 RS_IP_15 | ||
213 | 0x4320 RS_INST_0 | ||
214 | 0x4324 RS_INST_1 | ||
215 | 0x4328 RS_INST_2 | ||
216 | 0x432C RS_INST_3 | ||
217 | 0x4330 RS_INST_4 | ||
218 | 0x4334 RS_INST_5 | ||
219 | 0x4338 RS_INST_6 | ||
220 | 0x433C RS_INST_7 | ||
221 | 0x4340 RS_INST_8 | ||
222 | 0x4344 RS_INST_9 | ||
223 | 0x4348 RS_INST_10 | ||
224 | 0x434C RS_INST_11 | ||
225 | 0x4350 RS_INST_12 | ||
226 | 0x4354 RS_INST_13 | ||
227 | 0x4358 RS_INST_14 | ||
228 | 0x435C RS_INST_15 | ||
229 | 0x43A4 SC_HYPERZ_EN | ||
230 | 0x43A8 SC_EDGERULE | ||
231 | 0x43B0 SC_CLIP_0_A | ||
232 | 0x43B4 SC_CLIP_0_B | ||
233 | 0x43B8 SC_CLIP_1_A | ||
234 | 0x43BC SC_CLIP_1_B | ||
235 | 0x43C0 SC_CLIP_2_A | ||
236 | 0x43C4 SC_CLIP_2_B | ||
237 | 0x43C8 SC_CLIP_3_A | ||
238 | 0x43CC SC_CLIP_3_B | ||
239 | 0x43D0 SC_CLIP_RULE | ||
240 | 0x43E0 SC_SCISSOR0 | ||
241 | 0x43E8 SC_SCREENDOOR | ||
242 | 0x4440 TX_FILTER1_0 | ||
243 | 0x4444 TX_FILTER1_1 | ||
244 | 0x4448 TX_FILTER1_2 | ||
245 | 0x444C TX_FILTER1_3 | ||
246 | 0x4450 TX_FILTER1_4 | ||
247 | 0x4454 TX_FILTER1_5 | ||
248 | 0x4458 TX_FILTER1_6 | ||
249 | 0x445C TX_FILTER1_7 | ||
250 | 0x4460 TX_FILTER1_8 | ||
251 | 0x4464 TX_FILTER1_9 | ||
252 | 0x4468 TX_FILTER1_10 | ||
253 | 0x446C TX_FILTER1_11 | ||
254 | 0x4470 TX_FILTER1_12 | ||
255 | 0x4474 TX_FILTER1_13 | ||
256 | 0x4478 TX_FILTER1_14 | ||
257 | 0x447C TX_FILTER1_15 | ||
258 | 0x4580 TX_CHROMA_KEY_0 | ||
259 | 0x4584 TX_CHROMA_KEY_1 | ||
260 | 0x4588 TX_CHROMA_KEY_2 | ||
261 | 0x458C TX_CHROMA_KEY_3 | ||
262 | 0x4590 TX_CHROMA_KEY_4 | ||
263 | 0x4594 TX_CHROMA_KEY_5 | ||
264 | 0x4598 TX_CHROMA_KEY_6 | ||
265 | 0x459C TX_CHROMA_KEY_7 | ||
266 | 0x45A0 TX_CHROMA_KEY_8 | ||
267 | 0x45A4 TX_CHROMA_KEY_9 | ||
268 | 0x45A8 TX_CHROMA_KEY_10 | ||
269 | 0x45AC TX_CHROMA_KEY_11 | ||
270 | 0x45B0 TX_CHROMA_KEY_12 | ||
271 | 0x45B4 TX_CHROMA_KEY_13 | ||
272 | 0x45B8 TX_CHROMA_KEY_14 | ||
273 | 0x45BC TX_CHROMA_KEY_15 | ||
274 | 0x45C0 TX_BORDER_COLOR_0 | ||
275 | 0x45C4 TX_BORDER_COLOR_1 | ||
276 | 0x45C8 TX_BORDER_COLOR_2 | ||
277 | 0x45CC TX_BORDER_COLOR_3 | ||
278 | 0x45D0 TX_BORDER_COLOR_4 | ||
279 | 0x45D4 TX_BORDER_COLOR_5 | ||
280 | 0x45D8 TX_BORDER_COLOR_6 | ||
281 | 0x45DC TX_BORDER_COLOR_7 | ||
282 | 0x45E0 TX_BORDER_COLOR_8 | ||
283 | 0x45E4 TX_BORDER_COLOR_9 | ||
284 | 0x45E8 TX_BORDER_COLOR_10 | ||
285 | 0x45EC TX_BORDER_COLOR_11 | ||
286 | 0x45F0 TX_BORDER_COLOR_12 | ||
287 | 0x45F4 TX_BORDER_COLOR_13 | ||
288 | 0x45F8 TX_BORDER_COLOR_14 | ||
289 | 0x45FC TX_BORDER_COLOR_15 | ||
290 | 0x4250 GA_US_VECTOR_INDEX | ||
291 | 0x4254 GA_US_VECTOR_DATA | ||
292 | 0x4600 US_CONFIG | ||
293 | 0x4604 US_PIXSIZE | ||
294 | 0x4620 US_FC_BOOL_CONST | ||
295 | 0x4624 US_FC_CTRL | ||
296 | 0x4630 US_CODE_ADDR | ||
297 | 0x4634 US_CODE_RANGE | ||
298 | 0x4638 US_CODE_OFFSET | ||
299 | 0x46A4 US_OUT_FMT_0 | ||
300 | 0x46A8 US_OUT_FMT_1 | ||
301 | 0x46AC US_OUT_FMT_2 | ||
302 | 0x46B0 US_OUT_FMT_3 | ||
303 | 0x46B4 US_W_FMT | ||
304 | 0x4BC0 FG_FOG_BLEND | ||
305 | 0x4BC4 FG_FOG_FACTOR | ||
306 | 0x4BC8 FG_FOG_COLOR_R | ||
307 | 0x4BCC FG_FOG_COLOR_G | ||
308 | 0x4BD0 FG_FOG_COLOR_B | ||
309 | 0x4BD4 FG_ALPHA_FUNC | ||
310 | 0x4BD8 FG_DEPTH_SRC | ||
311 | 0x4C00 US_ALU_CONST_R_0 | ||
312 | 0x4C04 US_ALU_CONST_G_0 | ||
313 | 0x4C08 US_ALU_CONST_B_0 | ||
314 | 0x4C0C US_ALU_CONST_A_0 | ||
315 | 0x4C10 US_ALU_CONST_R_1 | ||
316 | 0x4C14 US_ALU_CONST_G_1 | ||
317 | 0x4C18 US_ALU_CONST_B_1 | ||
318 | 0x4C1C US_ALU_CONST_A_1 | ||
319 | 0x4C20 US_ALU_CONST_R_2 | ||
320 | 0x4C24 US_ALU_CONST_G_2 | ||
321 | 0x4C28 US_ALU_CONST_B_2 | ||
322 | 0x4C2C US_ALU_CONST_A_2 | ||
323 | 0x4C30 US_ALU_CONST_R_3 | ||
324 | 0x4C34 US_ALU_CONST_G_3 | ||
325 | 0x4C38 US_ALU_CONST_B_3 | ||
326 | 0x4C3C US_ALU_CONST_A_3 | ||
327 | 0x4C40 US_ALU_CONST_R_4 | ||
328 | 0x4C44 US_ALU_CONST_G_4 | ||
329 | 0x4C48 US_ALU_CONST_B_4 | ||
330 | 0x4C4C US_ALU_CONST_A_4 | ||
331 | 0x4C50 US_ALU_CONST_R_5 | ||
332 | 0x4C54 US_ALU_CONST_G_5 | ||
333 | 0x4C58 US_ALU_CONST_B_5 | ||
334 | 0x4C5C US_ALU_CONST_A_5 | ||
335 | 0x4C60 US_ALU_CONST_R_6 | ||
336 | 0x4C64 US_ALU_CONST_G_6 | ||
337 | 0x4C68 US_ALU_CONST_B_6 | ||
338 | 0x4C6C US_ALU_CONST_A_6 | ||
339 | 0x4C70 US_ALU_CONST_R_7 | ||
340 | 0x4C74 US_ALU_CONST_G_7 | ||
341 | 0x4C78 US_ALU_CONST_B_7 | ||
342 | 0x4C7C US_ALU_CONST_A_7 | ||
343 | 0x4C80 US_ALU_CONST_R_8 | ||
344 | 0x4C84 US_ALU_CONST_G_8 | ||
345 | 0x4C88 US_ALU_CONST_B_8 | ||
346 | 0x4C8C US_ALU_CONST_A_8 | ||
347 | 0x4C90 US_ALU_CONST_R_9 | ||
348 | 0x4C94 US_ALU_CONST_G_9 | ||
349 | 0x4C98 US_ALU_CONST_B_9 | ||
350 | 0x4C9C US_ALU_CONST_A_9 | ||
351 | 0x4CA0 US_ALU_CONST_R_10 | ||
352 | 0x4CA4 US_ALU_CONST_G_10 | ||
353 | 0x4CA8 US_ALU_CONST_B_10 | ||
354 | 0x4CAC US_ALU_CONST_A_10 | ||
355 | 0x4CB0 US_ALU_CONST_R_11 | ||
356 | 0x4CB4 US_ALU_CONST_G_11 | ||
357 | 0x4CB8 US_ALU_CONST_B_11 | ||
358 | 0x4CBC US_ALU_CONST_A_11 | ||
359 | 0x4CC0 US_ALU_CONST_R_12 | ||
360 | 0x4CC4 US_ALU_CONST_G_12 | ||
361 | 0x4CC8 US_ALU_CONST_B_12 | ||
362 | 0x4CCC US_ALU_CONST_A_12 | ||
363 | 0x4CD0 US_ALU_CONST_R_13 | ||
364 | 0x4CD4 US_ALU_CONST_G_13 | ||
365 | 0x4CD8 US_ALU_CONST_B_13 | ||
366 | 0x4CDC US_ALU_CONST_A_13 | ||
367 | 0x4CE0 US_ALU_CONST_R_14 | ||
368 | 0x4CE4 US_ALU_CONST_G_14 | ||
369 | 0x4CE8 US_ALU_CONST_B_14 | ||
370 | 0x4CEC US_ALU_CONST_A_14 | ||
371 | 0x4CF0 US_ALU_CONST_R_15 | ||
372 | 0x4CF4 US_ALU_CONST_G_15 | ||
373 | 0x4CF8 US_ALU_CONST_B_15 | ||
374 | 0x4CFC US_ALU_CONST_A_15 | ||
375 | 0x4D00 US_ALU_CONST_R_16 | ||
376 | 0x4D04 US_ALU_CONST_G_16 | ||
377 | 0x4D08 US_ALU_CONST_B_16 | ||
378 | 0x4D0C US_ALU_CONST_A_16 | ||
379 | 0x4D10 US_ALU_CONST_R_17 | ||
380 | 0x4D14 US_ALU_CONST_G_17 | ||
381 | 0x4D18 US_ALU_CONST_B_17 | ||
382 | 0x4D1C US_ALU_CONST_A_17 | ||
383 | 0x4D20 US_ALU_CONST_R_18 | ||
384 | 0x4D24 US_ALU_CONST_G_18 | ||
385 | 0x4D28 US_ALU_CONST_B_18 | ||
386 | 0x4D2C US_ALU_CONST_A_18 | ||
387 | 0x4D30 US_ALU_CONST_R_19 | ||
388 | 0x4D34 US_ALU_CONST_G_19 | ||
389 | 0x4D38 US_ALU_CONST_B_19 | ||
390 | 0x4D3C US_ALU_CONST_A_19 | ||
391 | 0x4D40 US_ALU_CONST_R_20 | ||
392 | 0x4D44 US_ALU_CONST_G_20 | ||
393 | 0x4D48 US_ALU_CONST_B_20 | ||
394 | 0x4D4C US_ALU_CONST_A_20 | ||
395 | 0x4D50 US_ALU_CONST_R_21 | ||
396 | 0x4D54 US_ALU_CONST_G_21 | ||
397 | 0x4D58 US_ALU_CONST_B_21 | ||
398 | 0x4D5C US_ALU_CONST_A_21 | ||
399 | 0x4D60 US_ALU_CONST_R_22 | ||
400 | 0x4D64 US_ALU_CONST_G_22 | ||
401 | 0x4D68 US_ALU_CONST_B_22 | ||
402 | 0x4D6C US_ALU_CONST_A_22 | ||
403 | 0x4D70 US_ALU_CONST_R_23 | ||
404 | 0x4D74 US_ALU_CONST_G_23 | ||
405 | 0x4D78 US_ALU_CONST_B_23 | ||
406 | 0x4D7C US_ALU_CONST_A_23 | ||
407 | 0x4D80 US_ALU_CONST_R_24 | ||
408 | 0x4D84 US_ALU_CONST_G_24 | ||
409 | 0x4D88 US_ALU_CONST_B_24 | ||
410 | 0x4D8C US_ALU_CONST_A_24 | ||
411 | 0x4D90 US_ALU_CONST_R_25 | ||
412 | 0x4D94 US_ALU_CONST_G_25 | ||
413 | 0x4D98 US_ALU_CONST_B_25 | ||
414 | 0x4D9C US_ALU_CONST_A_25 | ||
415 | 0x4DA0 US_ALU_CONST_R_26 | ||
416 | 0x4DA4 US_ALU_CONST_G_26 | ||
417 | 0x4DA8 US_ALU_CONST_B_26 | ||
418 | 0x4DAC US_ALU_CONST_A_26 | ||
419 | 0x4DB0 US_ALU_CONST_R_27 | ||
420 | 0x4DB4 US_ALU_CONST_G_27 | ||
421 | 0x4DB8 US_ALU_CONST_B_27 | ||
422 | 0x4DBC US_ALU_CONST_A_27 | ||
423 | 0x4DC0 US_ALU_CONST_R_28 | ||
424 | 0x4DC4 US_ALU_CONST_G_28 | ||
425 | 0x4DC8 US_ALU_CONST_B_28 | ||
426 | 0x4DCC US_ALU_CONST_A_28 | ||
427 | 0x4DD0 US_ALU_CONST_R_29 | ||
428 | 0x4DD4 US_ALU_CONST_G_29 | ||
429 | 0x4DD8 US_ALU_CONST_B_29 | ||
430 | 0x4DDC US_ALU_CONST_A_29 | ||
431 | 0x4DE0 US_ALU_CONST_R_30 | ||
432 | 0x4DE4 US_ALU_CONST_G_30 | ||
433 | 0x4DE8 US_ALU_CONST_B_30 | ||
434 | 0x4DEC US_ALU_CONST_A_30 | ||
435 | 0x4DF0 US_ALU_CONST_R_31 | ||
436 | 0x4DF4 US_ALU_CONST_G_31 | ||
437 | 0x4DF8 US_ALU_CONST_B_31 | ||
438 | 0x4DFC US_ALU_CONST_A_31 | ||
439 | 0x4E04 RB3D_BLENDCNTL_R3 | ||
440 | 0x4E08 RB3D_ABLENDCNTL_R3 | ||
441 | 0x4E0C RB3D_COLOR_CHANNEL_MASK | ||
442 | 0x4E10 RB3D_CONSTANT_COLOR | ||
443 | 0x4E14 RB3D_COLOR_CLEAR_VALUE | ||
444 | 0x4E18 RB3D_ROPCNTL_R3 | ||
445 | 0x4E1C RB3D_CLRCMP_FLIPE_R3 | ||
446 | 0x4E20 RB3D_CLRCMP_CLR_R3 | ||
447 | 0x4E24 RB3D_CLRCMP_MSK_R3 | ||
448 | 0x4E48 RB3D_DEBUG_CTL | ||
449 | 0x4E4C RB3D_DSTCACHE_CTLSTAT_R3 | ||
450 | 0x4E50 RB3D_DITHER_CTL | ||
451 | 0x4E54 RB3D_CMASK_OFFSET0 | ||
452 | 0x4E58 RB3D_CMASK_OFFSET1 | ||
453 | 0x4E5C RB3D_CMASK_OFFSET2 | ||
454 | 0x4E60 RB3D_CMASK_OFFSET3 | ||
455 | 0x4E64 RB3D_CMASK_PITCH0 | ||
456 | 0x4E68 RB3D_CMASK_PITCH1 | ||
457 | 0x4E6C RB3D_CMASK_PITCH2 | ||
458 | 0x4E70 RB3D_CMASK_PITCH3 | ||
459 | 0x4E74 RB3D_CMASK_WRINDEX | ||
460 | 0x4E78 RB3D_CMASK_DWORD | ||
461 | 0x4E7C RB3D_CMASK_RDINDEX | ||
462 | 0x4E80 RB3D_AARESOLVE_OFFSET | ||
463 | 0x4E84 RB3D_AARESOLVE_PITCH | ||
464 | 0x4E88 RB3D_AARESOLVE_CTL | ||
465 | 0x4EA0 RB3D_DISCARD_SRC_PIXEL_LTE_THRESHOLD | ||
466 | 0x4EA4 RB3D_DISCARD_SRC_PIXEL_GTE_THRESHOLD | ||
467 | 0x4EF8 RB3D_CONSTANT_COLOR_AR | ||
468 | 0x4EFC RB3D_CONSTANT_COLOR_GB | ||
469 | 0x4F04 ZB_ZSTENCILCNTL | ||
470 | 0x4F08 ZB_STENCILREFMASK | ||
471 | 0x4F14 ZB_ZTOP | ||
472 | 0x4F18 ZB_ZCACHE_CTLSTAT | ||
473 | 0x4F1C ZB_BW_CNTL | ||
474 | 0x4F28 ZB_DEPTHCLEARVALUE | ||
475 | 0x4F30 ZB_ZMASK_OFFSET | ||
476 | 0x4F34 ZB_ZMASK_PITCH | ||
477 | 0x4F38 ZB_ZMASK_WRINDEX | ||
478 | 0x4F3C ZB_ZMASK_DWORD | ||
479 | 0x4F40 ZB_ZMASK_RDINDEX | ||
480 | 0x4F44 ZB_HIZ_OFFSET | ||
481 | 0x4F48 ZB_HIZ_WRINDEX | ||
482 | 0x4F4C ZB_HIZ_DWORD | ||
483 | 0x4F50 ZB_HIZ_RDINDEX | ||
484 | 0x4F54 ZB_HIZ_PITCH | ||
485 | 0x4F58 ZB_ZPASS_DATA | ||
486 | 0x4F60 ZB_DEPTHXY_OFFSET | ||
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index 31a7f668ae5a..60a194f1d9a8 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "radeon.h" | 31 | #include "radeon.h" |
32 | #include "radeon_share.h" | 32 | #include "radeon_share.h" |
33 | 33 | ||
34 | #include "rv515_reg_safe.h" | ||
34 | /* rv515 depends on : */ | 35 | /* rv515 depends on : */ |
35 | void r100_hdp_reset(struct radeon_device *rdev); | 36 | void r100_hdp_reset(struct radeon_device *rdev); |
36 | int r100_cp_reset(struct radeon_device *rdev); | 37 | int r100_cp_reset(struct radeon_device *rdev); |
@@ -464,72 +465,13 @@ int rv515_debugfs_ga_info_init(struct radeon_device *rdev) | |||
464 | #endif | 465 | #endif |
465 | } | 466 | } |
466 | 467 | ||
467 | |||
468 | /* | 468 | /* |
469 | * Asic initialization | 469 | * Asic initialization |
470 | */ | 470 | */ |
471 | static const unsigned r500_reg_safe_bm[219] = { | ||
472 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
473 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
474 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
475 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
476 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
477 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
478 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
479 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
480 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
481 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
482 | 0x17FF1FFF, 0xFFFFFFFC, 0xFFFFFFFF, 0xFF30FFBF, | ||
483 | 0xFFFFFFF8, 0xC3E6FFFF, 0xFFFFF6DF, 0xFFFFFFFF, | ||
484 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
485 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
486 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFF03F, | ||
487 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
488 | 0xFFFFFFFF, 0xFFFFEFCE, 0xF00EBFFF, 0x007C0000, | ||
489 | 0xF0000038, 0xFF000009, 0xFFFFFFFF, 0xFFFFFFFF, | ||
490 | 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF, | ||
491 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
492 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
493 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
494 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
495 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
496 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
497 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
498 | 0xFFFFF7FF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
499 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
500 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
501 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
502 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
503 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
504 | 0x1FFFFC78, 0xFFFFE000, 0xFFFFFFFE, 0xFFFFFFFF, | ||
505 | 0x38CF8F50, 0xFFF88082, 0xFF0000FC, 0xFAE009FF, | ||
506 | 0x0000FFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, | ||
507 | 0xFFFF8CFC, 0xFFFFC1FF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
508 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
509 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFF80FFFF, | ||
510 | 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||
511 | 0x0003FC01, 0x3FFFFCF8, 0xFE800B19, 0xFFFFFFFF, | ||
512 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
513 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
514 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
515 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
516 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
517 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
518 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
519 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
520 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
521 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
522 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
523 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
524 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
525 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
526 | 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||
527 | }; | ||
528 | |||
529 | int rv515_init(struct radeon_device *rdev) | 471 | int rv515_init(struct radeon_device *rdev) |
530 | { | 472 | { |
531 | rdev->config.r300.reg_safe_bm = r500_reg_safe_bm; | 473 | rdev->config.r300.reg_safe_bm = rv515_reg_safe_bm; |
532 | rdev->config.r300.reg_safe_bm_size = ARRAY_SIZE(r500_reg_safe_bm); | 474 | rdev->config.r300.reg_safe_bm_size = ARRAY_SIZE(rv515_reg_safe_bm); |
533 | return 0; | 475 | return 0; |
534 | } | 476 | } |
535 | 477 | ||