1/*	$NetBSD: hubgm107.fuc5.h,v 1.3 2021/12/18 23:45:36 riastradh Exp $	*/
2
3/* SPDX-License-Identifier: MIT */
4static uint32_t gm107_grhub_data[] = {
5/* 0x0000: hub_mmio_list_head */
6	0x00000300,
7/* 0x0004: hub_mmio_list_tail */
8	0x00000304,
9/* 0x0008: gpc_count */
10	0x00000000,
11/* 0x000c: rop_count */
12	0x00000000,
13/* 0x0010: cmd_queue */
14	0x00000000,
15	0x00000000,
16	0x00000000,
17	0x00000000,
18	0x00000000,
19	0x00000000,
20	0x00000000,
21	0x00000000,
22	0x00000000,
23	0x00000000,
24	0x00000000,
25	0x00000000,
26	0x00000000,
27	0x00000000,
28	0x00000000,
29	0x00000000,
30	0x00000000,
31	0x00000000,
32/* 0x0058: ctx_current */
33	0x00000000,
34	0x00000000,
35	0x00000000,
36	0x00000000,
37	0x00000000,
38	0x00000000,
39	0x00000000,
40	0x00000000,
41	0x00000000,
42	0x00000000,
43	0x00000000,
44	0x00000000,
45	0x00000000,
46	0x00000000,
47	0x00000000,
48	0x00000000,
49	0x00000000,
50	0x00000000,
51	0x00000000,
52	0x00000000,
53	0x00000000,
54	0x00000000,
55	0x00000000,
56	0x00000000,
57	0x00000000,
58	0x00000000,
59	0x00000000,
60	0x00000000,
61	0x00000000,
62	0x00000000,
63	0x00000000,
64	0x00000000,
65	0x00000000,
66	0x00000000,
67	0x00000000,
68	0x00000000,
69	0x00000000,
70	0x00000000,
71	0x00000000,
72	0x00000000,
73	0x00000000,
74	0x00000000,
75/* 0x0100: chan_data */
76/* 0x0100: chan_mmio_count */
77	0x00000000,
78/* 0x0104: chan_mmio_address */
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,
101	0x00000000,
102	0x00000000,
103	0x00000000,
104	0x00000000,
105	0x00000000,
106	0x00000000,
107	0x00000000,
108	0x00000000,
109	0x00000000,
110	0x00000000,
111	0x00000000,
112	0x00000000,
113	0x00000000,
114	0x00000000,
115	0x00000000,
116	0x00000000,
117	0x00000000,
118	0x00000000,
119	0x00000000,
120	0x00000000,
121	0x00000000,
122	0x00000000,
123	0x00000000,
124	0x00000000,
125	0x00000000,
126	0x00000000,
127	0x00000000,
128	0x00000000,
129	0x00000000,
130	0x00000000,
131	0x00000000,
132	0x00000000,
133	0x00000000,
134	0x00000000,
135	0x00000000,
136	0x00000000,
137	0x00000000,
138	0x00000000,
139	0x00000000,
140	0x00000000,
141	0x00000000,
142/* 0x0200: xfer_data */
143	0x00000000,
144	0x00000000,
145	0x00000000,
146	0x00000000,
147	0x00000000,
148	0x00000000,
149	0x00000000,
150	0x00000000,
151	0x00000000,
152	0x00000000,
153	0x00000000,
154	0x00000000,
155	0x00000000,
156	0x00000000,
157	0x00000000,
158	0x00000000,
159	0x00000000,
160	0x00000000,
161	0x00000000,
162	0x00000000,
163	0x00000000,
164	0x00000000,
165	0x00000000,
166	0x00000000,
167	0x00000000,
168	0x00000000,
169	0x00000000,
170	0x00000000,
171	0x00000000,
172	0x00000000,
173	0x00000000,
174	0x00000000,
175	0x00000000,
176	0x00000000,
177	0x00000000,
178	0x00000000,
179	0x00000000,
180	0x00000000,
181	0x00000000,
182	0x00000000,
183	0x00000000,
184	0x00000000,
185	0x00000000,
186	0x00000000,
187	0x00000000,
188	0x00000000,
189	0x00000000,
190	0x00000000,
191	0x00000000,
192	0x00000000,
193	0x00000000,
194	0x00000000,
195	0x00000000,
196	0x00000000,
197	0x00000000,
198	0x00000000,
199	0x00000000,
200	0x00000000,
201	0x00000000,
202	0x00000000,
203	0x00000000,
204	0x00000000,
205	0x00000000,
206	0x00000000,
207/* 0x0300: hub_mmio_list_base */
208	0x0417e91c,
209};
210
211static uint32_t gm107_grhub_code[] = {
212	0x030e0ef5,
213/* 0x0004: queue_put */
214	0x9800d898,
215	0x86f001d9,
216	0xf489a408,
217	0x020f0b1b,
218	0x0002f87e,
219/* 0x001a: queue_put_next */
220	0x98c400f8,
221	0x0384b607,
222	0xb6008dbb,
223	0x8eb50880,
224	0x018fb500,
225	0xf00190b6,
226	0xd9b50f94,
227/* 0x0037: queue_get */
228	0xf400f801,
229	0xd8980131,
230	0x01d99800,
231	0x0bf489a4,
232	0x0789c421,
233	0xbb0394b6,
234	0x90b6009d,
235	0x009e9808,
236	0xb6019f98,
237	0x84f00180,
238	0x00d8b50f,
239/* 0x0063: queue_get_done */
240	0xf80132f4,
241/* 0x0065: nv_rd32 */
242	0xf0ecb200,
243	0x00801fc9,
244	0x0cf601ca,
245/* 0x0073: nv_rd32_wait */
246	0x8c04bd00,
247	0xcf01ca00,
248	0xccc800cc,
249	0xf61bf41f,
250	0xec7e060a,
251	0x008f0000,
252	0xffcf01cb,
253/* 0x008f: nv_wr32 */
254	0x8000f800,
255	0xf601cc00,
256	0x04bd000f,
257	0xc9f0ecb2,
258	0x1ec9f01f,
259	0x01ca0080,
260	0xbd000cf6,
261/* 0x00a9: nv_wr32_wait */
262	0xca008c04,
263	0x00cccf01,
264	0xf41fccc8,
265	0x00f8f61b,
266/* 0x00b8: wait_donez */
267	0x99f094bd,
268	0x37008000,
269	0x0009f602,
270	0x008004bd,
271	0x0af60206,
272/* 0x00cf: wait_donez_ne */
273	0x8804bd00,
274	0xcf010000,
275	0x8aff0088,
276	0xf61bf488,
277	0x99f094bd,
278	0x17008000,
279	0x0009f602,
280	0x00f804bd,
281/* 0x00ec: wait_doneo */
282	0x99f094bd,
283	0x37008000,
284	0x0009f602,
285	0x008004bd,
286	0x0af60206,
287/* 0x0103: wait_doneo_e */
288	0x8804bd00,
289	0xcf010000,
290	0x8aff0088,
291	0xf60bf488,
292	0x99f094bd,
293	0x17008000,
294	0x0009f602,
295	0x00f804bd,
296/* 0x0120: mmctx_size */
297/* 0x0122: nv_mmctx_size_loop */
298	0xe89894bd,
299	0x1a85b600,
300	0xb60180b6,
301	0x98bb0284,
302	0x04e0b600,
303	0x1bf4efa4,
304	0xf89fb2ec,
305/* 0x013d: mmctx_xfer */
306	0xf094bd00,
307	0x00800199,
308	0x09f60237,
309	0xbd04bd00,
310	0x05bbfd94,
311	0x800f0bf4,
312	0xf601c400,
313	0x04bd000b,
314/* 0x015f: mmctx_base_disabled */
315	0xfd0099f0,
316	0x0bf405ee,
317	0xc6008018,
318	0x000ef601,
319	0x008004bd,
320	0x0ff601c7,
321	0xf004bd00,
322/* 0x017a: mmctx_multi_disabled */
323	0xabc80199,
324	0x10b4b600,
325	0xc80cb9f0,
326	0xe4b601ae,
327	0x05befd11,
328	0x01c50080,
329	0xbd000bf6,
330/* 0x0195: mmctx_exec_loop */
331/* 0x0195: mmctx_wait_free */
332	0xc5008e04,
333	0x00eecf01,
334	0xf41fe4f0,
335	0xce98f60b,
336	0x05e9fd00,
337	0x01c80080,
338	0xbd000ef6,
339	0x04c0b604,
340	0x1bf4cda4,
341	0x02abc8df,
342/* 0x01bf: mmctx_fini_wait */
343	0x8b1c1bf4,
344	0xcf01c500,
345	0xb4f000bb,
346	0x10b4b01f,
347	0x0af31bf4,
348	0x00b87e05,
349	0x250ef400,
350/* 0x01d8: mmctx_stop */
351	0xb600abc8,
352	0xb9f010b4,
353	0x12b9f00c,
354	0x01c50080,
355	0xbd000bf6,
356/* 0x01ed: mmctx_stop_wait */
357	0xc5008b04,
358	0x00bbcf01,
359	0xf412bbc8,
360/* 0x01fa: mmctx_done */
361	0x94bdf61b,
362	0x800199f0,
363	0xf6021700,
364	0x04bd0009,
365/* 0x020a: strand_wait */
366	0xa0f900f8,
367	0xb87e020a,
368	0xa0fc0000,
369/* 0x0216: strand_pre */
370	0x0c0900f8,
371	0x024afc80,
372	0xbd0009f6,
373	0x020a7e04,
374/* 0x0227: strand_post */
375	0x0900f800,
376	0x4afc800d,
377	0x0009f602,
378	0x0a7e04bd,
379	0x00f80002,
380/* 0x0238: strand_set */
381	0xfc800f0c,
382	0x0cf6024f,
383	0x0c04bd00,
384	0x4afc800b,
385	0x000cf602,
386	0xfc8004bd,
387	0x0ef6024f,
388	0x0c04bd00,
389	0x4afc800a,
390	0x000cf602,
391	0x0a7e04bd,
392	0x00f80002,
393/* 0x0268: strand_ctx_init */
394	0x99f094bd,
395	0x37008003,
396	0x0009f602,
397	0x167e04bd,
398	0x030e0002,
399	0x0002387e,
400	0xfc80c4bd,
401	0x0cf60247,
402	0x0c04bd00,
403	0x4afc8001,
404	0x000cf602,
405	0x0a7e04bd,
406	0x0c920002,
407	0x46fc8001,
408	0x000cf602,
409	0x020c04bd,
410	0x024afc80,
411	0xbd000cf6,
412	0x020a7e04,
413	0x02277e00,
414	0x42008800,
415	0x20008902,
416	0x0099cf02,
417/* 0x02c7: ctx_init_strand_loop */
418	0xf608fe95,
419	0x8ef6008e,
420	0x808acf40,
421	0xb606a5b6,
422	0xeabb01a0,
423	0x0480b600,
424	0xf40192b6,
425	0xe4b6e81b,
426	0xf2efbc08,
427	0x99f094bd,
428	0x17008003,
429	0x0009f602,
430	0x00f804bd,
431/* 0x02f8: error */
432	0x02050080,
433	0xbd000ff6,
434	0x80010f04,
435	0xf6030700,
436	0x04bd000f,
437/* 0x030e: init */
438	0x04bd00f8,
439	0x410007fe,
440	0x11cf4200,
441	0x0911e700,
442	0x0814b601,
443	0x020014fe,
444	0x12004002,
445	0xbd0002f6,
446	0x05ca4104,
447	0xbd0010fe,
448	0x07004024,
449	0xbd0002f6,
450	0x20034204,
451	0x01010080,
452	0xbd0002f6,
453	0x20044204,
454	0x01010480,
455	0xbd0002f6,
456	0x200b4204,
457	0x01010880,
458	0xbd0002f6,
459	0x200c4204,
460	0x01011c80,
461	0xbd0002f6,
462	0x01039204,
463	0x03090080,
464	0xbd0003f6,
465	0x87048204,
466	0x04004000,
467	0xbd0002f6,
468	0x40040204,
469	0x02f60300,
470	0xf404bd00,
471	0x048e1031,
472	0x657e4096,
473	0xfeb20000,
474	0xb590f1c7,
475	0xf4f00301,
476	0x020fb51f,
477	0x1fbb0101,
478	0x0112b604,
479	0x01030080,
480	0xbd0001f6,
481	0x04008004,
482	0x0001f601,
483	0x004104bd,
484	0x7e020f01,
485	0x7e0006ad,
486	0x0f0006bc,
487	0x06fe7e10,
488	0x000e9800,
489	0x7e010f98,
490	0x95000120,
491	0x00800814,
492	0x04f601c0,
493	0x8004bd00,
494	0xf601c100,
495	0x04bd0004,
496	0x130030b7,
497	0xb6001fbb,
498	0x008002f5,
499	0x0ff601d3,
500	0xb604bd00,
501	0x10b60815,
502	0x0814b601,
503	0x687e1fb2,
504	0x1fbb0002,
505	0x02039800,
506	0x50200084,
507/* 0x0420: init_gpc */
508	0x08044eb8,
509	0x7e1fb200,
510	0xb800008f,
511	0x00010c4e,
512	0x8f7ef4bd,
513	0x4eb80000,
514	0x7e000104,
515	0xb800008f,
516	0x0001004e,
517	0x8f7e020f,
518	0x4eb80000,
519/* 0x044f: init_gpc_wait */
520	0x7e000800,
521	0xc8000065,
522	0x0bf41fff,
523	0x044eb8f9,
524	0x657e0008,
525	0x1fbb0000,
526	0x0040b700,
527	0x0132b680,
528	0x0fb41bf4,
529	0x06fe7e00,
530	0x7e000f00,
531	0x800006ad,
532	0xf6020100,
533	0x04bd0001,
534	0x19f014bd,
535	0x3000801f,
536	0x0001f602,
537/* 0x0492: wait */
538	0x28f404bd,
539	0x0031f400,
540/* 0x0498: main */
541	0x377e100d,
542	0x01f40000,
543	0x01e4b1f4,
544	0xc71bf540,
545	0xf094bd00,
546	0x00800499,
547	0x09f60237,
548	0x8104bd00,
549	0xcf02c000,
550	0x00820011,
551	0x22cf02c1,
552	0x1f13c800,
553	0xc8770bf4,
554	0x0bf41f23,
555	0xb220f955,
556	0xf094bd12,
557	0x00800799,
558	0x09f60237,
559	0xf404bd00,
560	0x31f40132,
561	0x08817e02,
562	0xf094bd00,
563	0x00800799,
564	0x09f60217,
565	0xfc04bd00,
566	0xf094bd20,
567	0x00800699,
568	0x09f60237,
569	0xf404bd00,
570	0x817e0131,
571	0x94bd0008,
572	0x800699f0,
573	0xf6021700,
574	0x04bd0009,
575/* 0x0523: chsw_prev_no_next */
576	0xf92f0ef4,
577	0xf412b220,
578	0x32f40132,
579	0x08817e02,
580	0x8020fc00,
581	0xf602c000,
582	0x04bd0002,
583/* 0x053f: chsw_no_prev */
584	0xc8130ef4,
585	0x0bf41f23,
586	0x0131f40d,
587	0x7e0232f4,
588/* 0x054f: chsw_done */
589	0x02000881,
590	0xc3008001,
591	0x0002f602,
592	0x94bd04bd,
593	0x800499f0,
594	0xf6021700,
595	0x04bd0009,
596	0xff300ef5,
597/* 0x056c: main_not_ctx_switch */
598	0xf401e4b0,
599	0xf2b20c1b,
600	0x0008217e,
601/* 0x057b: main_not_ctx_chan */
602	0xb0400ef4,
603	0x1bf402e4,
604	0xf094bd2c,
605	0x00800799,
606	0x09f60237,
607	0xf404bd00,
608	0x32f40132,
609	0x08817e02,
610	0xf094bd00,
611	0x00800799,
612	0x09f60217,
613	0xf404bd00,
614/* 0x05aa: main_not_ctx_save */
615	0xef94110e,
616	0x01f5f010,
617	0x0002f87e,
618	0xfee40ef5,
619/* 0x05b8: main_done */
620	0x29f024bd,
621	0x3000801f,
622	0x0002f602,
623	0x0ef504bd,
624/* 0x05ca: ih */
625	0x00f9fed2,
626	0x88fe80f9,
627	0xf980f901,
628	0xf9a0f990,
629	0xf9d0f9b0,
630	0xbdf0f9e0,
631	0x02004a04,
632	0xc400aacf,
633	0x0bf404ab,
634	0x4e100d23,
635	0xeecf1a00,
636	0x19004f00,
637	0x7e00ffcf,
638	0xb7000004,
639	0x0e0400b0,
640	0x1d004001,
641	0xbd000ef6,
642/* 0x060d: ih_no_fifo */
643	0x00abe404,
644	0x0c0bf401,
645	0x014e100d,
646	0x00047e40,
647/* 0x061d: ih_no_ctxsw */
648	0x00abe400,
649	0x560bf404,
650	0x4007088e,
651	0x0000657e,
652	0x0080ffb2,
653	0x0ff60204,
654	0x8e04bd00,
655	0x7e400704,
656	0xb2000065,
657	0x030080ff,
658	0x000ff602,
659	0xfec704bd,
660	0x02ee9450,
661	0x4007008f,
662	0x7e00efbb,
663	0x80000065,
664	0xf6020200,
665	0x04bd000f,
666	0xf87e030f,
667	0x004b0002,
668	0x8ebfb201,
669	0x7e400144,
670/* 0x0677: ih_no_fwmthd */
671	0x4b00008f,
672	0xb0bd0504,
673	0xf4b4abff,
674	0x00800c0b,
675	0x0bf60307,
676/* 0x068b: ih_no_other */
677	0x4004bd00,
678	0x0af60100,
679	0xfc04bd00,
680	0xfce0fcf0,
681	0xfcb0fcd0,
682	0xfc90fca0,
683	0x0088fe80,
684	0x00fc80fc,
685	0xf80032f4,
686/* 0x06ad: ctx_4170s */
687	0x10f5f001,
688	0x708effb2,
689	0x8f7e4041,
690	0x00f80000,
691/* 0x06bc: ctx_4170w */
692	0x4041708e,
693	0x0000657e,
694	0xf4f0ffb2,
695	0xf31bf410,
696/* 0x06ce: ctx_redswitch */
697	0x004e00f8,
698	0x40e5f002,
699	0xf020e5f0,
700	0x008010e5,
701	0x0ef60185,
702	0x0f04bd00,
703/* 0x06e5: ctx_redswitch_delay */
704	0x01f2b608,
705	0xf1fd1bf4,
706	0xf10400e5,
707	0x800100e5,
708	0xf6018500,
709	0x04bd000e,
710/* 0x06fe: ctx_86c */
711	0x008000f8,
712	0x0ff60223,
713	0xb204bd00,
714	0x8a148eff,
715	0x008f7e40,
716	0x8effb200,
717	0x7e41a88c,
718	0xf800008f,
719/* 0x071d: ctx_mem */
720	0x84008000,
721	0x000ff602,
722/* 0x0726: ctx_mem_wait */
723	0x008f04bd,
724	0xffcf0284,
725	0x05fffd00,
726	0xf8f61bf4,
727/* 0x0735: ctx_load */
728	0xf094bd00,
729	0x00800599,
730	0x09f60237,
731	0x0a04bd00,
732	0x00b87e0c,
733	0x80f4bd00,
734	0xf6028900,
735	0x04bd000f,
736	0x02c10080,
737	0xbd0002f6,
738	0x83008004,
739	0x0002f602,
740	0x070f04bd,
741	0x00071d7e,
742	0x02c00080,
743	0xbd0002f6,
744	0x000bfe04,
745	0xb61f2af0,
746	0x20b60424,
747	0xf094bd02,
748	0x00800899,
749	0x09f60237,
750	0x8004bd00,
751	0xf6028100,
752	0x04bd0002,
753	0x000000d2,
754	0x0225f080,
755	0x02880080,
756	0xbd0002f6,
757	0x42100104,
758	0x23f00200,
759	0x0512fa02,
760	0x94bd03f8,
761	0x800899f0,
762	0xf6021700,
763	0x04bd0009,
764	0xb6810198,
765	0x02981814,
766	0x0825b680,
767	0xb50512fd,
768	0x94bd1601,
769	0x800999f0,
770	0xf6023700,
771	0x04bd0009,
772	0x02810080,
773	0xbd0001f6,
774	0x80010204,
775	0xf6028800,
776	0x04bd0002,
777	0xf0010041,
778	0x01fa0613,
779	0xbd03f805,
780	0x0999f094,
781	0x02170080,
782	0xbd0009f6,
783	0xf094bd04,
784	0x00800599,
785	0x09f60217,
786	0xf804bd00,
787/* 0x0821: ctx_chan */
788	0x07357e00,
789	0x7e0c0a00,
790	0x0f0000b8,
791	0x071d7e05,
792/* 0x0833: ctx_mmio_exec */
793	0x9800f800,
794	0x00804103,
795	0x03f60281,
796	0xbd04bd00,
797/* 0x0841: ctx_mmio_loop */
798	0xff34c434,
799	0x450e1bf4,
800	0x53f00200,
801	0x0535fa06,
802/* 0x0852: ctx_mmio_pull */
803	0x4e9803f8,
804	0x814f9880,
805	0x00008f7e,
806	0xb60830b6,
807	0x1bf40112,
808/* 0x0865: ctx_mmio_done */
809	0x160398df,
810	0x02810080,
811	0xbd0003f6,
812	0x4000b504,
813	0xf0010041,
814	0x01fa0613,
815	0xf803f806,
816/* 0x0881: ctx_xfer */
817	0x80040e00,
818	0xf6030200,
819	0x04bd000e,
820/* 0x088c: ctx_xfer_idle */
821	0x0300008e,
822	0xf100eecf,
823	0xf42000e4,
824	0x11f4f51b,
825	0x0c02f406,
826/* 0x08a0: ctx_xfer_pre */
827	0xfe7e100f,
828	0x11f40006,
829/* 0x08a9: ctx_xfer_pre_load */
830	0x7e020f1b,
831	0x7e0006ad,
832	0x7e0006bc,
833	0xbd0006ce,
834	0x06ad7ef4,
835	0x07357e00,
836/* 0x08c1: ctx_xfer_exec */
837	0x16019800,
838	0x008024bd,
839	0x02f60105,
840	0xb204bd00,
841	0xa5008e1f,
842	0x008f7e41,
843	0x01fcf000,
844	0xb6022cf0,
845	0xf2fd0124,
846	0x8effb205,
847	0x7e41a504,
848	0x7e00008f,
849	0xbd000216,
850	0x47fc8024,
851	0x0002f602,
852	0x2cf004bd,
853	0x0320b601,
854	0x024afc80,
855	0xbd0002f6,
856	0x01acf004,
857	0x0b06a5f0,
858	0x000c9800,
859	0x0e010d98,
860	0x013d7e00,
861	0x7e080a00,
862	0x7e0000ec,
863	0xf400020a,
864	0x0c0a1201,
865	0x0000b87e,
866	0x1d7e050f,
867	0x02f40007,
868/* 0x093d: ctx_xfer_post */
869	0x7e020f2d,
870	0xbd0006ad,
871	0x06fe7ef4,
872	0x02277e00,
873	0x06bc7e00,
874	0x7ef4bd00,
875	0xf40006ad,
876	0x01981011,
877	0x0511fd40,
878	0x7e070bf4,
879/* 0x0967: ctx_xfer_no_post_mmio */
880/* 0x0967: ctx_xfer_done */
881	0xf8000833,
882	0x00000000,
883	0x00000000,
884	0x00000000,
885	0x00000000,
886	0x00000000,
887	0x00000000,
888	0x00000000,
889	0x00000000,
890	0x00000000,
891	0x00000000,
892	0x00000000,
893	0x00000000,
894	0x00000000,
895	0x00000000,
896	0x00000000,
897	0x00000000,
898	0x00000000,
899	0x00000000,
900	0x00000000,
901	0x00000000,
902	0x00000000,
903	0x00000000,
904	0x00000000,
905	0x00000000,
906	0x00000000,
907	0x00000000,
908	0x00000000,
909	0x00000000,
910	0x00000000,
911	0x00000000,
912	0x00000000,
913	0x00000000,
914	0x00000000,
915	0x00000000,
916	0x00000000,
917	0x00000000,
918	0x00000000,
919	0x00000000,
920};
921