-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnv2a_regs.h
1334 lines (1288 loc) · 86.5 KB
/
nv2a_regs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* QEMU Geforce NV2A register definitions
*
* Copyright (c) 2012 espes
* Copyright (c) 2015 Jannik Vogel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_NV2A_REGS_H
#define HW_NV2A_REGS_H
#define NV_NUM_BLOCKS 21
#define NV_PMC 0 /* card master control */
#define NV_PBUS 1 /* bus control */
#define NV_PFIFO 2 /* MMIO and DMA FIFO submission to PGRAPH and VPE */
#define NV_PFIFO_CACHE 3
#define NV_PRMA 4 /* access to BAR0/BAR1 from real mode */
#define NV_PVIDEO 5 /* video overlay */
#define NV_PTIMER 6 /* time measurement and time-based alarms */
#define NV_PCOUNTER 7 /* performance monitoring counters */
#define NV_PVPE 8 /* MPEG2 decoding engine */
#define NV_PTV 9 /* TV encoder */
#define NV_PRMFB 10 /* aliases VGA memory window */
#define NV_PRMVIO 11 /* aliases VGA sequencer and graphics controller registers */
#define NV_PFB 12 /* memory interface */
#define NV_PSTRAPS 13 /* straps readout / override */
#define NV_PGRAPH 14 /* accelerated 2d/3d drawing engine */
#define NV_PCRTC 15 /* more CRTC controls */
#define NV_PRMCIO 16 /* aliases VGA CRTC and attribute controller registers */
#define NV_PRAMDAC 17 /* RAMDAC, cursor, and PLL control */
#define NV_PRMDIO 18 /* aliases VGA palette registers */
#define NV_PRAMIN 19 /* RAMIN access */
#define NV_USER 20 /* PFIFO MMIO and DMA submission area */
#define NV_PMC_BOOT_0 0x00000000
#define NV_PMC_INTR_0 0x00000100
# define NV_PMC_INTR_0_PFIFO (1 << 8)
# define NV_PMC_INTR_0_PGRAPH (1 << 12)
# define NV_PMC_INTR_0_PCRTC (1 << 24)
# define NV_PMC_INTR_0_PBUS (1 << 28)
# define NV_PMC_INTR_0_SOFTWARE (1 << 31)
#define NV_PMC_INTR_EN_0 0x00000140
# define NV_PMC_INTR_EN_0_HARDWARE 1
# define NV_PMC_INTR_EN_0_SOFTWARE 2
#define NV_PMC_ENABLE 0x00000200
# define NV_PMC_ENABLE_PFIFO (1 << 8)
# define NV_PMC_ENABLE_PGRAPH (1 << 12)
/* These map approximately to the pci registers */
#define NV_PBUS_PCI_NV_0 0x00000800
# define NV_PBUS_PCI_NV_0_VENDOR_ID 0x0000FFFF
# define NV_CONFIG_PCI_NV_0_DEVICE_ID 0xFFFF0000
#define NV_PBUS_PCI_NV_1 0x00000804
#define NV_PBUS_PCI_NV_2 0x00000808
# define NV_PBUS_PCI_NV_2_REVISION_ID 0x000000FF
# define NV_PBUS_PCI_NV_2_CLASS_CODE 0xFFFFFF00
#define NV_PFIFO_INTR_0 0x00000100
# define NV_PFIFO_INTR_0_CACHE_ERROR (1 << 0)
# define NV_PFIFO_INTR_0_RUNOUT (1 << 4)
# define NV_PFIFO_INTR_0_RUNOUT_OVERFLOW (1 << 8)
# define NV_PFIFO_INTR_0_DMA_PUSHER (1 << 12)
# define NV_PFIFO_INTR_0_DMA_PT (1 << 16)
# define NV_PFIFO_INTR_0_SEMAPHORE (1 << 20)
# define NV_PFIFO_INTR_0_ACQUIRE_TIMEOUT (1 << 24)
#define NV_PFIFO_INTR_EN_0 0x00000140
# define NV_PFIFO_INTR_EN_0_CACHE_ERROR (1 << 0)
# define NV_PFIFO_INTR_EN_0_RUNOUT (1 << 4)
# define NV_PFIFO_INTR_EN_0_RUNOUT_OVERFLOW (1 << 8)
# define NV_PFIFO_INTR_EN_0_DMA_PUSHER (1 << 12)
# define NV_PFIFO_INTR_EN_0_DMA_PT (1 << 16)
# define NV_PFIFO_INTR_EN_0_SEMAPHORE (1 << 20)
# define NV_PFIFO_INTR_EN_0_ACQUIRE_TIMEOUT (1 << 24)
#define NV_PFIFO_RAMHT 0x00000210
# define NV_PFIFO_RAMHT_BASE_ADDRESS 0x000001F0
# define NV_PFIFO_RAMHT_SIZE 0x00030000
# define NV_PFIFO_RAMHT_SIZE_4K 0
# define NV_PFIFO_RAMHT_SIZE_8K 1
# define NV_PFIFO_RAMHT_SIZE_16K 2
# define NV_PFIFO_RAMHT_SIZE_32K 3
# define NV_PFIFO_RAMHT_SEARCH 0x03000000
# define NV_PFIFO_RAMHT_SEARCH_16 0
# define NV_PFIFO_RAMHT_SEARCH_32 1
# define NV_PFIFO_RAMHT_SEARCH_64 2
# define NV_PFIFO_RAMHT_SEARCH_128 3
#define NV_PFIFO_RAMFC 0x00000214
# define NV_PFIFO_RAMFC_BASE_ADDRESS1 0x000001FC
# define NV_PFIFO_RAMFC_SIZE 0x00010000
# define NV_PFIFO_RAMFC_BASE_ADDRESS2 0x00FE0000
#define NV_PFIFO_RAMRO 0x00000218
# define NV_PFIFO_RAMRO_BASE_ADDRESS 0x000001FE
# define NV_PFIFO_RAMRO_SIZE 0x00010000
#define NV_PFIFO_RUNOUT_STATUS 0x00000400
# define NV_PFIFO_RUNOUT_STATUS_RANOUT (1 << 0)
# define NV_PFIFO_RUNOUT_STATUS_LOW_MARK (1 << 4)
# define NV_PFIFO_RUNOUT_STATUS_HIGH_MARK (1 << 8)
#define NV_PFIFO_MODE 0x00000504
#define NV_PFIFO_DMA 0x00000508
#define NV_PFIFO_CACHE1_PUSH0 0x00001200
# define NV_PFIFO_CACHE1_PUSH0_ACCESS (1 << 0)
#define NV_PFIFO_CACHE1_PUSH1 0x00001204
# define NV_PFIFO_CACHE1_PUSH1_CHID 0x0000001F
# define NV_PFIFO_CACHE1_PUSH1_MODE 0x00000100
# define NV_PFIFO_CACHE1_PUSH1_MODE_PIO 0
# define NV_PFIFO_CACHE1_PUSH1_MODE_DMA 1
#define NV_PFIFO_CACHE1_PUT 0x00001210
#define NV_PFIFO_CACHE1_STATUS 0x00001214
# define NV_PFIFO_CACHE1_STATUS_LOW_MARK (1 << 4)
# define NV_PFIFO_CACHE1_STATUS_HIGH_MARK (1 << 8)
#define NV_PFIFO_CACHE1_DMA_PUSH 0x00001220
# define NV_PFIFO_CACHE1_DMA_PUSH_ACCESS (1 << 0)
# define NV_PFIFO_CACHE1_DMA_PUSH_STATE (1 << 4)
# define NV_PFIFO_CACHE1_DMA_PUSH_BUFFER (1 << 8)
# define NV_PFIFO_CACHE1_DMA_PUSH_STATUS (1 << 12)
# define NV_PFIFO_CACHE1_DMA_PUSH_ACQUIRE (1 << 16)
#define NV_PFIFO_CACHE1_DMA_FETCH 0x00001224
# define NV_PFIFO_CACHE1_DMA_FETCH_TRIG 0x000000F8
# define NV_PFIFO_CACHE1_DMA_FETCH_SIZE 0x0000E000
# define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS 0x001F0000
#define NV_PFIFO_CACHE1_DMA_STATE 0x00001228
# define NV_PFIFO_CACHE1_DMA_STATE_METHOD_TYPE (1 << 0)
# define NV_PFIFO_CACHE1_DMA_STATE_METHOD_TYPE_INC 0
# define NV_PFIFO_CACHE1_DMA_STATE_METHOD_TYPE_NON_INC 1
# define NV_PFIFO_CACHE1_DMA_STATE_METHOD 0x00001FFC
# define NV_PFIFO_CACHE1_DMA_STATE_SUBCHANNEL 0x0000E000
# define NV_PFIFO_CACHE1_DMA_STATE_METHOD_COUNT 0x1FFC0000
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR 0xE0000000
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_NONE 0
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_CALL 1
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_NON_CACHE 2
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_RETURN 3
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_RESERVED_CMD 4
# define NV_PFIFO_CACHE1_DMA_STATE_ERROR_PROTECTION 6
#define NV_PFIFO_CACHE1_DMA_INSTANCE 0x0000122C
# define NV_PFIFO_CACHE1_DMA_INSTANCE_ADDRESS 0x0000FFFF
#define NV_PFIFO_CACHE1_DMA_PUT 0x00001240
#define NV_PFIFO_CACHE1_DMA_GET 0x00001244
#define NV_PFIFO_CACHE1_REF 0x00001248
#define NV_PFIFO_CACHE1_DMA_SUBROUTINE 0x0000124C
# define NV_PFIFO_CACHE1_DMA_SUBROUTINE_RETURN_OFFSET 0x1FFFFFFC
# define NV_PFIFO_CACHE1_DMA_SUBROUTINE_STATE (1 << 0)
#define NV_PFIFO_CACHE1_PULL0 0x00001250
# define NV_PFIFO_CACHE1_PULL0_ACCESS (1 << 0)
#define NV_PFIFO_CACHE1_PULL1 0x00001254
# define NV_PFIFO_CACHE1_PULL1_ENGINE 0x00000003
#define NV_PFIFO_CACHE1_GET 0x00001270
#define NV_PFIFO_CACHE1_ENGINE 0x00001280
#define NV_PFIFO_CACHE1_DMA_DCOUNT 0x000012A0
# define NV_PFIFO_CACHE1_DMA_DCOUNT_VALUE 0x00001FFC
#define NV_PFIFO_CACHE1_DMA_GET_JMP_SHADOW 0x000012A4
# define NV_PFIFO_CACHE1_DMA_GET_JMP_SHADOW_OFFSET 0x1FFFFFFC
#define NV_PFIFO_CACHE1_DMA_RSVD_SHADOW 0x000012A8
#define NV_PFIFO_CACHE1_DMA_DATA_SHADOW 0x000012AC
#define NV_PFIFO_CACHE1_METHOD 0x00001800
# define NV_PFIFO_CACHE1_METHOD_TYPE (1 << 0)
# define NV_PFIFO_CACHE1_METHOD_ADDRESS 0x00001FFC
# define NV_PFIFO_CACHE1_METHOD_SUBCHANNEL 0x0000E000
#define NV_PFIFO_CACHE1_DATA 0x00001804
#define NV_PGRAPH_DEBUG_3 0x0000008C
# define NV_PGRAPH_DEBUG_3_HW_CONTEXT_SWITCH (1 << 2)
#define NV_PGRAPH_INTR 0x00000100
# define NV_PGRAPH_INTR_NOTIFY (1 << 0)
# define NV_PGRAPH_INTR_MISSING_HW (1 << 4)
# define NV_PGRAPH_INTR_TLB_PRESENT_DMA_R (1 << 6)
# define NV_PGRAPH_INTR_TLB_PRESENT_DMA_W (1 << 7)
# define NV_PGRAPH_INTR_TLB_PRESENT_TEX_A (1 << 8)
# define NV_PGRAPH_INTR_TLB_PRESENT_TEX_B (1 << 9)
# define NV_PGRAPH_INTR_TLB_PRESENT_VTX (1 << 10)
# define NV_PGRAPH_INTR_CONTEXT_SWITCH (1 << 12)
# define NV_PGRAPH_INTR_STATE3D (1 << 13)
# define NV_PGRAPH_INTR_BUFFER_NOTIFY (1 << 16)
# define NV_PGRAPH_INTR_ERROR (1 << 20)
# define NV_PGRAPH_INTR_SINGLE_STEP (1 << 24)
#define NV_PGRAPH_NSOURCE 0x00000108
# define NV_PGRAPH_NSOURCE_NOTIFICATION (1 << 0)
#define NV_PGRAPH_INTR_EN 0x00000140
# define NV_PGRAPH_INTR_EN_NOTIFY (1 << 0)
# define NV_PGRAPH_INTR_EN_MISSING_HW (1 << 4)
# define NV_PGRAPH_INTR_EN_TLB_PRESENT_DMA_R (1 << 6)
# define NV_PGRAPH_INTR_EN_TLB_PRESENT_DMA_W (1 << 7)
# define NV_PGRAPH_INTR_EN_TLB_PRESENT_TEX_A (1 << 8)
# define NV_PGRAPH_INTR_EN_TLB_PRESENT_TEX_B (1 << 9)
# define NV_PGRAPH_INTR_EN_TLB_PRESENT_VTX (1 << 10)
# define NV_PGRAPH_INTR_EN_CONTEXT_SWITCH (1 << 12)
# define NV_PGRAPH_INTR_EN_STATE3D (1 << 13)
# define NV_PGRAPH_INTR_EN_BUFFER_NOTIFY (1 << 16)
# define NV_PGRAPH_INTR_EN_ERROR (1 << 20)
# define NV_PGRAPH_INTR_EN_SINGLE_STEP (1 << 24)
#define NV_PGRAPH_CTX_CONTROL 0x00000144
# define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME 0x00000003
# define NV_PGRAPH_CTX_CONTROL_TIME (1 << 8)
# define NV_PGRAPH_CTX_CONTROL_CHID (1 << 16)
# define NV_PGRAPH_CTX_CONTROL_CHANGE (1 << 20)
# define NV_PGRAPH_CTX_CONTROL_SWITCHING (1 << 24)
# define NV_PGRAPH_CTX_CONTROL_DEVICE (1 << 28)
#define NV_PGRAPH_CTX_USER 0x00000148
# define NV_PGRAPH_CTX_USER_CHANNEL_3D (1 << 0)
# define NV_PGRAPH_CTX_USER_CHANNEL_3D_VALID (1 << 4)
# define NV_PGRAPH_CTX_USER_SUBCH 0x0000E000
# define NV_PGRAPH_CTX_USER_CHID 0x1F000000
# define NV_PGRAPH_CTX_USER_SINGLE_STEP (1 << 31)
#define NV_PGRAPH_CTX_SWITCH1 0x0000014C
# define NV_PGRAPH_CTX_SWITCH1_GRCLASS 0x000000FF
# define NV_PGRAPH_CTX_SWITCH1_CHROMA_KEY (1 << 12)
# define NV_PGRAPH_CTX_SWITCH1_SWIZZLE (1 << 14)
# define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG 0x00038000
# define NV_PGRAPH_CTX_SWITCH1_SYNCHRONIZE (1 << 18)
# define NV_PGRAPH_CTX_SWITCH1_ENDIAN_MODE (1 << 19)
# define NV_PGRAPH_CTX_SWITCH1_CLASS_TYPE (1 << 22)
# define NV_PGRAPH_CTX_SWITCH1_SINGLE_STEP (1 << 23)
# define NV_PGRAPH_CTX_SWITCH1_PATCH_STATUS (1 << 24)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_SURFACE0 (1 << 25)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_SURFACE1 (1 << 26)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_PATTERN (1 << 27)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_ROP (1 << 28)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_BETA1 (1 << 29)
# define NV_PGRAPH_CTX_SWITCH1_CONTEXT_BETA4 (1 << 30)
# define NV_PGRAPH_CTX_SWITCH1_VOLATILE_RESET (1 << 31)
#define NV_PGRAPH_CTX_SWITCH2 0x00000150
#define NV_PGRAPH_CTX_SWITCH3 0x00000154
#define NV_PGRAPH_CTX_SWITCH4 0x00000158
# define NV_PGRAPH_CTX_SWITCH4_USER_INSTANCE 0x0000FFFF
#define NV_PGRAPH_CTX_SWITCH5 0x0000015C
#define NV_PGRAPH_CTX_CACHE1 0x00000160
#define NV_PGRAPH_CTX_CACHE2 0x00000180
#define NV_PGRAPH_CTX_CACHE3 0x000001A0
#define NV_PGRAPH_CTX_CACHE4 0x000001C0
#define NV_PGRAPH_CTX_CACHE5 0x000001E0
#define NV_PGRAPH_TRAPPED_ADDR 0x00000704
# define NV_PGRAPH_TRAPPED_ADDR_MTHD 0x00001FFF
# define NV_PGRAPH_TRAPPED_ADDR_SUBCH 0x00070000
# define NV_PGRAPH_TRAPPED_ADDR_CHID 0x01F00000
# define NV_PGRAPH_TRAPPED_ADDR_DHV 0x10000000
#define NV_PGRAPH_TRAPPED_DATA_LOW 0x00000708
#define NV_PGRAPH_SURFACE 0x00000710
# define NV_PGRAPH_SURFACE_WRITE_3D 0x00700000
# define NV_PGRAPH_SURFACE_READ_3D 0x07000000
# define NV_PGRAPH_SURFACE_MODULO_3D 0x70000000
#define NV_PGRAPH_INCREMENT 0x0000071C
# define NV_PGRAPH_INCREMENT_READ_BLIT (1 << 0)
# define NV_PGRAPH_INCREMENT_READ_3D (1 << 1)
#define NV_PGRAPH_FIFO 0x00000720
# define NV_PGRAPH_FIFO_ACCESS (1 << 0)
#define NV_PGRAPH_CHANNEL_CTX_TABLE 0x00000780
# define NV_PGRAPH_CHANNEL_CTX_TABLE_INST 0x0000FFFF
#define NV_PGRAPH_CHANNEL_CTX_POINTER 0x00000784
# define NV_PGRAPH_CHANNEL_CTX_POINTER_INST 0x0000FFFF
#define NV_PGRAPH_CHANNEL_CTX_TRIGGER 0x00000788
# define NV_PGRAPH_CHANNEL_CTX_TRIGGER_READ_IN (1 << 0)
# define NV_PGRAPH_CHANNEL_CTX_TRIGGER_WRITE_OUT (1 << 1)
#define NV_PGRAPH_PATT_COLOR0 0x00000B10
#define NV_PGRAPH_CSV0_D 0x00000FB4
# define NV_PGRAPH_CSV0_D_LIGHTS 0x0000FFFF
# define NV_PGRAPH_CSV0_D_LIGHT0 0x00000003
# define NV_PGRAPH_CSV0_D_LIGHT0_OFF 0
# define NV_PGRAPH_CSV0_D_LIGHT0_INFINITE 1
# define NV_PGRAPH_CSV0_D_LIGHT0_LOCAL 2
# define NV_PGRAPH_CSV0_D_LIGHT0_SPOT 3
# define NV_PGRAPH_CSV0_D_RANGE_MODE (1 << 18)
# define NV_PGRAPH_CSV0_D_FOGENABLE (1 << 19)
# define NV_PGRAPH_CSV0_D_TEXGEN_REF (1 << 20)
# define NV_PGRAPH_CSV0_D_TEXGEN_REF_LOCAL_VIEWER 0
# define NV_PGRAPH_CSV0_D_TEXGEN_REF_INFINITE_VIEWER 1
# define NV_PGRAPH_CSV0_D_FOG_MODE (1 << 21)
# define NV_PGRAPH_CSV0_D_FOG_MODE_LINEAR 0
# define NV_PGRAPH_CSV0_D_FOG_MODE_EXP 1
# define NV_PGRAPH_CSV0_D_FOGGENMODE 0x01C00000
# define NV_PGRAPH_CSV0_D_FOGGENMODE_SPEC_ALPHA 0
# define NV_PGRAPH_CSV0_D_FOGGENMODE_RADIAL 1
# define NV_PGRAPH_CSV0_D_FOGGENMODE_PLANAR 2
# define NV_PGRAPH_CSV0_D_FOGGENMODE_ABS_PLANAR 3
# define NV_PGRAPH_CSV0_D_FOGGENMODE_FOG_X 4
# define NV_PGRAPH_CSV0_D_MODE 0xC0000000
# define NV_PGRAPH_CSV0_D_SKIN 0x1C000000
# define NV_PGRAPH_CSV0_D_SKIN_OFF 0
# define NV_PGRAPH_CSV0_D_SKIN_2G 1
# define NV_PGRAPH_CSV0_D_SKIN_2 2
# define NV_PGRAPH_CSV0_D_SKIN_3G 3
# define NV_PGRAPH_CSV0_D_SKIN_3 4
# define NV_PGRAPH_CSV0_D_SKIN_4G 5
# define NV_PGRAPH_CSV0_D_SKIN_4 6
#define NV_PGRAPH_CSV0_C 0x00000FB8
# define NV_PGRAPH_CSV0_C_CHEOPS_PROGRAM_START 0x0000FF00
# define NV_PGRAPH_CSV0_C_NORMALIZATION_ENABLE (1 << 27)
# define NV_PGRAPH_CSV0_C_LIGHTING (1 << 31)
#define NV_PGRAPH_CSV1_B 0x00000FBC
#define NV_PGRAPH_CSV1_A 0x00000FC0
# define NV_PGRAPH_CSV1_A_T0_ENABLE (1 << 0)
# define NV_PGRAPH_CSV1_A_T0_MODE (1 << 1)
# define NV_PGRAPH_CSV1_A_T0_TEXTURE (1 << 2)
# define NV_PGRAPH_CSV1_A_T0_TEXTURE_2D 0
# define NV_PGRAPH_CSV1_A_T0_TEXTURE_3D 1
# define NV_PGRAPH_CSV1_A_T0_S 0x00000070
# define NV_PGRAPH_CSV1_A_T0_S_DISABLE 0
# define NV_PGRAPH_CSV1_A_T0_S_NORMAL_MAP 4
# define NV_PGRAPH_CSV1_A_T0_S_REFLECTION_MAP 5
# define NV_PGRAPH_CSV1_A_T0_S_EYE_LINEAR 1
# define NV_PGRAPH_CSV1_A_T0_S_OBJECT_LINEAR 2
# define NV_PGRAPH_CSV1_A_T0_S_SPHERE_MAP 3
# define NV_PGRAPH_CSV1_A_T0_T 0x00000380
# define NV_PGRAPH_CSV1_A_T0_R 0x00001C00
# define NV_PGRAPH_CSV1_A_T0_Q 0x0000E000
# define NV_PGRAPH_CSV1_A_T1_ENABLE (1 << 16)
# define NV_PGRAPH_CSV1_A_T1_MODE (1 << 17)
# define NV_PGRAPH_CSV1_A_T1_TEXTURE (1 << 18)
# define NV_PGRAPH_CSV1_A_T1_S 0x00700000
# define NV_PGRAPH_CSV1_A_T1_T 0x03800000
# define NV_PGRAPH_CSV1_A_T1_R 0x1C000000
# define NV_PGRAPH_CSV1_A_T1_Q 0xE0000000
#define NV_PGRAPH_CHEOPS_OFFSET 0x00000FC4
# define NV_PGRAPH_CHEOPS_OFFSET_PROG_LD_PTR 0x000000FF
# define NV_PGRAPH_CHEOPS_OFFSET_CONST_LD_PTR 0x0000FF00
#define NV_PGRAPH_DMA_STATE 0x00001034
#define NV_PGRAPH_BLEND 0x00001804
# define NV_PGRAPH_BLEND_EQN 0x00000007
# define NV_PGRAPH_BLEND_EN (1 << 3)
# define NV_PGRAPH_BLEND_SFACTOR 0x000000F0
# define NV_PGRAPH_BLEND_SFACTOR_ZERO 0
# define NV_PGRAPH_BLEND_SFACTOR_ONE 1
# define NV_PGRAPH_BLEND_SFACTOR_SRC_COLOR 2
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_SRC_COLOR 3
# define NV_PGRAPH_BLEND_SFACTOR_SRC_ALPHA 4
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_SRC_ALPHA 5
# define NV_PGRAPH_BLEND_SFACTOR_DST_ALPHA 6
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_DST_ALPHA 7
# define NV_PGRAPH_BLEND_SFACTOR_DST_COLOR 8
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_DST_COLOR 9
# define NV_PGRAPH_BLEND_SFACTOR_SRC_ALPHA_SATURATE 10
# define NV_PGRAPH_BLEND_SFACTOR_CONSTANT_COLOR 12
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_CONSTANT_COLOR 13
# define NV_PGRAPH_BLEND_SFACTOR_CONSTANT_ALPHA 14
# define NV_PGRAPH_BLEND_SFACTOR_ONE_MINUS_CONSTANT_ALPHA 15
# define NV_PGRAPH_BLEND_DFACTOR 0x00000F00
# define NV_PGRAPH_BLEND_DFACTOR_ZERO 0
# define NV_PGRAPH_BLEND_DFACTOR_ONE 1
# define NV_PGRAPH_BLEND_DFACTOR_SRC_COLOR 2
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_SRC_COLOR 3
# define NV_PGRAPH_BLEND_DFACTOR_SRC_ALPHA 4
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_SRC_ALPHA 5
# define NV_PGRAPH_BLEND_DFACTOR_DST_ALPHA 6
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_DST_ALPHA 7
# define NV_PGRAPH_BLEND_DFACTOR_DST_COLOR 8
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_DST_COLOR 9
# define NV_PGRAPH_BLEND_DFACTOR_SRC_ALPHA_SATURATE 10
# define NV_PGRAPH_BLEND_DFACTOR_CONSTANT_COLOR 12
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_CONSTANT_COLOR 13
# define NV_PGRAPH_BLEND_DFACTOR_CONSTANT_ALPHA 14
# define NV_PGRAPH_BLEND_DFACTOR_ONE_MINUS_CONSTANT_ALPHA 15
# define NV_PGRAPH_BLEND_LOGICOP_ENABLE (1 << 16)
# define NV_PGRAPH_BLEND_LOGICOP 0x0000F000
#define NV_PGRAPH_BLENDCOLOR 0x00001808
#define NV_PGRAPH_BORDERCOLOR0 0x0000180C
#define NV_PGRAPH_BORDERCOLOR1 0x00001810
#define NV_PGRAPH_BORDERCOLOR2 0x00001814
#define NV_PGRAPH_BORDERCOLOR3 0x00001818
#define NV_PGRAPH_BUMPOFFSET1 0x0000184C
#define NV_PGRAPH_BUMPSCALE1 0x00001858
#define NV_PGRAPH_CLEARRECTX 0x00001864
# define NV_PGRAPH_CLEARRECTX_XMIN 0x00000FFF
# define NV_PGRAPH_CLEARRECTX_XMAX 0x0FFF0000
#define NV_PGRAPH_CLEARRECTY 0x00001868
# define NV_PGRAPH_CLEARRECTY_YMIN 0x00000FFF
# define NV_PGRAPH_CLEARRECTY_YMAX 0x0FFF0000
#define NV_PGRAPH_COLORCLEARVALUE 0x0000186C
#define NV_PGRAPH_COMBINEFACTOR0 0x00001880
#define NV_PGRAPH_COMBINEFACTOR1 0x000018A0
#define NV_PGRAPH_COMBINEALPHAI0 0x000018C0
#define NV_PGRAPH_COMBINEALPHAO0 0x000018E0
#define NV_PGRAPH_COMBINECOLORI0 0x00001900
#define NV_PGRAPH_COMBINECOLORO0 0x00001920
#define NV_PGRAPH_COMBINECTL 0x00001940
#define NV_PGRAPH_COMBINESPECFOG0 0x00001944
#define NV_PGRAPH_COMBINESPECFOG1 0x00001948
#define NV_PGRAPH_CONTROL_0 0x0000194C
# define NV_PGRAPH_CONTROL_0_ALPHAREF 0x000000FF
# define NV_PGRAPH_CONTROL_0_ALPHAFUNC 0x00000F00
# define NV_PGRAPH_CONTROL_0_ALPHATESTENABLE (1 << 12)
# define NV_PGRAPH_CONTROL_0_ZENABLE (1 << 14)
# define NV_PGRAPH_CONTROL_0_ZFUNC 0x000F0000
# define NV_PGRAPH_CONTROL_0_ZFUNC_NEVER 0
# define NV_PGRAPH_CONTROL_0_ZFUNC_LESS 1
# define NV_PGRAPH_CONTROL_0_ZFUNC_EQUAL 2
# define NV_PGRAPH_CONTROL_0_ZFUNC_LEQUAL 3
# define NV_PGRAPH_CONTROL_0_ZFUNC_GREATER 4
# define NV_PGRAPH_CONTROL_0_ZFUNC_NOTEQUAL 5
# define NV_PGRAPH_CONTROL_0_ZFUNC_GEQUAL 6
# define NV_PGRAPH_CONTROL_0_ZFUNC_ALWAYS 7
# define NV_PGRAPH_CONTROL_0_DITHERENABLE (1 << 22)
# define NV_PGRAPH_CONTROL_0_Z_PERSPECTIVE_ENABLE (1 << 23)
# define NV_PGRAPH_CONTROL_0_ZWRITEENABLE (1 << 24)
# define NV_PGRAPH_CONTROL_0_STENCIL_WRITE_ENABLE (1 << 25)
# define NV_PGRAPH_CONTROL_0_ALPHA_WRITE_ENABLE (1 << 26)
# define NV_PGRAPH_CONTROL_0_RED_WRITE_ENABLE (1 << 27)
# define NV_PGRAPH_CONTROL_0_GREEN_WRITE_ENABLE (1 << 28)
# define NV_PGRAPH_CONTROL_0_BLUE_WRITE_ENABLE (1 << 29)
#define NV_PGRAPH_CONTROL_1 0x00001950
# define NV_PGRAPH_CONTROL_1_STENCIL_TEST_ENABLE (1 << 0)
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC 0x000000F0
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_NEVER 0
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_LESS 1
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_EQUAL 2
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_LEQUAL 3
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_GREATER 4
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_NOTEQUAL 5
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_GEQUAL 6
# define NV_PGRAPH_CONTROL_1_STENCIL_FUNC_ALWAYS 7
# define NV_PGRAPH_CONTROL_1_STENCIL_REF 0x0000FF00
# define NV_PGRAPH_CONTROL_1_STENCIL_MASK_READ 0x00FF0000
# define NV_PGRAPH_CONTROL_1_STENCIL_MASK_WRITE 0xFF000000
#define NV_PGRAPH_CONTROL_2 0x00001954
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_FAIL 0x0000000F
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_ZFAIL 0x000000F0
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_ZPASS 0x00000F00
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_KEEP 1
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_ZERO 2
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_REPLACE 3
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_INCRSAT 4
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_DECRSAT 5
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_INVERT 6
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_INCR 7
# define NV_PGRAPH_CONTROL_2_STENCIL_OP_V_DECR 8
#define NV_PGRAPH_CONTROL_3 0x00001958
# define NV_PGRAPH_CONTROL_3_FOGENABLE (1 << 8)
# define NV_PGRAPH_CONTROL_3_FOG_MODE 0x00070000
# define NV_PGRAPH_CONTROL_3_FOG_MODE_LINEAR 0
# define NV_PGRAPH_CONTROL_3_FOG_MODE_EXP 1
# define NV_PGRAPH_CONTROL_3_FOG_MODE_EXP2 3
# define NV_PGRAPH_CONTROL_3_FOG_MODE_EXP_ABS 5
# define NV_PGRAPH_CONTROL_3_FOG_MODE_EXP2_ABS 7
# define NV_PGRAPH_CONTROL_3_FOG_MODE_LINEAR_ABS 4
#define NV_PGRAPH_FOGCOLOR 0x00001980
# define NV_PGRAPH_FOGCOLOR_RED 0x00FF0000
# define NV_PGRAPH_FOGCOLOR_GREEN 0x0000FF00
# define NV_PGRAPH_FOGCOLOR_BLUE 0x000000FF
# define NV_PGRAPH_FOGCOLOR_ALPHA 0xFF000000
#define NV_PGRAPH_FOGPARAM0 0x00001984
#define NV_PGRAPH_FOGPARAM1 0x00001988
#define NV_PGRAPH_SETUPRASTER 0x00001990
# define NV_PGRAPH_SETUPRASTER_FRONTFACEMODE 0x00000003
# define NV_PGRAPH_SETUPRASTER_FRONTFACEMODE_FILL 0
# define NV_PGRAPH_SETUPRASTER_FRONTFACEMODE_POINT 1
# define NV_PGRAPH_SETUPRASTER_FRONTFACEMODE_LINE 2
# define NV_PGRAPH_SETUPRASTER_BACKFACEMODE 0x0000000C
# define NV_PGRAPH_SETUPRASTER_POFFSETPOINTENABLE (1 << 6)
# define NV_PGRAPH_SETUPRASTER_POFFSETLINEENABLE (1 << 7)
# define NV_PGRAPH_SETUPRASTER_POFFSETFILLENABLE (1 << 8)
# define NV_PGRAPH_SETUPRASTER_CULLCTRL 0x00600000
# define NV_PGRAPH_SETUPRASTER_CULLCTRL_FRONT 1
# define NV_PGRAPH_SETUPRASTER_CULLCTRL_BACK 2
# define NV_PGRAPH_SETUPRASTER_CULLCTRL_FRONT_AND_BACK 3
# define NV_PGRAPH_SETUPRASTER_FRONTFACE (1 << 23)
# define NV_PGRAPH_SETUPRASTER_CULLENABLE (1 << 28)
# define NV_PGRAPH_SETUPRASTER_Z_FORMAT (1 << 29)
# define NV_PGRAPH_SETUPRASTER_WINDOWCLIPTYPE (1 << 31)
#define NV_PGRAPH_SHADERCLIPMODE 0x00001994
#define NV_PGRAPH_SHADERCTL 0x00001998
#define NV_PGRAPH_SHADERPROG 0x0000199C
#define NV_PGRAPH_SEMAPHOREOFFSET 0x000019A0
#define NV_PGRAPH_SHADOWZSLOPETHRESHOLD 0x000019A8
#define NV_PGRAPH_SPECFOGFACTOR0 0x000019AC
#define NV_PGRAPH_SPECFOGFACTOR1 0x000019B0
#define NV_PGRAPH_TEXADDRESS0 0x000019BC
# define NV_PGRAPH_TEXADDRESS0_ADDRU 0x00000007
# define NV_PGRAPH_TEXADDRESS0_ADDRU_WRAP 1
# define NV_PGRAPH_TEXADDRESS0_ADDRU_MIRROR 2
# define NV_PGRAPH_TEXADDRESS0_ADDRU_CLAMP_TO_EDGE 3
# define NV_PGRAPH_TEXADDRESS0_ADDRU_BORDER 4
# define NV_PGRAPH_TEXADDRESS0_ADDRU_CLAMP_OGL 5
# define NV_PGRAPH_TEXADDRESS0_WRAP_U (1 << 4)
# define NV_PGRAPH_TEXADDRESS0_ADDRV 0x00000700
# define NV_PGRAPH_TEXADDRESS0_WRAP_V (1 << 12)
# define NV_PGRAPH_TEXADDRESS0_ADDRP 0x00070000
# define NV_PGRAPH_TEXADDRESS0_WRAP_P (1 << 20)
# define NV_PGRAPH_TEXADDRESS0_WRAP_Q (1 << 24)
#define NV_PGRAPH_TEXADDRESS1 0x000019C0
#define NV_PGRAPH_TEXADDRESS2 0x000019C4
#define NV_PGRAPH_TEXADDRESS3 0x000019C8
#define NV_PGRAPH_TEXCTL0_0 0x000019CC
# define NV_PGRAPH_TEXCTL0_0_ALPHAKILLEN (1 << 2)
# define NV_PGRAPH_TEXCTL0_0_MAX_LOD_CLAMP 0x0003FFC0
# define NV_PGRAPH_TEXCTL0_0_MIN_LOD_CLAMP 0x3FFC0000
# define NV_PGRAPH_TEXCTL0_0_ENABLE (1 << 30)
#define NV_PGRAPH_TEXCTL0_1 0x000019D0
#define NV_PGRAPH_TEXCTL0_2 0x000019D4
#define NV_PGRAPH_TEXCTL0_3 0x000019D8
#define NV_PGRAPH_TEXCTL1_0 0x000019DC
# define NV_PGRAPH_TEXCTL1_0_IMAGE_PITCH 0xFFFF0000
#define NV_PGRAPH_TEXCTL1_1 0x000019E0
#define NV_PGRAPH_TEXCTL1_2 0x000019E4
#define NV_PGRAPH_TEXCTL1_3 0x000019E8
#define NV_PGRAPH_TEXCTL2_0 0x000019EC
#define NV_PGRAPH_TEXCTL2_1 0x000019F0
#define NV_PGRAPH_TEXFILTER0 0x000019F4
# define NV_PGRAPH_TEXFILTER0_MIPMAP_LOD_BIAS 0x00001FFF
# define NV_PGRAPH_TEXFILTER0_MIN 0x003F0000
# define NV_PGRAPH_TEXFILTER0_MIN_BOX_LOD0 1
# define NV_PGRAPH_TEXFILTER0_MIN_TENT_LOD0 2
# define NV_PGRAPH_TEXFILTER0_MIN_BOX_NEARESTLOD 3
# define NV_PGRAPH_TEXFILTER0_MIN_TENT_NEARESTLOD 4
# define NV_PGRAPH_TEXFILTER0_MIN_BOX_TENT_LOD 5
# define NV_PGRAPH_TEXFILTER0_MIN_TENT_TENT_LOD 6
# define NV_PGRAPH_TEXFILTER0_MIN_CONVOLUTION_2D_LOD0 7
# define NV_PGRAPH_TEXFILTER0_MAG 0x0F000000
# define NV_PGRAPH_TEXFILTER0_ASIGNED (1 << 28)
# define NV_PGRAPH_TEXFILTER0_RSIGNED (1 << 29)
# define NV_PGRAPH_TEXFILTER0_GSIGNED (1 << 30)
# define NV_PGRAPH_TEXFILTER0_BSIGNED (1 << 31)
#define NV_PGRAPH_TEXFILTER1 0x000019F8
#define NV_PGRAPH_TEXFILTER2 0x000019FC
#define NV_PGRAPH_TEXFILTER3 0x00001A00
#define NV_PGRAPH_TEXFMT0 0x00001A04
# define NV_PGRAPH_TEXFMT0_CONTEXT_DMA (1 << 1)
# define NV_PGRAPH_TEXFMT0_CUBEMAPENABLE (1 << 2)
# define NV_PGRAPH_TEXFMT0_BORDER_SOURCE (1 << 3)
# define NV_PGRAPH_TEXFMT0_BORDER_SOURCE_TEXTURE 0
# define NV_PGRAPH_TEXFMT0_BORDER_SOURCE_COLOR 1
# define NV_PGRAPH_TEXFMT0_DIMENSIONALITY 0x000000C0
# define NV_PGRAPH_TEXFMT0_COLOR 0x00007F00
# define NV_PGRAPH_TEXFMT0_MIPMAP_LEVELS 0x000F0000
# define NV_PGRAPH_TEXFMT0_BASE_SIZE_U 0x00F00000
# define NV_PGRAPH_TEXFMT0_BASE_SIZE_V 0x0F000000
# define NV_PGRAPH_TEXFMT0_BASE_SIZE_P 0xF0000000
#define NV_PGRAPH_TEXFMT1 0x00001A08
#define NV_PGRAPH_TEXFMT2 0x00001A0C
#define NV_PGRAPH_TEXFMT3 0x00001A10
#define NV_PGRAPH_TEXIMAGERECT0 0x00001A14
# define NV_PGRAPH_TEXIMAGERECT0_WIDTH 0x1FFF0000
# define NV_PGRAPH_TEXIMAGERECT0_HEIGHT 0x00001FFF
#define NV_PGRAPH_TEXIMAGERECT1 0x00001A18
#define NV_PGRAPH_TEXIMAGERECT2 0x00001A1C
#define NV_PGRAPH_TEXIMAGERECT3 0x00001A20
#define NV_PGRAPH_TEXOFFSET0 0x00001A24
#define NV_PGRAPH_TEXOFFSET1 0x00001A28
#define NV_PGRAPH_TEXOFFSET2 0x00001A2C
#define NV_PGRAPH_TEXOFFSET3 0x00001A30
#define NV_PGRAPH_TEXPALETTE0 0x00001A34
# define NV_PGRAPH_TEXPALETTE0_CONTEXT_DMA (1 << 0)
# define NV_PGRAPH_TEXPALETTE0_LENGTH 0x0000000C
# define NV_PGRAPH_TEXPALETTE0_LENGTH_256 0
# define NV_PGRAPH_TEXPALETTE0_LENGTH_128 1
# define NV_PGRAPH_TEXPALETTE0_LENGTH_64 2
# define NV_PGRAPH_TEXPALETTE0_LENGTH_32 3
# define NV_PGRAPH_TEXPALETTE0_OFFSET 0xFFFFFFC0
#define NV_PGRAPH_TEXPALETTE1 0x00001A38
#define NV_PGRAPH_TEXPALETTE2 0x00001A3C
#define NV_PGRAPH_TEXPALETTE3 0x00001A40
#define NV_PGRAPH_WINDOWCLIPX0 0x00001A44
# define NV_PGRAPH_WINDOWCLIPX0_XMIN 0x00000FFF
# define NV_PGRAPH_WINDOWCLIPX0_XMAX 0x0FFF0000
#define NV_PGRAPH_WINDOWCLIPX1 0x00001A48
#define NV_PGRAPH_WINDOWCLIPX2 0x00001A4C
#define NV_PGRAPH_WINDOWCLIPX3 0x00001A50
#define NV_PGRAPH_WINDOWCLIPX4 0x00001A54
#define NV_PGRAPH_WINDOWCLIPX5 0x00001A58
#define NV_PGRAPH_WINDOWCLIPX6 0x00001A5C
#define NV_PGRAPH_WINDOWCLIPX7 0x00001A60
#define NV_PGRAPH_WINDOWCLIPY0 0x00001A64
# define NV_PGRAPH_WINDOWCLIPY0_YMIN 0x00000FFF
# define NV_PGRAPH_WINDOWCLIPY0_YMAX 0x0FFF0000
#define NV_PGRAPH_WINDOWCLIPY1 0x00001A68
#define NV_PGRAPH_WINDOWCLIPY2 0x00001A6C
#define NV_PGRAPH_WINDOWCLIPY3 0x00001A70
#define NV_PGRAPH_WINDOWCLIPY4 0x00001A74
#define NV_PGRAPH_WINDOWCLIPY5 0x00001A78
#define NV_PGRAPH_WINDOWCLIPY6 0x00001A7C
#define NV_PGRAPH_WINDOWCLIPY7 0x00001A80
#define NV_PGRAPH_ZSTENCILCLEARVALUE 0x00001A88
#define NV_PGRAPH_ZCLIPMIN 0x00001A90
#define NV_PGRAPH_ZOFFSETBIAS 0x00001AA4
#define NV_PGRAPH_ZOFFSETFACTOR 0x00001AA8
#define NV_PGRAPH_EYEVEC0 0x00001AAC
#define NV_PGRAPH_EYEVEC1 0x00001AB0
#define NV_PGRAPH_EYEVEC2 0x00001AB4
#define NV_PGRAPH_ZCLIPMAX 0x00001ABC
#define NV_PCRTC_INTR_0 0x00000100
# define NV_PCRTC_INTR_0_VBLANK (1 << 0)
#define NV_PCRTC_INTR_EN_0 0x00000140
# define NV_PCRTC_INTR_EN_0_VBLANK (1 << 0)
#define NV_PCRTC_START 0x00000800
#define NV_PCRTC_CONFIG 0x00000804
#define NV_PVIDEO_INTR 0x00000100
# define NV_PVIDEO_INTR_BUFFER_0 (1 << 0)
# define NV_PVIDEO_INTR_BUFFER_1 (1 << 4)
#define NV_PVIDEO_INTR_EN 0x00000140
# define NV_PVIDEO_INTR_EN_BUFFER_0 (1 << 0)
# define NV_PVIDEO_INTR_EN_BUFFER_1 (1 << 4)
#define NV_PVIDEO_BUFFER 0x00000700
# define NV_PVIDEO_BUFFER_0_USE (1 << 0)
# define NV_PVIDEO_BUFFER_1_USE (1 << 4)
#define NV_PVIDEO_STOP 0x00000704
#define NV_PVIDEO_BASE 0x00000900
#define NV_PVIDEO_LIMIT 0x00000908
#define NV_PVIDEO_LUMINANCE 0x00000910
#define NV_PVIDEO_CHROMINANCE 0x00000918
#define NV_PVIDEO_OFFSET 0x00000920
#define NV_PVIDEO_SIZE_IN 0x00000928
# define NV_PVIDEO_SIZE_IN_WIDTH 0x000007FF
# define NV_PVIDEO_SIZE_IN_HEIGHT 0x07FF0000
#define NV_PVIDEO_POINT_IN 0x00000930
# define NV_PVIDEO_POINT_IN_S 0x00007FFF
# define NV_PVIDEO_POINT_IN_T 0xFFFE0000
#define NV_PVIDEO_DS_DX 0x00000938
#define NV_PVIDEO_DT_DY 0x00000940
#define NV_PVIDEO_POINT_OUT 0x00000948
# define NV_PVIDEO_POINT_OUT_X 0x00000FFF
# define NV_PVIDEO_POINT_OUT_Y 0x0FFF0000
#define NV_PVIDEO_SIZE_OUT 0x00000950
# define NV_PVIDEO_SIZE_OUT_WIDTH 0x00000FFF
# define NV_PVIDEO_SIZE_OUT_HEIGHT 0x0FFF0000
#define NV_PVIDEO_FORMAT 0x00000958
# define NV_PVIDEO_FORMAT_PITCH 0x00001FFF
# define NV_PVIDEO_FORMAT_COLOR 0x00030000
# define NV_PVIDEO_FORMAT_COLOR_LE_CR8YB8CB8YA8 1
# define NV_PVIDEO_FORMAT_DISPLAY (1 << 20)
#define NV_PTIMER_INTR_0 0x00000100
# define NV_PTIMER_INTR_0_ALARM (1 << 0)
#define NV_PTIMER_INTR_EN_0 0x00000140
# define NV_PTIMER_INTR_EN_0_ALARM (1 << 0)
#define NV_PTIMER_NUMERATOR 0x00000200
#define NV_PTIMER_DENOMINATOR 0x00000210
#define NV_PTIMER_TIME_0 0x00000400
#define NV_PTIMER_TIME_1 0x00000410
#define NV_PTIMER_ALARM_0 0x00000420
#define NV_PFB_CFG0 0x00000200
# define NV_PFB_CFG0_PART 0x00000003
#define NV_PFB_CSTATUS 0x0000020C
#define NV_PFB_WBC 0x00000410
# define NV_PFB_WBC_FLUSH (1 << 16)
#define NV_PRAMDAC_NVPLL_COEFF 0x00000500
# define NV_PRAMDAC_NVPLL_COEFF_MDIV 0x000000FF
# define NV_PRAMDAC_NVPLL_COEFF_NDIV 0x0000FF00
# define NV_PRAMDAC_NVPLL_COEFF_PDIV 0x00070000
#define NV_PRAMDAC_MPLL_COEFF 0x00000504
# define NV_PRAMDAC_MPLL_COEFF_MDIV 0x000000FF
# define NV_PRAMDAC_MPLL_COEFF_NDIV 0x0000FF00
# define NV_PRAMDAC_MPLL_COEFF_PDIV 0x00070000
#define NV_PRAMDAC_VPLL_COEFF 0x00000508
# define NV_PRAMDAC_VPLL_COEFF_MDIV 0x000000FF
# define NV_PRAMDAC_VPLL_COEFF_NDIV 0x0000FF00
# define NV_PRAMDAC_VPLL_COEFF_PDIV 0x00070000
#define NV_PRAMDAC_PLL_TEST_COUNTER 0x00000514
# define NV_PRAMDAC_PLL_TEST_COUNTER_NOOFIPCLKS 0x000003FF
# define NV_PRAMDAC_PLL_TEST_COUNTER_VALUE 0x0000FFFF
# define NV_PRAMDAC_PLL_TEST_COUNTER_ENABLE (1 << 16)
# define NV_PRAMDAC_PLL_TEST_COUNTER_RESET (1 << 20)
# define NV_PRAMDAC_PLL_TEST_COUNTER_SOURCE 0x03000000
# define NV_PRAMDAC_PLL_TEST_COUNTER_VPLL2_LOCK (1 << 27)
# define NV_PRAMDAC_PLL_TEST_COUNTER_PDIV_RST (1 << 28)
# define NV_PRAMDAC_PLL_TEST_COUNTER_NVPLL_LOCK (1 << 29)
# define NV_PRAMDAC_PLL_TEST_COUNTER_MPLL_LOCK (1 << 30)
# define NV_PRAMDAC_PLL_TEST_COUNTER_VPLL_LOCK (1 << 31)
#define NV_PRAMDAC_GENERAL_CONTROL 0x00000600
# define NV_PRAMDAC_GENERAL_CONTROL_ALT_MODE (1 << 12)
#define NV_USER_DMA_PUT 0x40
#define NV_USER_DMA_GET 0x44
#define NV_USER_REF 0x48
/* DMA objects */
#define NV_DMA_FROM_MEMORY_CLASS 0x02
#define NV_DMA_TO_MEMORY_CLASS 0x03
#define NV_DMA_IN_MEMORY_CLASS 0x3d
#define NV_DMA_CLASS 0x00000FFF
#define NV_DMA_PAGE_TABLE (1 << 12)
#define NV_DMA_PAGE_ENTRY (1 << 13)
#define NV_DMA_FLAGS_ACCESS (1 << 14)
#define NV_DMA_FLAGS_MAPPING_COHERENCY (1 << 15)
#define NV_DMA_TARGET 0x00030000
# define NV_DMA_TARGET_NVM 0x00000000
# define NV_DMA_TARGET_NVM_TILED 0x00010000
# define NV_DMA_TARGET_PCI 0x00020000
# define NV_DMA_TARGET_AGP 0x00030000
#define NV_DMA_ADJUST 0xFFF00000
#define NV_DMA_ADDRESS 0xFFFFF000
#define NV_RAMHT_HANDLE 0xFFFFFFFF
#define NV_RAMHT_INSTANCE 0x0000FFFF
#define NV_RAMHT_ENGINE 0x00030000
# define NV_RAMHT_ENGINE_SW 0x00000000
# define NV_RAMHT_ENGINE_GRAPHICS 0x00010000
# define NV_RAMHT_ENGINE_DVD 0x00020000
#define NV_RAMHT_CHID 0x1F000000
#define NV_RAMHT_STATUS 0x80000000
/* graphic classes and methods */
#define NV_SET_OBJECT 0x00000000
#define NV_MEMORY_TO_MEMORY_FORMAT 0x0039
#define NV_CONTEXT_PATTERN 0x0044
# define NV044_SET_MONOCHROME_COLOR0 0x00000310
#define NV_CONTEXT_SURFACES_2D 0x0062
# define NV062_SET_OBJECT 0x00000000
# define NV062_SET_CONTEXT_DMA_IMAGE_SOURCE 0x00000184
# define NV062_SET_CONTEXT_DMA_IMAGE_DESTIN 0x00000188
# define NV062_SET_COLOR_FORMAT 0x00000300
# define NV062_SET_COLOR_FORMAT_LE_Y8 0x01
# define NV062_SET_COLOR_FORMAT_LE_R5G6B5 0x04
# define NV062_SET_COLOR_FORMAT_LE_A8R8G8B8 0x0A
# define NV062_SET_PITCH 0x00000304
# define NV062_SET_OFFSET_SOURCE 0x00000308
# define NV062_SET_OFFSET_DESTIN 0x0000030C
#define NV_IMAGE_BLIT 0x009F
# define NV09F_SET_OBJECT 0x00000000
# define NV09F_SET_CONTEXT_SURFACES 0x0000019C
# define NV09F_SET_OPERATION 0x000002FC
# define NV09F_SET_OPERATION_SRCCOPY 3
# define NV09F_CONTROL_POINT_IN 0x00000300
# define NV09F_CONTROL_POINT_OUT 0x00000304
# define NV09F_SIZE 0x00000308
#define NV_KELVIN_PRIMITIVE 0x0097
# define NV097_SET_OBJECT 0x00000000
# define NV097_NO_OPERATION 0x00000100
# define NV097_WAIT_FOR_IDLE 0x00000110
# define NV097_SET_FLIP_READ 0x00000120
# define NV097_SET_FLIP_WRITE 0x00000124
# define NV097_SET_FLIP_MODULO 0x00000128
# define NV097_FLIP_INCREMENT_WRITE 0x0000012C
# define NV097_FLIP_STALL 0x00000130
# define NV097_SET_CONTEXT_DMA_NOTIFIES 0x00000180
# define NV097_SET_CONTEXT_DMA_A 0x00000184
# define NV097_SET_CONTEXT_DMA_B 0x00000188
# define NV097_SET_CONTEXT_DMA_STATE 0x00000190
# define NV097_SET_CONTEXT_DMA_COLOR 0x00000194
# define NV097_SET_CONTEXT_DMA_ZETA 0x00000198
# define NV097_SET_CONTEXT_DMA_VERTEX_A 0x0000019C
# define NV097_SET_CONTEXT_DMA_VERTEX_B 0x000001A0
# define NV097_SET_CONTEXT_DMA_SEMAPHORE 0x000001A4
# define NV097_SET_CONTEXT_DMA_REPORT 0x000001A8
# define NV097_SET_SURFACE_CLIP_HORIZONTAL 0x00000200
# define NV097_SET_SURFACE_CLIP_HORIZONTAL_X 0x0000FFFF
# define NV097_SET_SURFACE_CLIP_HORIZONTAL_WIDTH 0xFFFF0000
# define NV097_SET_SURFACE_CLIP_VERTICAL 0x00000204
# define NV097_SET_SURFACE_CLIP_VERTICAL_Y 0x0000FFFF
# define NV097_SET_SURFACE_CLIP_VERTICAL_HEIGHT 0xFFFF0000
# define NV097_SET_SURFACE_FORMAT 0x00000208
# define NV097_SET_SURFACE_FORMAT_COLOR 0x0000000F
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X1R5G5B5_Z1R5G5B5 0x01
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X1R5G5B5_O1R5G5B5 0x02
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_R5G6B5 0x03
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X8R8G8B8_Z8R8G8B8 0x04
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X8R8G8B8_O8R8G8B8 0x05
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X1A7R8G8B8_Z1A7R8G8B8 0x06
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_X1A7R8G8B8_O1A7R8G8B8 0x07
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_A8R8G8B8 0x08
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_B8 0x09
# define NV097_SET_SURFACE_FORMAT_COLOR_LE_G8B8 0x0A
# define NV097_SET_SURFACE_FORMAT_ZETA 0x000000F0
# define NV097_SET_SURFACE_FORMAT_ZETA_Z16 1
# define NV097_SET_SURFACE_FORMAT_ZETA_Z24S8 2
# define NV097_SET_SURFACE_FORMAT_TYPE 0x00000F00
# define NV097_SET_SURFACE_FORMAT_TYPE_PITCH 0x1
# define NV097_SET_SURFACE_FORMAT_TYPE_SWIZZLE 0x2
# define NV097_SET_SURFACE_FORMAT_ANTI_ALIASING 0x0000F000
# define NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_1 0
# define NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_CORNER_2 1
# define NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_SQUARE_OFFSET_4 2
# define NV097_SET_SURFACE_FORMAT_WIDTH 0x00FF0000
# define NV097_SET_SURFACE_FORMAT_HEIGHT 0xFF000000
# define NV097_SET_SURFACE_PITCH 0x0000020C
# define NV097_SET_SURFACE_PITCH_COLOR 0x0000FFFF
# define NV097_SET_SURFACE_PITCH_ZETA 0xFFFF0000
# define NV097_SET_SURFACE_COLOR_OFFSET 0x00000210
# define NV097_SET_SURFACE_ZETA_OFFSET 0x00000214
# define NV097_SET_COMBINER_ALPHA_ICW 0x00000260
# define NV097_SET_COMBINER_SPECULAR_FOG_CW0 0x00000288
# define NV097_SET_COMBINER_SPECULAR_FOG_CW1 0x0000028C
# define NV097_SET_CONTROL0 0x00000290
# define NV097_SET_CONTROL0_STENCIL_WRITE_ENABLE (1 << 0)
# define NV097_SET_CONTROL0_Z_FORMAT (1 << 12)
# define NV097_SET_CONTROL0_Z_PERSPECTIVE_ENABLE (1 << 16)
# define NV097_SET_CONTROL0_TEXTUREPERSPECTIVE (1 << 20)
# define NV097_SET_FOG_MODE 0x0000029C
# define NV097_SET_FOG_MODE_V_LINEAR 0x2601
# define NV097_SET_FOG_MODE_V_EXP 0x800
# define NV097_SET_FOG_MODE_V_EXP2 0x801
# define NV097_SET_FOG_MODE_V_EXP_ABS 0x802
# define NV097_SET_FOG_MODE_V_EXP2_ABS 0x803
# define NV097_SET_FOG_MODE_V_LINEAR_ABS 0x804
# define NV097_SET_FOG_GEN_MODE 0x000002A0
# define NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA 0
# define NV097_SET_FOG_GEN_MODE_V_RADIAL 1
# define NV097_SET_FOG_GEN_MODE_V_PLANAR 2
# define NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR 3
# define NV097_SET_FOG_GEN_MODE_V_FOG_X 6
# define NV097_SET_FOG_ENABLE 0x000002A4
# define NV097_SET_FOG_COLOR 0x000002A8
# define NV097_SET_FOG_COLOR_RED 0x000000FF
# define NV097_SET_FOG_COLOR_GREEN 0x0000FF00
# define NV097_SET_FOG_COLOR_BLUE 0x00FF0000
# define NV097_SET_FOG_COLOR_ALPHA 0xFF000000
# define NV097_SET_WINDOW_CLIP_TYPE 0x000002B4
# define NV097_SET_WINDOW_CLIP_HORIZONTAL 0x000002C0
# define NV097_SET_WINDOW_CLIP_HORIZONTAL_XMIN 0x00000FFF
# define NV097_SET_WINDOW_CLIP_HORIZONTAL_XMAX 0x0FFF0000
# define NV097_SET_WINDOW_CLIP_VERTICAL 0x000002E0
# define NV097_SET_ALPHA_TEST_ENABLE 0x00000300
# define NV097_SET_BLEND_ENABLE 0x00000304
# define NV097_SET_CULL_FACE_ENABLE 0x00000308
# define NV097_SET_DEPTH_TEST_ENABLE 0x0000030C
# define NV097_SET_DITHER_ENABLE 0x00000310
# define NV097_SET_LIGHTING_ENABLE 0x00000314
# define NV097_SET_SKIN_MODE 0x00000328
# define NV097_SET_SKIN_MODE_OFF 0
# define NV097_SET_SKIN_MODE_2G 1
# define NV097_SET_SKIN_MODE_2 2
# define NV097_SET_SKIN_MODE_3G 3
# define NV097_SET_SKIN_MODE_3 4
# define NV097_SET_SKIN_MODE_4G 5
# define NV097_SET_SKIN_MODE_4 6
# define NV097_SET_STENCIL_TEST_ENABLE 0x0000032C
# define NV097_SET_POLY_OFFSET_POINT_ENABLE 0x00000330
# define NV097_SET_POLY_OFFSET_LINE_ENABLE 0x00000334
# define NV097_SET_POLY_OFFSET_FILL_ENABLE 0x00000338
# define NV097_SET_ALPHA_FUNC 0x0000033C
# define NV097_SET_ALPHA_REF 0x00000340
# define NV097_SET_BLEND_FUNC_SFACTOR 0x00000344
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ZERO 0x0000
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE 0x0001
# define NV097_SET_BLEND_FUNC_SFACTOR_V_SRC_COLOR 0x0300
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_SRC_COLOR 0x0301
# define NV097_SET_BLEND_FUNC_SFACTOR_V_SRC_ALPHA 0x0302
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_SRC_ALPHA 0x0303
# define NV097_SET_BLEND_FUNC_SFACTOR_V_DST_ALPHA 0x0304
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_DST_ALPHA 0x0305
# define NV097_SET_BLEND_FUNC_SFACTOR_V_DST_COLOR 0x0306
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_DST_COLOR 0x0307
# define NV097_SET_BLEND_FUNC_SFACTOR_V_SRC_ALPHA_SATURATE 0x0308
# define NV097_SET_BLEND_FUNC_SFACTOR_V_CONSTANT_COLOR 0x8001
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_CONSTANT_COLOR 0x8002
# define NV097_SET_BLEND_FUNC_SFACTOR_V_CONSTANT_ALPHA 0x8003
# define NV097_SET_BLEND_FUNC_SFACTOR_V_ONE_MINUS_CONSTANT_ALPHA 0x8004
# define NV097_SET_BLEND_FUNC_DFACTOR 0x00000348
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ZERO 0x0000
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE 0x0001
# define NV097_SET_BLEND_FUNC_DFACTOR_V_SRC_COLOR 0x0300
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_SRC_COLOR 0x0301
# define NV097_SET_BLEND_FUNC_DFACTOR_V_SRC_ALPHA 0x0302
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_SRC_ALPHA 0x0303
# define NV097_SET_BLEND_FUNC_DFACTOR_V_DST_ALPHA 0x0304
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_DST_ALPHA 0x0305
# define NV097_SET_BLEND_FUNC_DFACTOR_V_DST_COLOR 0x0306
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_DST_COLOR 0x0307
# define NV097_SET_BLEND_FUNC_DFACTOR_V_SRC_ALPHA_SATURATE 0x0308
# define NV097_SET_BLEND_FUNC_DFACTOR_V_CONSTANT_COLOR 0x8001
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_CONSTANT_COLOR 0x8002
# define NV097_SET_BLEND_FUNC_DFACTOR_V_CONSTANT_ALPHA 0x8003
# define NV097_SET_BLEND_FUNC_DFACTOR_V_ONE_MINUS_CONSTANT_ALPHA 0x8004
# define NV097_SET_BLEND_COLOR 0x0000034C
# define NV097_SET_BLEND_EQUATION 0x00000350
# define NV097_SET_BLEND_EQUATION_V_FUNC_SUBTRACT 0x800A
# define NV097_SET_BLEND_EQUATION_V_FUNC_REVERSE_SUBTRACT 0x800B
# define NV097_SET_BLEND_EQUATION_V_FUNC_ADD 0x8006
# define NV097_SET_BLEND_EQUATION_V_MIN 0x8007
# define NV097_SET_BLEND_EQUATION_V_MAX 0x8008
# define NV097_SET_BLEND_EQUATION_V_FUNC_REVERSE_SUBTRACT_SIGNED 0xF005
# define NV097_SET_BLEND_EQUATION_V_FUNC_ADD_SIGNED 0xF006
# define NV097_SET_DEPTH_FUNC 0x00000354
# define NV097_SET_COLOR_MASK 0x00000358
# define NV097_SET_COLOR_MASK_BLUE_WRITE_ENABLE (1 << 0)
# define NV097_SET_COLOR_MASK_GREEN_WRITE_ENABLE (1 << 8)
# define NV097_SET_COLOR_MASK_RED_WRITE_ENABLE (1 << 16)
# define NV097_SET_COLOR_MASK_ALPHA_WRITE_ENABLE (1 << 24)
# define NV097_SET_DEPTH_MASK 0x0000035C
# define NV097_SET_STENCIL_MASK 0x00000360
# define NV097_SET_STENCIL_FUNC 0x00000364
# define NV097_SET_STENCIL_FUNC_REF 0x00000368
# define NV097_SET_STENCIL_FUNC_MASK 0x0000036C
# define NV097_SET_STENCIL_OP_FAIL 0x00000370
# define NV097_SET_STENCIL_OP_ZFAIL 0x00000374
# define NV097_SET_STENCIL_OP_ZPASS 0x00000378
# define NV097_SET_STENCIL_OP_V_KEEP 0x1E00
# define NV097_SET_STENCIL_OP_V_ZERO 0x0000
# define NV097_SET_STENCIL_OP_V_REPLACE 0x1E01
# define NV097_SET_STENCIL_OP_V_INCRSAT 0x1E02
# define NV097_SET_STENCIL_OP_V_DECRSAT 0x1E03
# define NV097_SET_STENCIL_OP_V_INVERT 0x150A
# define NV097_SET_STENCIL_OP_V_INCR 0x8507
# define NV097_SET_STENCIL_OP_V_DECR 0x8508
# define NV097_SET_POLYGON_OFFSET_SCALE_FACTOR 0x00000384
# define NV097_SET_POLYGON_OFFSET_BIAS 0x00000388
# define NV097_SET_FRONT_POLYGON_MODE 0x0000038C
# define NV097_SET_FRONT_POLYGON_MODE_V_POINT 0x1B00
# define NV097_SET_FRONT_POLYGON_MODE_V_LINE 0x1B01
# define NV097_SET_FRONT_POLYGON_MODE_V_FILL 0x1B02
# define NV097_SET_BACK_POLYGON_MODE 0x00000390
# define NV097_SET_CLIP_MIN 0x00000394
# define NV097_SET_CLIP_MAX 0x00000398
# define NV097_SET_CULL_FACE 0x0000039C
# define NV097_SET_CULL_FACE_V_FRONT 0x404
# define NV097_SET_CULL_FACE_V_BACK 0x405
# define NV097_SET_CULL_FACE_V_FRONT_AND_BACK 0x408
# define NV097_SET_FRONT_FACE 0x000003A0
# define NV097_SET_FRONT_FACE_V_CW 0x900
# define NV097_SET_FRONT_FACE_V_CCW 0x901
# define NV097_SET_NORMALIZATION_ENABLE 0x000003A4
# define NV097_SET_MATERIAL_EMISSION 0x000003A8
# define NV097_SET_MATERIAL_ALPHA 0x000003B4
# define NV097_SET_SPECULAR_ENABLE 0x000003B8
# define NV097_SET_LIGHT_ENABLE_MASK 0x000003BC
# define NV097_SET_LIGHT_ENABLE_MASK_LIGHT0_OFF 0
# define NV097_SET_LIGHT_ENABLE_MASK_LIGHT0_INFINITE 1
# define NV097_SET_LIGHT_ENABLE_MASK_LIGHT0_LOCAL 2
# define NV097_SET_LIGHT_ENABLE_MASK_LIGHT0_SPOT 3
# define NV097_SET_TEXGEN_S 0x000003C0
# define NV097_SET_TEXGEN_S_DISABLE 0x0000
# define NV097_SET_TEXGEN_S_EYE_LINEAR 0x2400
# define NV097_SET_TEXGEN_S_OBJECT_LINEAR 0x2401
# define NV097_SET_TEXGEN_S_SPHERE_MAP 0x2402
# define NV097_SET_TEXGEN_S_REFLECTION_MAP 0x8512
# define NV097_SET_TEXGEN_S_NORMAL_MAP 0x8511
# define NV097_SET_TEXGEN_T 0x000003C4
# define NV097_SET_TEXGEN_R 0x000003C8
# define NV097_SET_TEXGEN_Q 0x000003CC
# define NV097_SET_TEXTURE_MATRIX_ENABLE 0x00000420
# define NV097_SET_PROJECTION_MATRIX 0x00000440
# define NV097_SET_MODEL_VIEW_MATRIX 0x00000480
# define NV097_SET_INVERSE_MODEL_VIEW_MATRIX 0x00000580
# define NV097_SET_COMPOSITE_MATRIX 0x00000680
# define NV097_SET_TEXTURE_MATRIX 0x000006C0
# define NV097_SET_FOG_PARAMS 0x000009C0
# define NV097_SET_TEXGEN_PLANE_S 0x00000840
# define NV097_SET_TEXGEN_PLANE_T 0x00000850
# define NV097_SET_TEXGEN_PLANE_R 0x00000860
# define NV097_SET_TEXGEN_PLANE_Q 0x00000870
# define NV097_SET_SPECULAR_PARAMS 0x000009E0
# define NV097_SET_TEXGEN_VIEW_MODEL 0x000009CC
# define NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER 0
# define NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER 1
# define NV097_SET_FOG_PLANE 0x000009D0
# define NV097_SET_SCENE_AMBIENT_COLOR 0x00000A10
# define NV097_SET_VIEWPORT_OFFSET 0x00000A20
# define NV097_SET_EYE_POSITION 0x00000A50
# define NV097_SET_COMBINER_FACTOR0 0x00000A60
# define NV097_SET_COMBINER_FACTOR1 0x00000A80
# define NV097_SET_COMBINER_ALPHA_OCW 0x00000AA0
# define NV097_SET_COMBINER_COLOR_ICW 0x00000AC0
# define NV097_SET_VIEWPORT_SCALE 0x00000AF0
# define NV097_SET_TRANSFORM_PROGRAM 0x00000B00
# define NV097_SET_TRANSFORM_CONSTANT 0x00000B80
# define NV097_SET_VERTEX3F 0x00001500
# define NV097_SET_BACK_LIGHT_AMBIENT_COLOR 0x00000C00
# define NV097_SET_BACK_LIGHT_DIFFUSE_COLOR 0x00000C0C
# define NV097_SET_BACK_LIGHT_SPECULAR_COLOR 0x00000C18
# define NV097_SET_LIGHT_AMBIENT_COLOR 0x00001000
# define NV097_SET_LIGHT_DIFFUSE_COLOR 0x0000100C
# define NV097_SET_LIGHT_SPECULAR_COLOR 0x00001018
# define NV097_SET_LIGHT_LOCAL_RANGE 0x00001024
# define NV097_SET_LIGHT_INFINITE_HALF_VECTOR 0x00001028
# define NV097_SET_LIGHT_INFINITE_DIRECTION 0x00001034
# define NV097_SET_LIGHT_SPOT_FALLOFF 0x00001040
# define NV097_SET_LIGHT_SPOT_DIRECTION 0x0000104C
# define NV097_SET_LIGHT_LOCAL_POSITION 0x0000105C
# define NV097_SET_LIGHT_LOCAL_ATTENUATION 0x00001068
# define NV097_SET_VERTEX4F 0x00001518
# define NV097_SET_VERTEX_DATA_ARRAY_OFFSET 0x00001720
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT 0x00001760
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE 0x0000000F
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_UB_D3D 0
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_S1 1
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_F 2
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_UB_OGL 4
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_S32K 5
# define NV097_SET_VERTEX_DATA_ARRAY_FORMAT_TYPE_CMP 6