1*b7019ac5SIlia Mirkin /* SPDX-License-Identifier: MIT */ 2e3c71eb2SBen Skeggs #ifndef __NVKM_GR_REGS_H__ 3e3c71eb2SBen Skeggs #define __NVKM_GR_REGS_H__ 4b8bf04e1SBen Skeggs 5b8bf04e1SBen Skeggs #define NV04_PGRAPH_DEBUG_0 0x00400080 6b8bf04e1SBen Skeggs #define NV04_PGRAPH_DEBUG_1 0x00400084 7b8bf04e1SBen Skeggs #define NV04_PGRAPH_DEBUG_2 0x00400088 8b8bf04e1SBen Skeggs #define NV04_PGRAPH_DEBUG_3 0x0040008c 9b8bf04e1SBen Skeggs #define NV10_PGRAPH_DEBUG_4 0x00400090 10b8bf04e1SBen Skeggs #define NV03_PGRAPH_INTR 0x00400100 11b8bf04e1SBen Skeggs #define NV03_PGRAPH_NSTATUS 0x00400104 12b8bf04e1SBen Skeggs # define NV04_PGRAPH_NSTATUS_STATE_IN_USE (1<<11) 13b8bf04e1SBen Skeggs # define NV04_PGRAPH_NSTATUS_INVALID_STATE (1<<12) 14b8bf04e1SBen Skeggs # define NV04_PGRAPH_NSTATUS_BAD_ARGUMENT (1<<13) 15b8bf04e1SBen Skeggs # define NV04_PGRAPH_NSTATUS_PROTECTION_FAULT (1<<14) 16b8bf04e1SBen Skeggs # define NV10_PGRAPH_NSTATUS_STATE_IN_USE (1<<23) 17b8bf04e1SBen Skeggs # define NV10_PGRAPH_NSTATUS_INVALID_STATE (1<<24) 18b8bf04e1SBen Skeggs # define NV10_PGRAPH_NSTATUS_BAD_ARGUMENT (1<<25) 19b8bf04e1SBen Skeggs # define NV10_PGRAPH_NSTATUS_PROTECTION_FAULT (1<<26) 20b8bf04e1SBen Skeggs #define NV03_PGRAPH_NSOURCE 0x00400108 21b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_NOTIFICATION (1<<0) 22b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DATA_ERROR (1<<1) 23b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_PROTECTION_ERROR (1<<2) 24b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_RANGE_EXCEPTION (1<<3) 25b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_LIMIT_COLOR (1<<4) 26b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_LIMIT_ZETA (1<<5) 27b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD (1<<6) 28b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DMA_R_PROTECTION (1<<7) 29b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DMA_W_PROTECTION (1<<8) 30b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_FORMAT_EXCEPTION (1<<9) 31b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_PATCH_EXCEPTION (1<<10) 32b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_STATE_INVALID (1<<11) 33b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DOUBLE_NOTIFY (1<<12) 34b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_NOTIFY_IN_USE (1<<13) 35b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_METHOD_CNT (1<<14) 36b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_BFR_NOTIFICATION (1<<15) 37b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DMA_VTX_PROTECTION (1<<16) 38b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DMA_WIDTH_A (1<<17) 39b8bf04e1SBen Skeggs # define NV03_PGRAPH_NSOURCE_DMA_WIDTH_B (1<<18) 40b8bf04e1SBen Skeggs #define NV03_PGRAPH_INTR_EN 0x00400140 41b8bf04e1SBen Skeggs #define NV40_PGRAPH_INTR_EN 0x0040013C 42b8bf04e1SBen Skeggs # define NV_PGRAPH_INTR_NOTIFY (1<<0) 43b8bf04e1SBen Skeggs # define NV_PGRAPH_INTR_MISSING_HW (1<<4) 44b8bf04e1SBen Skeggs # define NV_PGRAPH_INTR_CONTEXT_SWITCH (1<<12) 45b8bf04e1SBen Skeggs # define NV_PGRAPH_INTR_BUFFER_NOTIFY (1<<16) 46b8bf04e1SBen Skeggs # define NV_PGRAPH_INTR_ERROR (1<<20) 47b8bf04e1SBen Skeggs #define NV10_PGRAPH_CTX_CONTROL 0x00400144 48b8bf04e1SBen Skeggs #define NV10_PGRAPH_CTX_USER 0x00400148 49b8bf04e1SBen Skeggs #define NV10_PGRAPH_CTX_SWITCH(i) (0x0040014C + 0x4*(i)) 50b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_SWITCH1 0x00400160 51b8bf04e1SBen Skeggs #define NV10_PGRAPH_CTX_CACHE(i, j) (0x00400160 \ 52b8bf04e1SBen Skeggs + 0x4*(i) + 0x20*(j)) 53b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_SWITCH2 0x00400164 54b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_SWITCH3 0x00400168 55b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_SWITCH4 0x0040016C 56b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_CONTROL 0x00400170 57b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_USER 0x00400174 58b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_CACHE1 0x00400180 59b8bf04e1SBen Skeggs #define NV03_PGRAPH_CTX_CONTROL 0x00400190 60b8bf04e1SBen Skeggs #define NV03_PGRAPH_CTX_USER 0x00400194 61b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_CACHE2 0x004001A0 62b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_CACHE3 0x004001C0 63b8bf04e1SBen Skeggs #define NV04_PGRAPH_CTX_CACHE4 0x004001E0 64b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_0304 0x00400304 65b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_0304_XFER_CTX 0x00000001 66b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_STAT 0x00400308 67b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_STAT_IP_MASK 0xff000000 68b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_STAT_IP_SHIFT 24 69b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_STAT_OP_MASK 0x00ffffff 70b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_0310 0x00400310 71b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_0310_XFER_SAVE 0x00000020 72b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_0310_XFER_LOAD 0x00000040 73b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_030C 0x0040030c 74b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_INDEX 0x00400324 75b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_UCODE_DATA 0x00400328 76b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_CUR 0x0040032c 77b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_CUR_LOADED 0x01000000 78b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_CUR_INSTANCE 0x000FFFFF 79b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_NEXT 0x00400330 80b8bf04e1SBen Skeggs #define NV40_PGRAPH_CTXCTL_NEXT_INSTANCE 0x000fffff 81b8bf04e1SBen Skeggs #define NV50_PGRAPH_CTXCTL_CUR 0x0040032c 82b8bf04e1SBen Skeggs #define NV50_PGRAPH_CTXCTL_CUR_LOADED 0x80000000 83b8bf04e1SBen Skeggs #define NV50_PGRAPH_CTXCTL_CUR_INSTANCE 0x00ffffff 84b8bf04e1SBen Skeggs #define NV50_PGRAPH_CTXCTL_NEXT 0x00400330 85b8bf04e1SBen Skeggs #define NV50_PGRAPH_CTXCTL_NEXT_INSTANCE 0x00ffffff 86b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_X_RAM 0x00400400 87b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_Y_RAM 0x00400480 88b8bf04e1SBen Skeggs #define NV03_PGRAPH_X_MISC 0x00400500 89b8bf04e1SBen Skeggs #define NV03_PGRAPH_Y_MISC 0x00400504 90b8bf04e1SBen Skeggs #define NV04_PGRAPH_VALID1 0x00400508 91b8bf04e1SBen Skeggs #define NV04_PGRAPH_SOURCE_COLOR 0x0040050C 92b8bf04e1SBen Skeggs #define NV04_PGRAPH_MISC24_0 0x00400510 93b8bf04e1SBen Skeggs #define NV03_PGRAPH_XY_LOGIC_MISC0 0x00400514 94b8bf04e1SBen Skeggs #define NV03_PGRAPH_XY_LOGIC_MISC1 0x00400518 95b8bf04e1SBen Skeggs #define NV03_PGRAPH_XY_LOGIC_MISC2 0x0040051C 96b8bf04e1SBen Skeggs #define NV03_PGRAPH_XY_LOGIC_MISC3 0x00400520 97b8bf04e1SBen Skeggs #define NV03_PGRAPH_CLIPX_0 0x00400524 98b8bf04e1SBen Skeggs #define NV03_PGRAPH_CLIPX_1 0x00400528 99b8bf04e1SBen Skeggs #define NV03_PGRAPH_CLIPY_0 0x0040052C 100b8bf04e1SBen Skeggs #define NV03_PGRAPH_CLIPY_1 0x00400530 101b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_ICLIP_XMAX 0x00400534 102b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_ICLIP_YMAX 0x00400538 103b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIP_XMIN 0x0040053C 104b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIP_YMIN 0x00400540 105b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIP_XMAX 0x00400544 106b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIP_YMAX 0x00400548 107b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIPA_XMIN 0x00400560 108b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIPA_YMIN 0x00400564 109b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIPA_XMAX 0x00400568 110b8bf04e1SBen Skeggs #define NV03_PGRAPH_ABS_UCLIPA_YMAX 0x0040056C 111b8bf04e1SBen Skeggs #define NV04_PGRAPH_MISC24_1 0x00400570 112b8bf04e1SBen Skeggs #define NV04_PGRAPH_MISC24_2 0x00400574 113b8bf04e1SBen Skeggs #define NV04_PGRAPH_VALID2 0x00400578 114b8bf04e1SBen Skeggs #define NV04_PGRAPH_PASSTHRU_0 0x0040057C 115b8bf04e1SBen Skeggs #define NV04_PGRAPH_PASSTHRU_1 0x00400580 116b8bf04e1SBen Skeggs #define NV04_PGRAPH_PASSTHRU_2 0x00400584 117b8bf04e1SBen Skeggs #define NV10_PGRAPH_DIMX_TEXTURE 0x00400588 118b8bf04e1SBen Skeggs #define NV10_PGRAPH_WDIMX_TEXTURE 0x0040058C 119b8bf04e1SBen Skeggs #define NV04_PGRAPH_COMBINE_0_ALPHA 0x00400590 120b8bf04e1SBen Skeggs #define NV04_PGRAPH_COMBINE_0_COLOR 0x00400594 121b8bf04e1SBen Skeggs #define NV04_PGRAPH_COMBINE_1_ALPHA 0x00400598 122b8bf04e1SBen Skeggs #define NV04_PGRAPH_COMBINE_1_COLOR 0x0040059C 123b8bf04e1SBen Skeggs #define NV04_PGRAPH_FORMAT_0 0x004005A8 124b8bf04e1SBen Skeggs #define NV04_PGRAPH_FORMAT_1 0x004005AC 125b8bf04e1SBen Skeggs #define NV04_PGRAPH_FILTER_0 0x004005B0 126b8bf04e1SBen Skeggs #define NV04_PGRAPH_FILTER_1 0x004005B4 127b8bf04e1SBen Skeggs #define NV03_PGRAPH_MONO_COLOR0 0x00400600 128b8bf04e1SBen Skeggs #define NV04_PGRAPH_ROP3 0x00400604 129b8bf04e1SBen Skeggs #define NV04_PGRAPH_BETA_AND 0x00400608 130b8bf04e1SBen Skeggs #define NV04_PGRAPH_BETA_PREMULT 0x0040060C 131b8bf04e1SBen Skeggs #define NV04_PGRAPH_LIMIT_VIOL_PIX 0x00400610 132b8bf04e1SBen Skeggs #define NV04_PGRAPH_FORMATS 0x00400618 133b8bf04e1SBen Skeggs #define NV10_PGRAPH_DEBUG_2 0x00400620 134b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET0 0x00400640 135b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET1 0x00400644 136b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET2 0x00400648 137b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET3 0x0040064C 138b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET4 0x00400650 139b8bf04e1SBen Skeggs #define NV04_PGRAPH_BOFFSET5 0x00400654 140b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE0 0x00400658 141b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE1 0x0040065C 142b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE2 0x00400660 143b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE3 0x00400664 144b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE4 0x00400668 145b8bf04e1SBen Skeggs #define NV04_PGRAPH_BBASE5 0x0040066C 146b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPITCH0 0x00400670 147b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPITCH1 0x00400674 148b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPITCH2 0x00400678 149b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPITCH3 0x0040067C 150b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPITCH4 0x00400680 151b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT0 0x00400684 152b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT1 0x00400688 153b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT2 0x0040068C 154b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT3 0x00400690 155b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT4 0x00400694 156b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLIMIT5 0x00400698 157b8bf04e1SBen Skeggs #define NV04_PGRAPH_BSWIZZLE2 0x0040069C 158b8bf04e1SBen Skeggs #define NV04_PGRAPH_BSWIZZLE5 0x004006A0 159b8bf04e1SBen Skeggs #define NV03_PGRAPH_STATUS 0x004006B0 160b8bf04e1SBen Skeggs #define NV04_PGRAPH_STATUS 0x00400700 161b8bf04e1SBen Skeggs # define NV40_PGRAPH_STATUS_SYNC_STALL 0x00004000 162b8bf04e1SBen Skeggs #define NV04_PGRAPH_TRAPPED_ADDR 0x00400704 163b8bf04e1SBen Skeggs #define NV04_PGRAPH_TRAPPED_DATA 0x00400708 164b8bf04e1SBen Skeggs #define NV04_PGRAPH_SURFACE 0x0040070C 165b8bf04e1SBen Skeggs #define NV10_PGRAPH_TRAPPED_DATA_HIGH 0x0040070C 166b8bf04e1SBen Skeggs #define NV04_PGRAPH_STATE 0x00400710 167b8bf04e1SBen Skeggs #define NV10_PGRAPH_SURFACE 0x00400710 168b8bf04e1SBen Skeggs #define NV04_PGRAPH_NOTIFY 0x00400714 169b8bf04e1SBen Skeggs #define NV10_PGRAPH_STATE 0x00400714 170b8bf04e1SBen Skeggs #define NV10_PGRAPH_NOTIFY 0x00400718 171b8bf04e1SBen Skeggs 172b8bf04e1SBen Skeggs #define NV04_PGRAPH_FIFO 0x00400720 173b8bf04e1SBen Skeggs 174b8bf04e1SBen Skeggs #define NV04_PGRAPH_BPIXEL 0x00400724 175b8bf04e1SBen Skeggs #define NV10_PGRAPH_RDI_INDEX 0x00400750 176b8bf04e1SBen Skeggs #define NV04_PGRAPH_FFINTFC_ST2 0x00400754 177b8bf04e1SBen Skeggs #define NV10_PGRAPH_RDI_DATA 0x00400754 178b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_PITCH 0x00400760 179b8bf04e1SBen Skeggs #define NV10_PGRAPH_FFINTFC_FIFO_PTR 0x00400760 180b8bf04e1SBen Skeggs #define NV04_PGRAPH_DVD_COLORFMT 0x00400764 181b8bf04e1SBen Skeggs #define NV10_PGRAPH_FFINTFC_ST2 0x00400764 182b8bf04e1SBen Skeggs #define NV04_PGRAPH_SCALED_FORMAT 0x00400768 183b8bf04e1SBen Skeggs #define NV10_PGRAPH_FFINTFC_ST2_DL 0x00400768 184b8bf04e1SBen Skeggs #define NV10_PGRAPH_FFINTFC_ST2_DH 0x0040076c 185b8bf04e1SBen Skeggs #define NV10_PGRAPH_DMA_PITCH 0x00400770 186b8bf04e1SBen Skeggs #define NV10_PGRAPH_DVD_COLORFMT 0x00400774 187b8bf04e1SBen Skeggs #define NV10_PGRAPH_SCALED_FORMAT 0x00400778 188b8bf04e1SBen Skeggs #define NV20_PGRAPH_CHANNEL_CTX_TABLE 0x00400780 189b8bf04e1SBen Skeggs #define NV20_PGRAPH_CHANNEL_CTX_POINTER 0x00400784 190b8bf04e1SBen Skeggs #define NV20_PGRAPH_CHANNEL_CTX_XFER 0x00400788 191b8bf04e1SBen Skeggs #define NV20_PGRAPH_CHANNEL_CTX_XFER_LOAD 0x00000001 192b8bf04e1SBen Skeggs #define NV20_PGRAPH_CHANNEL_CTX_XFER_SAVE 0x00000002 193b8bf04e1SBen Skeggs #define NV04_PGRAPH_PATT_COLOR0 0x00400800 194b8bf04e1SBen Skeggs #define NV04_PGRAPH_PATT_COLOR1 0x00400804 195b8bf04e1SBen Skeggs #define NV04_PGRAPH_PATTERN 0x00400808 196b8bf04e1SBen Skeggs #define NV04_PGRAPH_PATTERN_SHAPE 0x00400810 197b8bf04e1SBen Skeggs #define NV04_PGRAPH_CHROMA 0x00400814 198b8bf04e1SBen Skeggs #define NV04_PGRAPH_CONTROL0 0x00400818 199b8bf04e1SBen Skeggs #define NV04_PGRAPH_CONTROL1 0x0040081C 200b8bf04e1SBen Skeggs #define NV04_PGRAPH_CONTROL2 0x00400820 201b8bf04e1SBen Skeggs #define NV04_PGRAPH_BLEND 0x00400824 202b8bf04e1SBen Skeggs #define NV04_PGRAPH_STORED_FMT 0x00400830 203b8bf04e1SBen Skeggs #define NV04_PGRAPH_PATT_COLORRAM 0x00400900 204b8bf04e1SBen Skeggs #define NV20_PGRAPH_TILE(i) (0x00400900 + (i*16)) 205b8bf04e1SBen Skeggs #define NV20_PGRAPH_TLIMIT(i) (0x00400904 + (i*16)) 206b8bf04e1SBen Skeggs #define NV20_PGRAPH_TSIZE(i) (0x00400908 + (i*16)) 207b8bf04e1SBen Skeggs #define NV20_PGRAPH_TSTATUS(i) (0x0040090C + (i*16)) 208b8bf04e1SBen Skeggs #define NV20_PGRAPH_ZCOMP(i) (0x00400980 + 4*(i)) 209b8bf04e1SBen Skeggs #define NV41_PGRAPH_ZCOMP0(i) (0x004009c0 + 4*(i)) 210b8bf04e1SBen Skeggs #define NV10_PGRAPH_TILE(i) (0x00400B00 + (i*16)) 211b8bf04e1SBen Skeggs #define NV10_PGRAPH_TLIMIT(i) (0x00400B04 + (i*16)) 212b8bf04e1SBen Skeggs #define NV10_PGRAPH_TSIZE(i) (0x00400B08 + (i*16)) 213b8bf04e1SBen Skeggs #define NV10_PGRAPH_TSTATUS(i) (0x00400B0C + (i*16)) 214b8bf04e1SBen Skeggs #define NV04_PGRAPH_U_RAM 0x00400D00 215b8bf04e1SBen Skeggs #define NV47_PGRAPH_TILE(i) (0x00400D00 + (i*16)) 216b8bf04e1SBen Skeggs #define NV47_PGRAPH_TLIMIT(i) (0x00400D04 + (i*16)) 217b8bf04e1SBen Skeggs #define NV47_PGRAPH_TSIZE(i) (0x00400D08 + (i*16)) 218b8bf04e1SBen Skeggs #define NV47_PGRAPH_TSTATUS(i) (0x00400D0C + (i*16)) 219b8bf04e1SBen Skeggs #define NV04_PGRAPH_V_RAM 0x00400D40 220b8bf04e1SBen Skeggs #define NV04_PGRAPH_W_RAM 0x00400D80 221b8bf04e1SBen Skeggs #define NV47_PGRAPH_ZCOMP0(i) (0x00400e00 + 4*(i)) 222b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER0_IN_ALPHA 0x00400E40 223b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER1_IN_ALPHA 0x00400E44 224b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER0_IN_RGB 0x00400E48 225b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER1_IN_RGB 0x00400E4C 226b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER_COLOR0 0x00400E50 227b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER_COLOR1 0x00400E54 228b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER0_OUT_ALPHA 0x00400E58 229b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER1_OUT_ALPHA 0x00400E5C 230b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER0_OUT_RGB 0x00400E60 231b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER1_OUT_RGB 0x00400E64 232b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER_FINAL0 0x00400E68 233b8bf04e1SBen Skeggs #define NV10_PGRAPH_COMBINER_FINAL1 0x00400E6C 234b8bf04e1SBen Skeggs #define NV10_PGRAPH_WINDOWCLIP_HORIZONTAL 0x00400F00 235b8bf04e1SBen Skeggs #define NV10_PGRAPH_WINDOWCLIP_VERTICAL 0x00400F20 236b8bf04e1SBen Skeggs #define NV10_PGRAPH_XFMODE0 0x00400F40 237b8bf04e1SBen Skeggs #define NV10_PGRAPH_XFMODE1 0x00400F44 238b8bf04e1SBen Skeggs #define NV10_PGRAPH_GLOBALSTATE0 0x00400F48 239b8bf04e1SBen Skeggs #define NV10_PGRAPH_GLOBALSTATE1 0x00400F4C 240b8bf04e1SBen Skeggs #define NV10_PGRAPH_PIPE_ADDRESS 0x00400F50 241b8bf04e1SBen Skeggs #define NV10_PGRAPH_PIPE_DATA 0x00400F54 242b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_START_0 0x00401000 243b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_START_1 0x00401004 244b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_LENGTH 0x00401008 245b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_MISC 0x0040100C 246b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_DATA_0 0x00401020 247b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_DATA_1 0x00401024 248b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_RM 0x00401030 249b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_XLATE_INST 0x00401040 250b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_CONTROL 0x00401044 251b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_LIMIT 0x00401048 252b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_TLB_PTE 0x0040104C 253b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_TLB_TAG 0x00401050 254b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_ADJ_OFFSET 0x00401054 255b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_OFFSET 0x00401058 256b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_SIZE 0x0040105C 257b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_A_Y_SIZE 0x00401060 258b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_XLATE_INST 0x00401080 259b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_CONTROL 0x00401084 260b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_LIMIT 0x00401088 261b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_TLB_PTE 0x0040108C 262b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_TLB_TAG 0x00401090 263b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_ADJ_OFFSET 0x00401094 264b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_OFFSET 0x00401098 265b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_SIZE 0x0040109C 266b8bf04e1SBen Skeggs #define NV04_PGRAPH_DMA_B_Y_SIZE 0x004010A0 267b8bf04e1SBen Skeggs #define NV47_PGRAPH_ZCOMP1(i) (0x004068c0 + 4*(i)) 268b8bf04e1SBen Skeggs #define NV40_PGRAPH_TILE1(i) (0x00406900 + (i*16)) 269b8bf04e1SBen Skeggs #define NV40_PGRAPH_TLIMIT1(i) (0x00406904 + (i*16)) 270b8bf04e1SBen Skeggs #define NV40_PGRAPH_TSIZE1(i) (0x00406908 + (i*16)) 271b8bf04e1SBen Skeggs #define NV40_PGRAPH_TSTATUS1(i) (0x0040690C + (i*16)) 272b8bf04e1SBen Skeggs #define NV40_PGRAPH_ZCOMP1(i) (0x00406980 + 4*(i)) 273b8bf04e1SBen Skeggs #define NV41_PGRAPH_ZCOMP1(i) (0x004069c0 + 4*(i)) 274b8bf04e1SBen Skeggs 275b8bf04e1SBen Skeggs #endif 276