1/*	$NetBSD: gpcgm107.fuc5.h,v 1.3 2021/12/18 23:45:36 riastradh Exp $	*/
2
3/* SPDX-License-Identifier: MIT */
4static uint32_t gm107_grgpc_data[] = {
5/* 0x0000: gpc_mmio_list_head */
6	0x0000006c,
7/* 0x0004: gpc_mmio_list_tail */
8/* 0x0004: tpc_mmio_list_head */
9	0x0000006c,
10/* 0x0008: tpc_mmio_list_tail */
11/* 0x0008: unk_mmio_list_head */
12	0x0000006c,
13/* 0x000c: unk_mmio_list_tail */
14	0x0000006c,
15/* 0x0010: gpc_id */
16	0x00000000,
17/* 0x0014: tpc_count */
18	0x00000000,
19/* 0x0018: tpc_mask */
20	0x00000000,
21/* 0x001c: unk_count */
22	0x00000000,
23/* 0x0020: unk_mask */
24	0x00000000,
25/* 0x0024: cmd_queue */
26	0x00000000,
27	0x00000000,
28	0x00000000,
29	0x00000000,
30	0x00000000,
31	0x00000000,
32	0x00000000,
33	0x00000000,
34	0x00000000,
35	0x00000000,
36	0x00000000,
37	0x00000000,
38	0x00000000,
39	0x00000000,
40	0x00000000,
41	0x00000000,
42	0x00000000,
43	0x00000000,
44};
45
46static uint32_t gm107_grgpc_code[] = {
47	0x03410ef5,
48/* 0x0004: queue_put */
49	0x9800d898,
50	0x86f001d9,
51	0xf489a408,
52	0x020f0b1b,
53	0x0002f87e,
54/* 0x001a: queue_put_next */
55	0x98c400f8,
56	0x0384b607,
57	0xb6008dbb,
58	0x8eb50880,
59	0x018fb500,
60	0xf00190b6,
61	0xd9b50f94,
62/* 0x0037: queue_get */
63	0xf400f801,
64	0xd8980131,
65	0x01d99800,
66	0x0bf489a4,
67	0x0789c421,
68	0xbb0394b6,
69	0x90b6009d,
70	0x009e9808,
71	0xb6019f98,
72	0x84f00180,
73	0x00d8b50f,
74/* 0x0063: queue_get_done */
75	0xf80132f4,
76/* 0x0065: nv_rd32 */
77	0xf0ecb200,
78	0x00801fc9,
79	0x0cf601ca,
80/* 0x0073: nv_rd32_wait */
81	0x8c04bd00,
82	0xcf01ca00,
83	0xccc800cc,
84	0xf61bf41f,
85	0xec7e060a,
86	0x008f0000,
87	0xffcf01cb,
88/* 0x008f: nv_wr32 */
89	0x8000f800,
90	0xf601cc00,
91	0x04bd000f,
92	0xc9f0ecb2,
93	0x1ec9f01f,
94	0x01ca0080,
95	0xbd000cf6,
96/* 0x00a9: nv_wr32_wait */
97	0xca008c04,
98	0x00cccf01,
99	0xf41fccc8,
100	0x00f8f61b,
101/* 0x00b8: wait_donez */
102	0x99f094bd,
103	0x37008000,
104	0x0009f602,
105	0x008004bd,
106	0x0af60206,
107/* 0x00cf: wait_donez_ne */
108	0x8804bd00,
109	0xcf010000,
110	0x8aff0088,
111	0xf61bf488,
112	0x99f094bd,
113	0x17008000,
114	0x0009f602,
115	0x00f804bd,
116/* 0x00ec: wait_doneo */
117	0x99f094bd,
118	0x37008000,
119	0x0009f602,
120	0x008004bd,
121	0x0af60206,
122/* 0x0103: wait_doneo_e */
123	0x8804bd00,
124	0xcf010000,
125	0x8aff0088,
126	0xf60bf488,
127	0x99f094bd,
128	0x17008000,
129	0x0009f602,
130	0x00f804bd,
131/* 0x0120: mmctx_size */
132/* 0x0122: nv_mmctx_size_loop */
133	0xe89894bd,
134	0x1a85b600,
135	0xb60180b6,
136	0x98bb0284,
137	0x04e0b600,
138	0x1bf4efa4,
139	0xf89fb2ec,
140/* 0x013d: mmctx_xfer */
141	0xf094bd00,
142	0x00800199,
143	0x09f60237,
144	0xbd04bd00,
145	0x05bbfd94,
146	0x800f0bf4,
147	0xf601c400,
148	0x04bd000b,
149/* 0x015f: mmctx_base_disabled */
150	0xfd0099f0,
151	0x0bf405ee,
152	0xc6008018,
153	0x000ef601,
154	0x008004bd,
155	0x0ff601c7,
156	0xf004bd00,
157/* 0x017a: mmctx_multi_disabled */
158	0xabc80199,
159	0x10b4b600,
160	0xc80cb9f0,
161	0xe4b601ae,
162	0x05befd11,
163	0x01c50080,
164	0xbd000bf6,
165/* 0x0195: mmctx_exec_loop */
166/* 0x0195: mmctx_wait_free */
167	0xc5008e04,
168	0x00eecf01,
169	0xf41fe4f0,
170	0xce98f60b,
171	0x05e9fd00,
172	0x01c80080,
173	0xbd000ef6,
174	0x04c0b604,
175	0x1bf4cda4,
176	0x02abc8df,
177/* 0x01bf: mmctx_fini_wait */
178	0x8b1c1bf4,
179	0xcf01c500,
180	0xb4f000bb,
181	0x10b4b01f,
182	0x0af31bf4,
183	0x00b87e05,
184	0x250ef400,
185/* 0x01d8: mmctx_stop */
186	0xb600abc8,
187	0xb9f010b4,
188	0x12b9f00c,
189	0x01c50080,
190	0xbd000bf6,
191/* 0x01ed: mmctx_stop_wait */
192	0xc5008b04,
193	0x00bbcf01,
194	0xf412bbc8,
195/* 0x01fa: mmctx_done */
196	0x94bdf61b,
197	0x800199f0,
198	0xf6021700,
199	0x04bd0009,
200/* 0x020a: strand_wait */
201	0xa0f900f8,
202	0xb87e020a,
203	0xa0fc0000,
204/* 0x0216: strand_pre */
205	0x0c0900f8,
206	0x024afc80,
207	0xbd0009f6,
208	0x020a7e04,
209/* 0x0227: strand_post */
210	0x0900f800,
211	0x4afc800d,
212	0x0009f602,
213	0x0a7e04bd,
214	0x00f80002,
215/* 0x0238: strand_set */
216	0xfc800f0c,
217	0x0cf6024f,
218	0x0c04bd00,
219	0x4afc800b,
220	0x000cf602,
221	0xfc8004bd,
222	0x0ef6024f,
223	0x0c04bd00,
224	0x4afc800a,
225	0x000cf602,
226	0x0a7e04bd,
227	0x00f80002,
228/* 0x0268: strand_ctx_init */
229	0x99f094bd,
230	0x37008003,
231	0x0009f602,
232	0x167e04bd,
233	0x030e0002,
234	0x0002387e,
235	0xfc80c4bd,
236	0x0cf60247,
237	0x0c04bd00,
238	0x4afc8001,
239	0x000cf602,
240	0x0a7e04bd,
241	0x0c920002,
242	0x46fc8001,
243	0x000cf602,
244	0x020c04bd,
245	0x024afc80,
246	0xbd000cf6,
247	0x020a7e04,
248	0x02277e00,
249	0x42008800,
250	0x20008902,
251	0x0099cf02,
252/* 0x02c7: ctx_init_strand_loop */
253	0xf608fe95,
254	0x8ef6008e,
255	0x808acf40,
256	0xb606a5b6,
257	0xeabb01a0,
258	0x0480b600,
259	0xf40192b6,
260	0xe4b6e81b,
261	0xf2efbc08,
262	0x99f094bd,
263	0x17008003,
264	0x0009f602,
265	0x00f804bd,
266/* 0x02f8: error */
267	0xffb2e0f9,
268	0x4098148e,
269	0x00008f7e,
270	0xffb2010f,
271	0x409c1c8e,
272	0x00008f7e,
273	0x00f8e0fc,
274/* 0x0314: tpc_strand_wait */
275	0x94bd90f9,
276	0x800a99f0,
277	0xf6023700,
278	0x04bd0009,
279/* 0x0324: tpc_strand_busy */
280	0x033f0089,
281	0xb30099cf,
282	0xbdf90094,
283	0x0a99f094,
284	0x02170080,
285	0xbd0009f6,
286	0xf890fc04,
287/* 0x0341: init */
288	0x4104bd00,
289	0x11cf4200,
290	0x0911e700,
291	0x0814b601,
292	0x020014fe,
293	0x12004002,
294	0xbd0002f6,
295	0x05ad4104,
296	0x400010fe,
297	0x00f60700,
298	0x0204bd00,
299	0x04004004,
300	0xbd0002f6,
301	0x1031f404,
302	0x01820082,
303	0x030022cf,
304	0x1f24f001,
305	0xb60432bb,
306	0x02b50132,
307	0x0603b505,
308	0x01860082,
309	0xb50022cf,
310	0x24b60402,
311	0xc900800f,
312	0x0002f601,
313	0x308e04bd,
314	0xe5f0500c,
315	0xbd24bd01,
316/* 0x03b3: init_unk_loop */
317	0x7e44bd34,
318	0xb0000065,
319	0x0bf400f6,
320	0xbb010f0e,
321	0x4ffd04f2,
322	0x0130b605,
323/* 0x03c8: init_unk_next */
324	0xb60120b6,
325	0x26b004e0,
326	0xe21bf402,
327/* 0x03d4: init_unk_done */
328	0xb50703b5,
329	0x00820804,
330	0x22cf0201,
331	0x9534bd00,
332	0x00800825,
333	0x05f601c0,
334	0x8004bd00,
335	0xf601c100,
336	0x04bd0005,
337	0x98000e98,
338	0x207e010f,
339	0x2fbb0001,
340	0x003fbb00,
341	0x98010e98,
342	0x207e020f,
343	0x0e980001,
344	0x00effd05,
345	0xbb002ebb,
346	0x0e98003e,
347	0x030f9802,
348	0x0001207e,
349	0xfd070e98,
350	0x2ebb00ef,
351	0x003ebb00,
352	0x800235b6,
353	0xf601d300,
354	0x04bd0003,
355	0xb60825b6,
356	0x20b60635,
357	0x0130b601,
358	0xb60824b6,
359	0x2fb20834,
360	0x0002687e,
361	0xbb002fbb,
362	0x3f0f003f,
363	0x501d608e,
364	0xb201e5f0,
365	0x008f7eff,
366	0x8e0c0f00,
367	0xf0501da8,
368	0xffb201e5,
369	0x00008f7e,
370	0x0003147e,
371	0x608e3f0f,
372	0xe5f0501d,
373	0x7effb201,
374	0x0f00008f,
375	0x1d9c8e00,
376	0x01e5f050,
377	0x8f7effb2,
378	0x010f0000,
379	0x0003147e,
380	0x501da88e,
381	0xb201e5f0,
382	0x008f7eff,
383	0x8eff0f00,
384	0xf0501d98,
385	0xffb201e5,
386	0x00008f7e,
387	0xa88e020f,
388	0xe5f0501d,
389	0x7effb201,
390	0x7e00008f,
391	0x98000314,
392	0x00850504,
393	0x55f05040,
394/* 0x04dd: tpc_strand_init_tpc_loop */
395	0x705eb801,
396	0x657e0005,
397	0xf6b20000,
398/* 0x04ea: tpc_strand_init_idx_loop */
399	0x5eb874bd,
400	0xb2000560,
401	0x008f7e7f,
402	0x885eb800,
403	0x2f950005,
404	0x008f7e08,
405	0x8c5eb800,
406	0x2f950005,
407	0x008f7e08,
408	0x905eb800,
409	0x657e0005,
410	0xf5b60000,
411	0x01f0b606,
412	0xbb08f4b6,
413	0x3fbb002f,
414	0x0170b600,
415	0xf40162b6,
416	0x50b7bf1b,
417	0x42b60800,
418	0xa81bf401,
419	0x608e3f0f,
420	0xe5f0501d,
421	0x7effb201,
422	0x0f00008f,
423	0x1da88e0d,
424	0x01e5f050,
425	0x8f7effb2,
426	0x147e0000,
427	0x00800003,
428	0x03f60201,
429	0xbd04bd00,
430	0x1f29f024,
431	0x02300080,
432	0xbd0002f6,
433/* 0x0571: wait */
434	0x0028f404,
435/* 0x0577: main */
436	0x0d0031f4,
437	0x00377e24,
438	0xf401f400,
439	0xf404e4b0,
440	0x81fe1d18,
441	0xbd060201,
442	0x0412fd20,
443	0xfd01e4b6,
444	0x18fe051e,
445	0x06487e00,
446	0xda0ef400,
447/* 0x05a0: main_not_ctx_xfer */
448	0xf010ef94,
449	0xf87e01f5,
450	0x0ef40002,
451/* 0x05ad: ih */
452	0xf900f9cd,
453	0x0188fe80,
454	0x90f980f9,
455	0xb0f9a0f9,
456	0xe0f9d0f9,
457	0x04bdf0f9,
458	0xcf02004a,
459	0xabc400aa,
460	0x1f0bf404,
461	0x004e240d,
462	0x00eecf1a,
463	0xcf19004f,
464	0x047e00ff,
465	0x010e0000,
466	0xf61d0040,
467	0x04bd000e,
468/* 0x05ec: ih_no_fifo */
469	0xf6010040,
470	0x04bd000a,
471	0xe0fcf0fc,
472	0xb0fcd0fc,
473	0x90fca0fc,
474	0x88fe80fc,
475	0xfc80fc00,
476	0x0032f400,
477/* 0x060e: hub_barrier_done */
478	0x010f01f8,
479	0xbb040e98,
480	0xffb204fe,
481	0x4094188e,
482	0x00008f7e,
483/* 0x0622: ctx_redswitch */
484	0x200f00f8,
485	0x01850080,
486	0xbd000ff6,
487/* 0x062f: ctx_redswitch_delay */
488	0xb6080e04,
489	0x1bf401e2,
490	0x00f5f1fd,
491	0x00f5f108,
492	0x85008002,
493	0x000ff601,
494	0x00f804bd,
495/* 0x0648: ctx_xfer */
496	0x02810080,
497	0xbd000ff6,
498	0x1dc48e04,
499	0x01e5f050,
500	0x8f7effb2,
501	0x11f40000,
502	0x06227e07,
503/* 0x0665: ctx_xfer_not_load */
504	0x02167e00,
505	0x8024bd00,
506	0xf60247fc,
507	0x04bd0002,
508	0xb6012cf0,
509	0xfc800320,
510	0x02f6024a,
511	0x0f04bd00,
512	0x1da88e0c,
513	0x01e5f050,
514	0x8f7effb2,
515	0x147e0000,
516	0x3f0f0003,
517	0x501d608e,
518	0xb201e5f0,
519	0x008f7eff,
520	0x8e000f00,
521	0xf0501d9c,
522	0xffb201e5,
523	0x00008f7e,
524	0x147e010f,
525	0xfcf00003,
526	0x03f0b601,
527	0x501da88e,
528	0xb201e5f0,
529	0x008f7eff,
530	0x01acf000,
531	0x8b02a5f0,
532	0x98500000,
533	0xc4b6040c,
534	0x00bcbb0f,
535	0x98000c98,
536	0x000e010d,
537	0x00013d7e,
538	0x8b01acf0,
539	0x98504000,
540	0xc4b6040c,
541	0x00bcbb0f,
542	0x98010c98,
543	0x0f98020d,
544	0x08004e06,
545	0x00013d7e,
546	0xf001acf0,
547	0x008b04a5,
548	0x0c985030,
549	0x0fc4b604,
550	0x9800bcbb,
551	0x0d98020c,
552	0x080f9803,
553	0x7e02004e,
554	0x7e00013d,
555	0x7e00020a,
556	0xf4000314,
557	0x12f40601,
558/* 0x073d: ctx_xfer_post */
559	0x02277e1a,
560	0x8e0d0f00,
561	0xf0501da8,
562	0xffb201e5,
563	0x00008f7e,
564	0x0003147e,
565/* 0x0754: ctx_xfer_done */
566	0x00060e7e,
567	0x000000f8,
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};
610