blob: 37d6de3c9d618c653e1663f8692de48a6ff7176f [file] [log] [blame]
Maarten Lankhorstce806a32012-06-04 12:00:31 +02001u32 nva3_pcopy_data[] = {
2/* 0x0000: ctx_object */
3 0x00000000,
4/* 0x0004: ctx_dma */
5/* 0x0004: ctx_dma_query */
6 0x00000000,
7/* 0x0008: ctx_dma_src */
8 0x00000000,
9/* 0x000c: ctx_dma_dst */
10 0x00000000,
11/* 0x0010: ctx_query_address_high */
12 0x00000000,
13/* 0x0014: ctx_query_address_low */
14 0x00000000,
15/* 0x0018: ctx_query_counter */
16 0x00000000,
17/* 0x001c: ctx_src_address_high */
18 0x00000000,
19/* 0x0020: ctx_src_address_low */
20 0x00000000,
21/* 0x0024: ctx_src_pitch */
22 0x00000000,
23/* 0x0028: ctx_src_tile_mode */
24 0x00000000,
25/* 0x002c: ctx_src_xsize */
26 0x00000000,
27/* 0x0030: ctx_src_ysize */
28 0x00000000,
29/* 0x0034: ctx_src_zsize */
30 0x00000000,
31/* 0x0038: ctx_src_zoff */
32 0x00000000,
33/* 0x003c: ctx_src_xoff */
34 0x00000000,
35/* 0x0040: ctx_src_yoff */
36 0x00000000,
37/* 0x0044: ctx_src_cpp */
38 0x00000000,
39/* 0x0048: ctx_dst_address_high */
40 0x00000000,
41/* 0x004c: ctx_dst_address_low */
42 0x00000000,
43/* 0x0050: ctx_dst_pitch */
44 0x00000000,
45/* 0x0054: ctx_dst_tile_mode */
46 0x00000000,
47/* 0x0058: ctx_dst_xsize */
48 0x00000000,
49/* 0x005c: ctx_dst_ysize */
50 0x00000000,
51/* 0x0060: ctx_dst_zsize */
52 0x00000000,
53/* 0x0064: ctx_dst_zoff */
54 0x00000000,
55/* 0x0068: ctx_dst_xoff */
56 0x00000000,
57/* 0x006c: ctx_dst_yoff */
58 0x00000000,
59/* 0x0070: ctx_dst_cpp */
60 0x00000000,
61/* 0x0074: ctx_format */
62 0x00000000,
63/* 0x0078: ctx_swz_const0 */
64 0x00000000,
65/* 0x007c: ctx_swz_const1 */
66 0x00000000,
67/* 0x0080: ctx_xcnt */
68 0x00000000,
69/* 0x0084: ctx_ycnt */
Ben Skeggs7ff54412011-03-18 10:25:59 +100070 0x00000000,
71 0x00000000,
72 0x00000000,
73 0x00000000,
74 0x00000000,
75 0x00000000,
76 0x00000000,
77 0x00000000,
78 0x00000000,
79 0x00000000,
80 0x00000000,
81 0x00000000,
82 0x00000000,
83 0x00000000,
84 0x00000000,
85 0x00000000,
86 0x00000000,
87 0x00000000,
88 0x00000000,
89 0x00000000,
90 0x00000000,
91 0x00000000,
92 0x00000000,
93 0x00000000,
94 0x00000000,
95 0x00000000,
96 0x00000000,
97 0x00000000,
98 0x00000000,
99 0x00000000,
100 0x00000000,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200101/* 0x0100: dispatch_table */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000102 0x00010000,
103 0x00000000,
104 0x00000000,
105 0x00010040,
106 0x00010160,
107 0x00000000,
108 0x00010050,
109 0x00010162,
110 0x00000000,
111 0x00030060,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200112/* 0x0128: dispatch_dma */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000113 0x00010170,
114 0x00000000,
115 0x00010170,
116 0x00000000,
117 0x00010170,
118 0x00000000,
119 0x00070080,
120 0x00000028,
121 0xfffff000,
122 0x0000002c,
123 0xfff80000,
124 0x00000030,
125 0xffffe000,
126 0x00000034,
127 0xfffff800,
128 0x00000038,
129 0xfffff000,
130 0x0000003c,
131 0xfff80000,
132 0x00000040,
133 0xffffe000,
134 0x00070088,
135 0x00000054,
136 0xfffff000,
137 0x00000058,
138 0xfff80000,
139 0x0000005c,
140 0xffffe000,
141 0x00000060,
142 0xfffff800,
143 0x00000064,
144 0xfffff000,
145 0x00000068,
146 0xfff80000,
147 0x0000006c,
148 0xffffe000,
149 0x000200c0,
150 0x00010492,
151 0x00000000,
152 0x0001051b,
153 0x00000000,
154 0x000e00c3,
155 0x0000001c,
156 0xffffff00,
157 0x00000020,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200158 0x00000000,
Ben Skeggs7ff54412011-03-18 10:25:59 +1000159 0x00000048,
160 0xffffff00,
161 0x0000004c,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200162 0x00000000,
Ben Skeggs7ff54412011-03-18 10:25:59 +1000163 0x00000024,
164 0xfff80000,
165 0x00000050,
166 0xfff80000,
167 0x00000080,
168 0xffff0000,
169 0x00000084,
170 0xffffe000,
171 0x00000074,
172 0xfccc0000,
173 0x00000078,
174 0x00000000,
175 0x0000007c,
176 0x00000000,
177 0x00000010,
178 0xffffff00,
179 0x00000014,
180 0x00000000,
181 0x00000018,
182 0x00000000,
183 0x00000800,
184};
185
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200186u32 nva3_pcopy_code[] = {
187/* 0x0000: main */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000188 0x04fe04bd,
189 0x3517f000,
190 0xf10010fe,
191 0xf1040017,
192 0xf0fff327,
Ben Skeggs0f0f7be2011-11-05 12:08:05 +1000193 0x12d00023,
Ben Skeggs7ff54412011-03-18 10:25:59 +1000194 0x0c25f0c0,
195 0xf40012d0,
196 0x17f11031,
197 0x27f01200,
198 0x0012d003,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200199/* 0x002f: spin */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000200 0xf40031f4,
201 0x0ef40028,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200202/* 0x0035: ih */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000203 0x8001cffd,
204 0xf40812c4,
205 0x21f4060b,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200206/* 0x0041: ih_no_chsw */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000207 0x0412c472,
208 0xf4060bf4,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200209/* 0x004a: ih_no_cmd */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000210 0x11c4c321,
211 0x4001d00c,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200212/* 0x0052: swctx */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000213 0x47f101f8,
214 0x4bfe7700,
215 0x0007fe00,
216 0xf00204b9,
217 0x01f40643,
218 0x0604fa09,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200219/* 0x006b: swctx_load */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000220 0xfa060ef4,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200221/* 0x006e: swctx_done */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000222 0x03f80504,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200223/* 0x0072: chsw */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000224 0x27f100f8,
225 0x23cf1400,
226 0x1e3fc800,
227 0xf4170bf4,
228 0x21f40132,
229 0x1e3af052,
230 0xf00023d0,
231 0x24d00147,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200232/* 0x0093: chsw_no_unload */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000233 0xcf00f880,
234 0x3dc84023,
235 0x220bf41e,
236 0xf40131f4,
237 0x57f05221,
238 0x0367f004,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200239/* 0x00a8: chsw_load_ctx_dma */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000240 0xa07856bc,
241 0xb6018068,
242 0x87d00884,
243 0x0162b600,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200244/* 0x00bb: chsw_finish_load */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000245 0xf0f018f4,
246 0x23d00237,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200247/* 0x00c3: dispatch */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000248 0xf100f880,
249 0xcf190037,
250 0x33cf4032,
251 0xff24e400,
252 0x1024b607,
253 0x010057f1,
254 0x74bd64bd,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200255/* 0x00dc: dispatch_loop */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000256 0x58005658,
257 0x50b60157,
258 0x0446b804,
259 0xbb4d08f4,
260 0x47b80076,
261 0x0f08f404,
262 0xb60276bb,
263 0x57bb0374,
264 0xdf0ef400,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200265/* 0x0100: dispatch_valid_mthd */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000266 0xb60246bb,
267 0x45bb0344,
268 0x01459800,
269 0xb00453fd,
270 0x1bf40054,
271 0x00455820,
272 0xb0014658,
273 0x1bf40064,
274 0x00538009,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200275/* 0x0127: dispatch_cmd */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000276 0xf4300ef4,
277 0x55f90132,
278 0xf40c01f4,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200279/* 0x0132: dispatch_invalid_bitfield */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000280 0x25f0250e,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200281/* 0x0135: dispatch_illegal_mthd */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000282 0x0125f002,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200283/* 0x0138: dispatch_error */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000284 0x100047f1,
285 0xd00042d0,
286 0x27f04043,
287 0x0002d040,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200288/* 0x0148: hostirq_wait */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000289 0xf08002cf,
290 0x24b04024,
291 0xf71bf400,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200292/* 0x0154: dispatch_done */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000293 0x1d0027f1,
294 0xd00137f0,
295 0x00f80023,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200296/* 0x0160: cmd_nop */
297/* 0x0162: cmd_pm_trigger */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000298 0x27f100f8,
299 0x34bd2200,
300 0xd00233f0,
301 0x00f80023,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200302/* 0x0170: cmd_dma */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000303 0x012842b7,
304 0xf00145b6,
305 0x43801e39,
306 0x0040b701,
307 0x0644b606,
308 0xf80043d0,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200309/* 0x0189: cmd_exec_set_format */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000310 0xf030f400,
311 0xb00001b0,
312 0x01b00101,
313 0x0301b002,
314 0xc71d0498,
315 0x50b63045,
316 0x3446c701,
317 0xc70160b6,
318 0x70b63847,
319 0x0232f401,
320 0x94bd84bd,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200321/* 0x01b4: ncomp_loop */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000322 0xb60f4ac4,
323 0xb4bd0445,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200324/* 0x01bc: bpc_loop */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000325 0xf404a430,
326 0xa5ff0f18,
327 0x00cbbbc0,
328 0xf40231f4,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200329/* 0x01ce: cmp_c0 */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000330 0x1bf4220e,
331 0x10c7f00c,
332 0xf400cbbb,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200333/* 0x01da: cmp_c1 */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000334 0xa430160e,
335 0x0c18f406,
336 0xbb14c7f0,
337 0x0ef400cb,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200338/* 0x01e9: cmp_zero */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000339 0x80c7f107,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200340/* 0x01ed: bpc_next */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000341 0x01c83800,
342 0xb60180b6,
343 0xb5b801b0,
344 0xc308f404,
345 0xb80190b6,
346 0x08f40497,
347 0x0065fdb2,
348 0x98110680,
349 0x68fd2008,
350 0x0502f400,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200351/* 0x0216: dst_xcnt */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000352 0x75fd64bd,
353 0x1c078000,
354 0xf10078fd,
355 0xb6081057,
356 0x56d00654,
357 0x4057d000,
358 0x080050b7,
359 0xb61c0698,
360 0x64b60162,
361 0x11079808,
362 0xfd0172b6,
363 0x56d00567,
364 0x0050b700,
365 0x0060b401,
366 0xb40056d0,
367 0x56d00160,
368 0x0260b440,
369 0xb48056d0,
370 0x56d00360,
371 0x0050b7c0,
372 0x1e069804,
373 0x980056d0,
374 0x56d01f06,
375 0x1030f440,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200376/* 0x0276: cmd_exec_set_surface_tiled */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000377 0x579800f8,
378 0x6879c70a,
379 0xb66478c7,
380 0x77c70280,
381 0x0e76b060,
382 0xf0091bf4,
383 0x0ef40477,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200384/* 0x0291: xtile64 */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000385 0x027cf00f,
386 0xfd1170b6,
387 0x77f00947,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200388/* 0x029d: xtileok */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000389 0x0f5a9806,
390 0xfd115b98,
391 0xb7f000ab,
392 0x04b7bb01,
393 0xff01b2b6,
394 0xa7bbc4ab,
395 0x105d9805,
396 0xbb01e7f0,
397 0xe2b604e8,
398 0xb4deff01,
399 0xb605d8bb,
400 0xef9401e0,
401 0x02ebbb0c,
402 0xf005fefd,
403 0x60b7026c,
404 0x64b60208,
405 0x006fd008,
406 0xbb04b7bb,
407 0x5f9800cb,
408 0x115b980b,
409 0xf000fbfd,
410 0xb7bb01b7,
411 0x01b2b604,
412 0xbb00fbbb,
413 0xf0f905f7,
414 0xf00c5f98,
415 0xb8bb01b7,
416 0x01b2b604,
417 0xbb00fbbb,
418 0xf0f905f8,
419 0xb60078bb,
420 0xb7f00282,
421 0x04b8bb01,
422 0x9804b9bb,
423 0xe7f00e58,
424 0x04e9bb01,
425 0xff01e2b6,
426 0xf7bbf48e,
427 0x00cfbb04,
428 0xbb0079bb,
429 0xf0fc0589,
430 0xd9fd90fc,
431 0x00adbb00,
432 0xfd0089fd,
433 0xa8bb008f,
434 0x04a7bb00,
435 0xbb0192b6,
436 0x69d00497,
437 0x08579880,
438 0xbb075898,
439 0x7abb00ac,
440 0x0081b600,
441 0xfd1084b6,
442 0x62b7058b,
443 0x67d00600,
444 0x0060b700,
445 0x0068d004,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200446/* 0x0382: cmd_exec_set_surface_linear */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000447 0x6cf000f8,
448 0x0260b702,
449 0x0864b602,
450 0xd0085798,
451 0x60b70067,
452 0x57980400,
453 0x1074b607,
454 0xb70067d0,
455 0x98040060,
456 0x67d00957,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200457/* 0x03ab: cmd_exec_wait */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000458 0xf900f800,
459 0xf110f900,
460 0xb6080007,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200461/* 0x03b6: loop */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000462 0x01cf0604,
463 0x0114f000,
464 0xfcfa1bf4,
465 0xf800fc10,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200466/* 0x03c5: cmd_exec_query */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000467 0x0d34c800,
468 0xf5701bf4,
469 0xf103ab21,
470 0xb6080c47,
471 0x05980644,
472 0x0450b605,
473 0xd00045d0,
474 0x57f04040,
475 0x8045d00c,
476 0x040040b7,
477 0xb6040598,
478 0x45d01054,
479 0x0040b700,
480 0x0057f105,
481 0x0153f00b,
482 0xf10045d0,
483 0xb6404057,
484 0x53f10154,
485 0x45d08080,
486 0x1057f140,
487 0x1253f111,
488 0x8045d013,
489 0x151457f1,
490 0x171653f1,
491 0xf1c045d0,
492 0xf0260157,
493 0x47f10153,
494 0x44b60800,
495 0x0045d006,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200496/* 0x0438: query_counter */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000497 0x03ab21f5,
498 0x080c47f1,
499 0x980644b6,
500 0x45d00505,
501 0x4040d000,
502 0xd00457f0,
503 0x40b78045,
504 0x05980400,
505 0x1054b604,
506 0xb70045d0,
507 0xf1050040,
508 0xd0030057,
509 0x57f10045,
510 0x53f11110,
511 0x45d01312,
512 0x06059840,
513 0x050040b7,
514 0xf10045d0,
515 0xf0260157,
516 0x47f10153,
517 0x44b60800,
518 0x0045d006,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200519/* 0x0492: cmd_exec */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000520 0x21f500f8,
521 0x3fc803ab,
522 0x0e0bf400,
523 0x018921f5,
524 0x020047f1,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200525/* 0x04a7: cmd_exec_no_format */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000526 0xf11e0ef4,
527 0xb6081067,
528 0x77f00664,
529 0x11078001,
530 0x981c0780,
531 0x67d02007,
532 0x4067d000,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200533/* 0x04c2: cmd_exec_init_src_surface */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000534 0x32f444bd,
535 0xc854bd02,
536 0x0bf4043f,
537 0x8221f50a,
538 0x0a0ef403,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200539/* 0x04d4: src_tiled */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000540 0x027621f5,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200541/* 0x04db: cmd_exec_init_dst_surface */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000542 0xf40749f0,
543 0x57f00231,
544 0x083fc82c,
545 0xf50a0bf4,
546 0xf4038221,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200547/* 0x04ee: dst_tiled */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000548 0x21f50a0e,
549 0x49f00276,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200550/* 0x04f5: cmd_exec_kick */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000551 0x0057f108,
552 0x0654b608,
553 0xd0210698,
554 0x67f04056,
555 0x0063f141,
556 0x0546fd44,
557 0xc80054d0,
558 0x0bf40c3f,
559 0xc521f507,
Maarten Lankhorstce806a32012-06-04 12:00:31 +0200560/* 0x0519: cmd_exec_done */
561/* 0x051b: cmd_wrcache_flush */
Ben Skeggs7ff54412011-03-18 10:25:59 +1000562 0xf100f803,
563 0xbd220027,
564 0x0133f034,
565 0xf80023d0,
566 0x00000000,
567 0x00000000,
568 0x00000000,
569 0x00000000,
570 0x00000000,
571 0x00000000,
572 0x00000000,
573 0x00000000,
574 0x00000000,
575 0x00000000,
576 0x00000000,
577 0x00000000,
578 0x00000000,
579 0x00000000,
580 0x00000000,
581 0x00000000,
582 0x00000000,
583 0x00000000,
584 0x00000000,
585 0x00000000,
586 0x00000000,
587 0x00000000,
588 0x00000000,
589 0x00000000,
590 0x00000000,
591 0x00000000,
592 0x00000000,
593 0x00000000,
594 0x00000000,
595 0x00000000,
596 0x00000000,
597 0x00000000,
598 0x00000000,
599 0x00000000,
600 0x00000000,
601 0x00000000,
602 0x00000000,
603 0x00000000,
604 0x00000000,
605 0x00000000,
606 0x00000000,
607 0x00000000,
608 0x00000000,
609 0x00000000,
610 0x00000000,
611 0x00000000,
612 0x00000000,
613 0x00000000,
614 0x00000000,
615 0x00000000,
616 0x00000000,
617 0x00000000,
618 0x00000000,
619 0x00000000,
620};