nv4ref.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:185k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1.  /***************************************************************************
  2. |*                                                                           *|
  3. |*       Copyright 1993-1998 NVIDIA, Corporation.  All rights reserved.      *|
  4. |*                                                                           *|
  5. |*     NOTICE TO USER:   The source code  is copyrighted under  U.S. and     *|
  6. |*     international laws.  Users and possessors of this source code are     *|
  7. |*     hereby granted a nonexclusive,  royalty-free copyright license to     *|
  8. |*     use this code in individual and commercial software.                  *|
  9. |*                                                                           *|
  10. |*     Any use of this source code must include,  in the user documenta-     *|
  11. |*     tion and  internal comments to the code,  notices to the end user     *|
  12. |*     as follows:                                                           *|
  13. |*                                                                           *|
  14. |*       Copyright 1993-1998 NVIDIA, Corporation.  All rights reserved.      *|
  15. |*                                                                           *|
  16. |*     NVIDIA, CORPORATION MAKES NO REPRESENTATION ABOUT THE SUITABILITY     *|
  17. |*     OF  THIS SOURCE  CODE  FOR ANY PURPOSE.  IT IS  PROVIDED  "AS IS"     *|
  18. |*     WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.  NVIDIA, CORPOR-     *|
  19. |*     ATION DISCLAIMS ALL WARRANTIES  WITH REGARD  TO THIS SOURCE CODE,     *|
  20. |*     INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGE-     *|
  21. |*     MENT,  AND FITNESS  FOR A PARTICULAR PURPOSE.   IN NO EVENT SHALL     *|
  22. |*     NVIDIA, CORPORATION  BE LIABLE FOR ANY SPECIAL,  INDIRECT,  INCI-     *|
  23. |*     DENTAL, OR CONSEQUENTIAL DAMAGES,  OR ANY DAMAGES  WHATSOEVER RE-     *|
  24. |*     SULTING FROM LOSS OF USE,  DATA OR PROFITS,  WHETHER IN AN ACTION     *|
  25. |*     OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,  ARISING OUT OF     *|
  26. |*     OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE.     *|
  27. |*                                                                           *|
  28. |*     U.S. Government  End  Users.   This source code  is a "commercial     *|
  29. |*     item,"  as that  term is  defined at  48 C.F.R. 2.101 (OCT 1995),     *|
  30. |*     consisting  of "commercial  computer  software"  and  "commercial     *|
  31. |*     computer  software  documentation,"  as such  terms  are  used in     *|
  32. |*     48 C.F.R. 12.212 (SEPT 1995)  and is provided to the U.S. Govern-     *|
  33. |*     ment only as  a commercial end item.   Consistent with  48 C.F.R.     *|
  34. |*     12.212 and  48 C.F.R. 227.7202-1 through  227.7202-4 (JUNE 1995),     *|
  35. |*     all U.S. Government End Users  acquire the source code  with only     *|
  36. |*     those rights set forth herein.                                        *|
  37. |*                                                                           *|
  38.  ***************************************************************************/
  39. /*
  40.  * GPL licensing note -- nVidia is allowing a liberal interpretation of
  41.  * the documentation restriction above, to merely say that this nVidia's
  42.  * copyright and disclaimer should be included with all code derived
  43.  * from this source.  -- Jeff Garzik <jgarzik@mandrakesoft.com>, 01/Nov/99 
  44.  */
  45.  /***************************************************************************
  46. |*            Modified 1999 by Fredrik Reite (fredrik@reite.com)             *|
  47.  ***************************************************************************/
  48. #ifndef __NV4REF_H__
  49. #define __NV4REF_H__
  50. /* Magic values to lock/unlock extended regs */
  51. #define NV_CIO_SR_LOCK_INDEX      0x0000001F /*       */
  52. #define NV_CIO_SR_UNLOCK_RW_VALUE                            0x00000057 /*       */
  53. #define NV_CIO_SR_UNLOCK_RO_VALUE                            0x00000075 /*       */
  54. #define NV_CIO_SR_LOCK_VALUE                                 0x00000099 /*       */
  55. #define UNLOCK_EXT_MAGIC 0x57
  56. #define LOCK_EXT_MAGIC 0x99 /* Any value other than 0x57 will do */
  57. #define LOCK_EXT_INDEX 0x6
  58. #define NV_PCRTC_HORIZ_TOTAL                                 0x00
  59. #define NV_PCRTC_HORIZ_DISPLAY_END                           0x01
  60. #define NV_PCRTC_HORIZ_BLANK_START                           0x02
  61. #define NV_PCRTC_HORIZ_BLANK_END                             0x03
  62. #define NV_PCRTC_HORIZ_BLANK_END_EVRA                        7:7
  63. #define NV_PCRTC_HORIZ_BLANK_END_DISPLAY_END_SKEW            6:5
  64. #define NV_PCRTC_HORIZ_BLANK_END_HORIZ_BLANK_END             4:0
  65. #define NV_PCRTC_HORIZ_RETRACE_START                         0x04
  66. #define NV_PCRTC_HORIZ_RETRACE_END                           0x05
  67. #define NV_PCRTC_HORIZ_RETRACE_END_HORIZ_BLANK_END_5         7:7
  68. #define NV_PCRTC_HORIZ_RETRACE_END_HORIZ_RETRACE_SKEW        6:5
  69. #define NV_PCRTC_HORIZ_RETRACE_END_HORIZ_RETRACE_END         4:0
  70. #define NV_PCRTC_VERT_TOTAL                                  0x06
  71. #define NV_PCRTC_OVERFLOW                                    0x07
  72. #define NV_PCRTC_OVERFLOW_VERT_RETRACE_START_9               7:7
  73. #define NV_PCRTC_OVERFLOW_VERT_DISPLAY_END_9                 6:6
  74. #define NV_PCRTC_OVERFLOW_VERT_TOTAL_9                       5:5
  75. #define NV_PCRTC_OVERFLOW_LINE_COMPARE_8                     4:4
  76. #define NV_PCRTC_OVERFLOW_VERT_BLANK_START_8                 3:3
  77. #define NV_PCRTC_OVERFLOW_VERT_RETRACE_START_8               2:2
  78. #define NV_PCRTC_OVERFLOW_VERT_DISPLAY_END_8                 1:1
  79. #define NV_PCRTC_OVERFLOW_VERT_TOTAL_8                       0:0
  80. #define NV_PCRTC_PRESET_ROW_SCAN                             0x08
  81. #define NV_PCRTC_MAX_SCAN_LINE                               0x09
  82. #define NV_PCRTC_MAX_SCAN_LINE_DOUBLE_SCAN                   7:7
  83. #define NV_PCRTC_MAX_SCAN_LINE_LINE_COMPARE_9                6:6
  84. #define NV_PCRTC_MAX_SCAN_LINE_VERT_BLANK_START_9            5:5
  85. #define NV_PCRTC_MAX_SCAN_LINE_MAX_SCAN_LINE                 4:0
  86. #define NV_PCRTC_CURSOR_START                                0x0A
  87. #define NV_PCRTC_CURSOR_END                                  0x0B
  88. #define NV_PCRTC_START_ADDR_HIGH                             0x0C
  89. #define NV_PCRTC_START_ADDR_LOW                              0x0D
  90. #define NV_PCRTC_CURSOR_LOCATION_HIGH                        0x0E
  91. #define NV_PCRTC_CURSOR_LOCATION_LOW                         0x0F
  92. #define NV_PCRTC_VERT_RETRACE_START                          0x10
  93. #define NV_PCRTC_VERT_RETRACE_END                            0x11
  94. #define NV_PCRTC_VERT_DISPLAY_END                            0x12
  95. #define NV_PCRTC_OFFSET                                      0x13
  96. #define NV_PCRTC_UNDERLINE_LOCATION                          0x14
  97. #define NV_PCRTC_VERT_BLANK_START                            0x15
  98. #define NV_PCRTC_VERT_BLANK_END                              0x16
  99. #define NV_PCRTC_MODE_CONTROL                                0x17
  100. #define NV_PCRTC_LINE_COMPARE                                0x18
  101. /* Extended offset and start address */
  102. #define NV_PCRTC_REPAINT0                                    0x19
  103. #define NV_PCRTC_REPAINT0_OFFSET_10_8                        7:5 
  104. #define NV_PCRTC_REPAINT0_START_ADDR_20_16                   4:0
  105. /* Horizonal extended bits */
  106. #define NV_PCRTC_HORIZ_EXTRA                                 0x2d
  107. #define NV_PCRTC_HORIZ_EXTRA_INTER_HALF_START_8              4:4
  108. #define NV_PCRTC_HORIZ_EXTRA_HORIZ_RETRACE_START_8           3:3
  109. #define NV_PCRTC_HORIZ_EXTRA_HORIZ_BLANK_START_8             2:2
  110. #define NV_PCRTC_HORIZ_EXTRA_DISPLAY_END_8                   1:1
  111. #define NV_PCRTC_HORIZ_EXTRA_DISPLAY_TOTAL_8                 0:0
  112. /* Assorted extra bits */
  113. #define NV_PCRTC_EXTRA                                       0x25
  114. #define NV_PCRTC_EXTRA_OFFSET_11                             5:5
  115. #define NV_PCRTC_EXTRA_HORIZ_BLANK_END_6                     4:4
  116. #define NV_PCRTC_EXTRA_VERT_BLANK_START_10                   3:3
  117. #define NV_PCRTC_EXTRA_VERT_RETRACE_START_10                 2:2
  118. #define NV_PCRTC_EXTRA_VERT_DISPLAY_END_10                   1:1
  119. #define NV_PCRTC_EXTRA_VERT_TOTAL_10                         0:0
  120. /* Controls how much data the refresh fifo requests */
  121. #define NV_PCRTC_FIFO_CONTROL                                0x1b
  122. #define NV_PCRTC_FIFO_CONTROL_UNDERFLOW_WARN                 7:7
  123. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH                   2:0
  124. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH_8                 0x0
  125. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH_32                0x1
  126. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH_64                0x2
  127. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH_128               0x3
  128. #define NV_PCRTC_FIFO_CONTROL_BURST_LENGTH_256               0x4
  129. /* When the fifo occupancy falls below *twice* the watermark,
  130.  * the refresh fifo will start to be refilled. If this value is 
  131.  * too low, you will get junk on the screen. Too high, and performance
  132.  * will suffer. Watermark in units of 8 bytes
  133.  */
  134. #define NV_PCRTC_FIFO                                        0x20
  135. #define NV_PCRTC_FIFO_RESET                                  7:7
  136. #define NV_PCRTC_FIFO_WATERMARK                              5:0
  137. /* Various flags */
  138. #define NV_PCRTC_REPAINT1                                    0x1a
  139. #define NV_PCRTC_REPAINT1_HSYNC                              7:7
  140. #define NV_PCRTC_REPAINT1_HYSNC_DISABLE                      0x01
  141. #define NV_PCRTC_REPAINT1_HYSNC_ENABLE                       0x00
  142. #define NV_PCRTC_REPAINT1_VSYNC                              6:6
  143. #define NV_PCRTC_REPAINT1_VYSNC_DISABLE                      0x01
  144. #define NV_PCRTC_REPAINT1_VYSNC_ENABLE                       0x00
  145. #define NV_PCRTC_REPAINT1_COMPATIBLE_TEXT                    4:4
  146. #define NV_PCRTC_REPAINT1_COMPATIBLE_TEXT_ENABLE             0x01
  147. #define NV_PCRTC_REPAINT1_COMPATIBLE_TEXT_DISABLE            0x00
  148. #define NV_PCRTC_REPAINT1_LARGE_SCREEN                       2:2 
  149. #define NV_PCRTC_REPAINT1_LARGE_SCREEN_DISABLE               0x01
  150. #define NV_PCRTC_REPAINT1_LARGE_SCREEN_ENABLE                0x00 /* >=1280 */
  151. #define NV_PCRTC_REPAINT1_PALETTE_WIDTH                      1:1
  152. #define NV_PCRTC_REPAINT1_PALETTE_WIDTH_8BITS                0x00
  153. #define NV_PCRTC_REPAINT1_PALETTE_WIDTH_6BITS                0x01
  154. #define NV_PCRTC_GRCURSOR0                                   0x30
  155. #define NV_PCRTC_GRCURSOR0_START_ADDR_21_16                  5:0
  156. #define NV_PCRTC_GRCURSOR1                                   0x31
  157. #define NV_PCRTC_GRCURSOR1_START_ADDR_15_11                  7:3
  158. #define NV_PCRTC_GRCURSOR1_SCAN_DBL                          1:1
  159. #define NV_PCRTC_GRCURSOR1_SCAN_DBL_DISABLE                  0
  160. #define NV_PCRTC_GRCURSOR1_SCAN_DBL_ENABLE                   1
  161. #define NV_PCRTC_GRCURSOR1_CURSOR                            0:0
  162. #define NV_PCRTC_GRCURSOR1_CURSOR_DISABLE                    0 
  163. #define NV_PCRTC_GRCURSOR1_CURSOR_ENABLE                     1
  164. /* Controls what the format of the framebuffer is */
  165. #define NV_PCRTC_PIXEL                       0x28
  166. #define NV_PCRTC_PIXEL_MODE                  7:7
  167. #define NV_PCRTC_PIXEL_MODE_TV               0x01
  168. #define NV_PCRTC_PIXEL_MODE_VGA              0x00
  169. #define NV_PCRTC_PIXEL_TV_MODE               6:6
  170. #define NV_PCRTC_PIXEL_TV_MODE_NTSC          0x00
  171. #define NV_PCRTC_PIXEL_TV_MODE_PAL           0x01
  172. #define NV_PCRTC_PIXEL_TV_HORIZ_ADJUST       5:3
  173. #define NV_PCRTC_PIXEL_FORMAT                1:0
  174. #define NV_PCRTC_PIXEL_FORMAT_VGA            0x00
  175. #define NV_PCRTC_PIXEL_FORMAT_8BPP           0x01
  176. #define NV_PCRTC_PIXEL_FORMAT_16BPP          0x02
  177. #define NV_PCRTC_PIXEL_FORMAT_32BPP          0x03
  178. /* RAMDAC registers and fields */
  179. #define NV_PRAMDAC                            0x00680FFF:0x00680000 /* RW--D */
  180. #define NV_PRAMDAC_GRCURSOR_START_POS                    0x00680300 /* RW-4R */
  181. #define NV_PRAMDAC_GRCURSOR_START_POS_X                        11:0 /* RWXSF */
  182. #define NV_PRAMDAC_GRCURSOR_START_POS_Y                       27:16 /* RWXSF */
  183. #define NV_PRAMDAC_NVPLL_COEFF                           0x00680500 /* RW-4R */
  184. #define NV_PRAMDAC_NVPLL_COEFF_MDIV                             7:0 /* RWIUF */
  185. #define NV_PRAMDAC_NVPLL_COEFF_NDIV                            15:8 /* RWIUF */
  186. #define NV_PRAMDAC_NVPLL_COEFF_PDIV                           18:16 /* RWIVF */
  187. #define NV_PRAMDAC_MPLL_COEFF                            0x00680504 /* RW-4R */
  188. #define NV_PRAMDAC_MPLL_COEFF_MDIV                              7:0 /* RWIUF */
  189. #define NV_PRAMDAC_MPLL_COEFF_NDIV                             15:8 /* RWIUF */
  190. #define NV_PRAMDAC_MPLL_COEFF_PDIV                            18:16 /* RWIVF */
  191. #define NV_PRAMDAC_VPLL_COEFF                            0x00680508 /* RW-4R */
  192. #define NV_PRAMDAC_VPLL_COEFF_MDIV                              7:0 /* RWIUF */
  193. #define NV_PRAMDAC_VPLL_COEFF_NDIV                             15:8 /* RWIUF */
  194. #define NV_PRAMDAC_VPLL_COEFF_PDIV                            18:16 /* RWIVF */
  195. #define NV_PRAMDAC_PLL_COEFF_SELECT                      0x0068050C /* RW-4R */
  196. #define NV_PRAMDAC_PLL_COEFF_SELECT_DLL_BYPASS                  4:4 /* RWIVF */
  197. #define NV_PRAMDAC_PLL_COEFF_SELECT_DLL_BYPASS_FALSE     0x00000000 /* RWI-V */
  198. #define NV_PRAMDAC_PLL_COEFF_SELECT_DLL_BYPASS_TRUE      0x00000001 /* RW--V */
  199. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_SOURCE                 8:8 /* RWIVF */
  200. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_SOURCE_DEFAULT  0x00000000 /* RWI-V */
  201. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_SOURCE_PROG     0x00000001 /* RW--V */
  202. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_BYPASS               12:12 /* RWIVF */
  203. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_BYPASS_FALSE    0x00000000 /* RWI-V */
  204. #define NV_PRAMDAC_PLL_COEFF_SELECT_MPLL_BYPASS_TRUE     0x00000001 /* RW--V */
  205. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_SOURCE               16:16 /* RWIVF */
  206. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_SOURCE_DEFAULT  0x00000000 /* RWI-V */
  207. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_SOURCE_PROG     0x00000001 /* RW--V */
  208. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_BYPASS               20:20 /* RWIVF */
  209. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_BYPASS_FALSE    0x00000000 /* RWI-V */
  210. #define NV_PRAMDAC_PLL_COEFF_SELECT_VPLL_BYPASS_TRUE     0x00000001 /* RW--V */
  211. #define NV_PRAMDAC_PLL_COEFF_SELECT_PCLK_SOURCE               25:24 /* RWIVF */
  212. #define NV_PRAMDAC_PLL_COEFF_SELECT_PCLK_SOURCE_VPLL     0x00000000 /* RWI-V */
  213. #define NV_PRAMDAC_PLL_COEFF_SELECT_PCLK_SOURCE_VIP      0x00000001 /* RW--V */
  214. #define NV_PRAMDAC_PLL_COEFF_SELECT_PCLK_SOURCE_XTALOSC  0x00000002 /* RW--V */
  215. #define NV_PRAMDAC_PLL_COEFF_SELECT_VCLK_RATIO                28:28 /* RWIVF */
  216. #define NV_PRAMDAC_PLL_COEFF_SELECT_VCLK_RATIO_DB1       0x00000000 /* RWI-V */
  217. #define NV_PRAMDAC_PLL_COEFF_SELECT_VCLK_RATIO_DB2       0x00000001 /* RW--V */
  218. #define NV_PRAMDAC_GENERAL_CONTROL                       0x00680600 /* RW-4R */
  219. #define NV_PRAMDAC_GENERAL_CONTROL_FF_COEFF                     1:0 /* RWIVF */
  220. #define NV_PRAMDAC_GENERAL_CONTROL_FF_COEFF_DEF          0x00000000 /* RWI-V */
  221. #define NV_PRAMDAC_GENERAL_CONTROL_IDC_MODE                     4:4 /* RWIVF */
  222. #define NV_PRAMDAC_GENERAL_CONTROL_IDC_MODE_GAMMA        0x00000000 /* RWI-V */
  223. #define NV_PRAMDAC_GENERAL_CONTROL_IDC_MODE_INDEX        0x00000001 /* RW--V */
  224. #define NV_PRAMDAC_GENERAL_CONTROL_VGA_STATE                    8:8 /* RWIVF */
  225. #define NV_PRAMDAC_GENERAL_CONTROL_VGA_STATE_NOTSE       0x00000000 /* RWI-V */
  226. #define NV_PRAMDAC_GENERAL_CONTROL_VGA_STATE_SEL         0x00000001 /* RW--V */
  227. #define NV_PRAMDAC_GENERAL_CONTROL_565_MODE                   12:12 /* RWIVF */
  228. #define NV_PRAMDAC_GENERAL_CONTROL_565_MODE_NOTSEL       0x00000000 /* RWI-V */
  229. #define NV_PRAMDAC_GENERAL_CONTROL_565_MODE_SEL          0x00000001 /* RW--V */
  230. #define NV_PRAMDAC_GENERAL_CONTROL_BLK_PEDSTL                 16:16 /* RWIVF */
  231. #define NV_PRAMDAC_GENERAL_CONTROL_BLK_PEDSTL_OFF        0x00000000 /* RWI-V */
  232. #define NV_PRAMDAC_GENERAL_CONTROL_BLK_PEDSTL_ON         0x00000001 /* RW--V */
  233. #define NV_PRAMDAC_GENERAL_CONTROL_TERMINATION                17:17 /* RWIVF */
  234. #define NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_37OHM     0x00000000 /* RWI-V */
  235. #define NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM     0x00000001 /* RW--V */
  236. #define NV_PRAMDAC_GENERAL_CONTROL_BPC                        20:20 /* RWIVF */
  237. #define NV_PRAMDAC_GENERAL_CONTROL_BPC_6BITS             0x00000000 /* RWI-V */
  238. #define NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS             0x00000001 /* RW--V */
  239. #define NV_PRAMDAC_GENERAL_CONTROL_DAC_SLEEP                  24:24 /* RWIVF */
  240. #define NV_PRAMDAC_GENERAL_CONTROL_DAC_SLEEP_DIS         0x00000000 /* RWI-V */
  241. #define NV_PRAMDAC_GENERAL_CONTROL_DAC_SLEEP_EN          0x00000001 /* RW--V */
  242. #define NV_PRAMDAC_GENERAL_CONTROL_PALETTE_CLK                28:28 /* RWIVF */
  243. #define NV_PRAMDAC_GENERAL_CONTROL_PALETTE_CLK_EN        0x00000000 /* RWI-V */
  244. #define NV_PRAMDAC_GENERAL_CONTROL_PALETTE_CLK_DIS       0x00000001 /* RW--V */
  245. /* Master Control */
  246. #define NV_PMC                                0x00000FFF:0x00000000 /* RW--D */
  247. #define NV_PMC_BOOT_0                                    0x00000000 /* R--4R */
  248. #define NV_PMC_BOOT_0_MINOR_REVISION                            3:0 /* C--VF */
  249. #define NV_PMC_BOOT_0_MINOR_REVISION_0                   0x00000000 /* C---V */
  250. #define NV_PMC_BOOT_0_MAJOR_REVISION                            7:4 /* C--VF */
  251. #define NV_PMC_BOOT_0_MAJOR_REVISION_A                   0x00000000 /* C---V */
  252. #define NV_PMC_BOOT_0_MAJOR_REVISION_B                   0x00000001 /* ----V */
  253. #define NV_PMC_BOOT_0_IMPLEMENTATION                           11:8 /* C--VF */
  254. #define NV_PMC_BOOT_0_IMPLEMENTATION_NV4_0               0x00000000 /* C---V */
  255. #define NV_PMC_BOOT_0_ARCHITECTURE                            15:12 /* C--VF */
  256. #define NV_PMC_BOOT_0_ARCHITECTURE_NV0                   0x00000000 /* ----V */
  257. #define NV_PMC_BOOT_0_ARCHITECTURE_NV1                   0x00000001 /* ----V */
  258. #define NV_PMC_BOOT_0_ARCHITECTURE_NV2                   0x00000002 /* ----V */
  259. #define NV_PMC_BOOT_0_ARCHITECTURE_NV3                   0x00000003 /* ----V */
  260. #define NV_PMC_BOOT_0_ARCHITECTURE_NV4                   0x00000004 /* C---V */
  261. #define NV_PMC_BOOT_0_FIB_REVISION                            19:16 /* C--VF */
  262. #define NV_PMC_BOOT_0_FIB_REVISION_0                     0x00000000 /* C---V */
  263. #define NV_PMC_BOOT_0_MASK_REVISION                           23:20 /* C--VF */
  264. #define NV_PMC_BOOT_0_MASK_REVISION_A                    0x00000000 /* C---V */
  265. #define NV_PMC_BOOT_0_MASK_REVISION_B                    0x00000001 /* ----V */
  266. #define NV_PMC_BOOT_0_MANUFACTURER                            27:24 /* C--UF */
  267. #define NV_PMC_BOOT_0_MANUFACTURER_NVIDIA                0x00000000 /* C---V */
  268. #define NV_PMC_BOOT_0_FOUNDRY                                 31:28 /* C--VF */
  269. #define NV_PMC_BOOT_0_FOUNDRY_SGS                        0x00000000 /* ----V */
  270. #define NV_PMC_BOOT_0_FOUNDRY_HELIOS                     0x00000001 /* ----V */
  271. #define NV_PMC_BOOT_0_FOUNDRY_TSMC                       0x00000002 /* C---V */
  272. #define NV_PMC_INTR_0                                    0x00000100 /* RW-4R */
  273. #define NV_PMC_INTR_0_PMEDIA                                    4:4 /* R--VF */
  274. #define NV_PMC_INTR_0_PMEDIA_NOT_PENDING                 0x00000000 /* R---V */
  275. #define NV_PMC_INTR_0_PMEDIA_PENDING                     0x00000001 /* R---V */
  276. #define NV_PMC_INTR_0_PFIFO                                     8:8 /* R--VF */
  277. #define NV_PMC_INTR_0_PFIFO_NOT_PENDING                  0x00000000 /* R---V */
  278. #define NV_PMC_INTR_0_PFIFO_PENDING                      0x00000001 /* R---V */
  279. #define NV_PMC_INTR_0_PGRAPH                                  12:12 /* R--VF */
  280. #define NV_PMC_INTR_0_PGRAPH_NOT_PENDING                 0x00000000 /* R---V */
  281. #define NV_PMC_INTR_0_PGRAPH_PENDING                     0x00000001 /* R---V */
  282. #define NV_PMC_INTR_0_PVIDEO                                  16:16 /* R--VF */
  283. #define NV_PMC_INTR_0_PVIDEO_NOT_PENDING                 0x00000000 /* R---V */
  284. #define NV_PMC_INTR_0_PVIDEO_PENDING                     0x00000001 /* R---V */
  285. #define NV_PMC_INTR_0_PTIMER                                  20:20 /* R--VF */
  286. #define NV_PMC_INTR_0_PTIMER_NOT_PENDING                 0x00000000 /* R---V */
  287. #define NV_PMC_INTR_0_PTIMER_PENDING                     0x00000001 /* R---V */
  288. #define NV_PMC_INTR_0_PCRTC                                   24:24 /* R--VF */
  289. #define NV_PMC_INTR_0_PCRTC_NOT_PENDING                  0x00000000 /* R---V */
  290. #define NV_PMC_INTR_0_PCRTC_PENDING                      0x00000001 /* R---V */
  291. #define NV_PMC_INTR_0_PBUS                                    28:28 /* R--VF */
  292. #define NV_PMC_INTR_0_PBUS_NOT_PENDING                   0x00000000 /* R---V */
  293. #define NV_PMC_INTR_0_PBUS_PENDING                       0x00000001 /* R---V */
  294. #define NV_PMC_INTR_0_SOFTWARE                                31:31 /* RWIVF */
  295. #define NV_PMC_INTR_0_SOFTWARE_NOT_PENDING               0x00000000 /* RWI-V */
  296. #define NV_PMC_INTR_0_SOFTWARE_PENDING                   0x00000001 /* RW--V */
  297. #define NV_PMC_INTR_EN_0                                 0x00000140 /* RW-4R */
  298. #define NV_PMC_INTR_EN_0_INTA                                   1:0 /* RWIVF */
  299. #define NV_PMC_INTR_EN_0_INTA_DISABLED                   0x00000000 /* RWI-V */
  300. #define NV_PMC_INTR_EN_0_INTA_HARDWARE                   0x00000001 /* RW--V */
  301. #define NV_PMC_INTR_EN_0_INTA_SOFTWARE                   0x00000002 /* RW--V */
  302. #define NV_PMC_INTR_READ_0                               0x00000160 /* R--4R */
  303. #define NV_PMC_INTR_READ_0_INTA                                 0:0 /* R--VF */
  304. #define NV_PMC_INTR_READ_0_INTA_LOW                      0x00000000 /* R---V */
  305. #define NV_PMC_INTR_READ_0_INTA_HIGH                     0x00000001 /* R---V */
  306. #define NV_PMC_ENABLE                                    0x00000200 /* RW-4R */
  307. #define NV_PMC_ENABLE_PMEDIA                                    4:4 /* RWIVF */
  308. #define NV_PMC_ENABLE_PMEDIA_DISABLED                    0x00000000 /* RWI-V */
  309. #define NV_PMC_ENABLE_PMEDIA_ENABLED                     0x00000001 /* RW--V */
  310. #define NV_PMC_ENABLE_PFIFO                                     8:8 /* RWIVF */
  311. #define NV_PMC_ENABLE_PFIFO_DISABLED                     0x00000000 /* RWI-V */
  312. #define NV_PMC_ENABLE_PFIFO_ENABLED                      0x00000001 /* RW--V */
  313. #define NV_PMC_ENABLE_PGRAPH                                  12:12 /* RWIVF */
  314. #define NV_PMC_ENABLE_PGRAPH_DISABLED                    0x00000000 /* RWI-V */
  315. #define NV_PMC_ENABLE_PGRAPH_ENABLED                     0x00000001 /* RW--V */
  316. #define NV_PMC_ENABLE_PPMI                                    16:16 /* RWIVF */
  317. #define NV_PMC_ENABLE_PPMI_DISABLED                      0x00000000 /* RWI-V */
  318. #define NV_PMC_ENABLE_PPMI_ENABLED                       0x00000001 /* RW--V */
  319. #define NV_PMC_ENABLE_PFB                                     20:20 /* RWIVF */
  320. #define NV_PMC_ENABLE_PFB_DISABLED                       0x00000000 /* RW--V */
  321. #define NV_PMC_ENABLE_PFB_ENABLED                        0x00000001 /* RWI-V */
  322. #define NV_PMC_ENABLE_PCRTC                                   24:24 /* RWIVF */
  323. #define NV_PMC_ENABLE_PCRTC_DISABLED                     0x00000000 /* RW--V */
  324. #define NV_PMC_ENABLE_PCRTC_ENABLED                      0x00000001 /* RWI-V */
  325. #define NV_PMC_ENABLE_PVIDEO                                  28:28 /* RWIVF */
  326. #define NV_PMC_ENABLE_PVIDEO_DISABLED                    0x00000000 /* RWI-V */
  327. #define NV_PMC_ENABLE_PVIDEO_ENABLED                     0x00000001 /* RW--V */
  328. /* dev_timer.ref */
  329. #define NV_PTIMER                             0x00009FFF:0x00009000 /* RW--D */
  330. #define NV_PTIMER_INTR_0                                 0x00009100 /* RW-4R */
  331. #define NV_PTIMER_INTR_0_ALARM                                  0:0 /* RWXVF */
  332. #define NV_PTIMER_INTR_0_ALARM_NOT_PENDING               0x00000000 /* R---V */
  333. #define NV_PTIMER_INTR_0_ALARM_PENDING                   0x00000001 /* R---V */
  334. #define NV_PTIMER_INTR_0_ALARM_RESET                     0x00000001 /* -W--V */
  335. #define NV_PTIMER_INTR_EN_0                              0x00009140 /* RW-4R */
  336. #define NV_PTIMER_INTR_EN_0_ALARM                               0:0 /* RWIVF */
  337. #define NV_PTIMER_INTR_EN_0_ALARM_DISABLED               0x00000000 /* RWI-V */
  338. #define NV_PTIMER_INTR_EN_0_ALARM_ENABLED                0x00000001 /* RW--V */
  339. #define NV_PTIMER_NUMERATOR                              0x00009200 /* RW-4R */
  340. #define NV_PTIMER_NUMERATOR_VALUE                              15:0 /* RWIUF */
  341. #define NV_PTIMER_NUMERATOR_VALUE_0                      0x00000000 /* RWI-V */
  342. #define NV_PTIMER_DENOMINATOR                            0x00009210 /* RW-4R */
  343. #define NV_PTIMER_DENOMINATOR_VALUE                            15:0 /* RWIUF */
  344. #define NV_PTIMER_DENOMINATOR_VALUE_0                    0x00000000 /* RWI-V */
  345. #define NV_PTIMER_TIME_0                                 0x00009400 /* RW-4R */
  346. #define NV_PTIMER_TIME_0_NSEC                                  31:5 /* RWXUF */
  347. #define NV_PTIMER_TIME_1                                 0x00009410 /* RW-4R */
  348. #define NV_PTIMER_TIME_1_NSEC                                  28:0 /* RWXUF */
  349. #define NV_PTIMER_ALARM_0                                0x00009420 /* RW-4R */
  350. #define NV_PTIMER_ALARM_0_NSEC                                 31:5 /* RWXUF */
  351. /* dev_fifo.ref */
  352. #define NV_PFIFO                              0x00003FFF:0x00002000 /* RW--D */
  353. #define NV_PFIFO_DELAY_0                                 0x00002040 /* RW-4R */
  354. #define NV_PFIFO_DELAY_0_WAIT_RETRY                             9:0 /* RWIUF */
  355. #define NV_PFIFO_DELAY_0_WAIT_RETRY_0                    0x00000000 /* RWI-V */
  356. #define NV_PFIFO_DMA_TIMESLICE                           0x00002044 /* RW-4R */
  357. #define NV_PFIFO_DMA_TIMESLICE_SELECT                          16:0 /* RWIUF */
  358. #define NV_PFIFO_DMA_TIMESLICE_SELECT_1                  0x00000000 /* RWI-V */
  359. #define NV_PFIFO_DMA_TIMESLICE_SELECT_16K                0x00003fff /* RW--V */
  360. #define NV_PFIFO_DMA_TIMESLICE_SELECT_32K                0x00007fff /* RW--V */
  361. #define NV_PFIFO_DMA_TIMESLICE_SELECT_64K                0x0000ffff /* RW--V */
  362. #define NV_PFIFO_DMA_TIMESLICE_SELECT_128K               0x0001ffff /* RW--V */
  363. #define NV_PFIFO_DMA_TIMESLICE_TIMEOUT                        24:24 /* RWIUF */
  364. #define NV_PFIFO_DMA_TIMESLICE_TIMEOUT_DISABLED          0x00000000 /* RW--V */
  365. #define NV_PFIFO_DMA_TIMESLICE_TIMEOUT_ENABLED           0x00000001 /* RWI-V */
  366. #define NV_PFIFO_PIO_TIMESLICE                           0x00002048 /* RW-4R */
  367. #define NV_PFIFO_PIO_TIMESLICE_SELECT                          16:0 /* RWIUF */
  368. #define NV_PFIFO_PIO_TIMESLICE_SELECT_1                  0x00000000 /* RWI-V */
  369. #define NV_PFIFO_PIO_TIMESLICE_SELECT_16K                0x00003fff /* RW--V */
  370. #define NV_PFIFO_PIO_TIMESLICE_SELECT_32K                0x00007fff /* RW--V */
  371. #define NV_PFIFO_PIO_TIMESLICE_SELECT_64K                0x0000ffff /* RW--V */
  372. #define NV_PFIFO_PIO_TIMESLICE_SELECT_128K               0x0001ffff /* RW--V */
  373. #define NV_PFIFO_PIO_TIMESLICE_TIMEOUT                        24:24 /* RWIUF */
  374. #define NV_PFIFO_PIO_TIMESLICE_TIMEOUT_DISABLED          0x00000000 /* RW--V */
  375. #define NV_PFIFO_PIO_TIMESLICE_TIMEOUT_ENABLED           0x00000001 /* RWI-V */
  376. #define NV_PFIFO_TIMESLICE                               0x0000204C /* RW-4R */
  377. #define NV_PFIFO_TIMESLICE_TIMER                               17:0 /* RWIUF */
  378. #define NV_PFIFO_TIMESLICE_TIMER_EXPIRED                 0x0003FFFF /* RWI-V */
  379. #define NV_PFIFO_NEXT_CHANNEL                            0x00002050 /* RW-4R */
  380. #define NV_PFIFO_NEXT_CHANNEL_CHID                              3:0 /* RWXUF */
  381. #define NV_PFIFO_NEXT_CHANNEL_MODE                              8:8 /* RWXVF */
  382. #define NV_PFIFO_NEXT_CHANNEL_MODE_PIO                   0x00000000 /* RW--V */
  383. #define NV_PFIFO_NEXT_CHANNEL_MODE_DMA                   0x00000001 /* RW--V */
  384. #define NV_PFIFO_NEXT_CHANNEL_SWITCH                          12:12 /* RWIVF */
  385. #define NV_PFIFO_NEXT_CHANNEL_SWITCH_NOT_PENDING         0x00000000 /* RWI-V */
  386. #define NV_PFIFO_NEXT_CHANNEL_SWITCH_PENDING             0x00000001 /* RW--V */
  387. #define NV_PFIFO_DEBUG_0                                 0x00002080 /* R--4R */
  388. #define NV_PFIFO_DEBUG_0_CACHE_ERROR0                           0:0 /* R-XVF */
  389. #define NV_PFIFO_DEBUG_0_CACHE_ERROR0_NOT_PENDING        0x00000000 /* R---V */
  390. #define NV_PFIFO_DEBUG_0_CACHE_ERROR0_PENDING            0x00000001 /* R---V */
  391. #define NV_PFIFO_DEBUG_0_CACHE_ERROR1                           4:4 /* R-XVF */
  392. #define NV_PFIFO_DEBUG_0_CACHE_ERROR1_NOT_PENDING        0x00000000 /* R---V */
  393. #define NV_PFIFO_DEBUG_0_CACHE_ERROR1_PENDING            0x00000001 /* R---V */
  394. #define NV_PFIFO_INTR_0                                  0x00002100 /* RW-4R */
  395. #define NV_PFIFO_INTR_0_CACHE_ERROR                             0:0 /* RWXVF */
  396. #define NV_PFIFO_INTR_0_CACHE_ERROR_NOT_PENDING          0x00000000 /* R---V */
  397. #define NV_PFIFO_INTR_0_CACHE_ERROR_PENDING              0x00000001 /* R---V */
  398. #define NV_PFIFO_INTR_0_CACHE_ERROR_RESET                0x00000001 /* -W--V */
  399. #define NV_PFIFO_INTR_0_RUNOUT                                  4:4 /* RWXVF */
  400. #define NV_PFIFO_INTR_0_RUNOUT_NOT_PENDING               0x00000000 /* R---V */
  401. #define NV_PFIFO_INTR_0_RUNOUT_PENDING                   0x00000001 /* R---V */
  402. #define NV_PFIFO_INTR_0_RUNOUT_RESET                     0x00000001 /* -W--V */
  403. #define NV_PFIFO_INTR_0_RUNOUT_OVERFLOW                         8:8 /* RWXVF */
  404. #define NV_PFIFO_INTR_0_RUNOUT_OVERFLOW_NOT_PENDING      0x00000000 /* R---V */
  405. #define NV_PFIFO_INTR_0_RUNOUT_OVERFLOW_PENDING          0x00000001 /* R---V */
  406. #define NV_PFIFO_INTR_0_RUNOUT_OVERFLOW_RESET            0x00000001 /* -W--V */
  407. #define NV_PFIFO_INTR_0_DMA_PUSHER                            12:12 /* RWXVF */
  408. #define NV_PFIFO_INTR_0_DMA_PUSHER_NOT_PENDING           0x00000000 /* R---V */
  409. #define NV_PFIFO_INTR_0_DMA_PUSHER_PENDING               0x00000001 /* R---V */
  410. #define NV_PFIFO_INTR_0_DMA_PUSHER_RESET                 0x00000001 /* -W--V */
  411. #define NV_PFIFO_INTR_0_DMA_PT                                16:16 /* RWXVF */
  412. #define NV_PFIFO_INTR_0_DMA_PT_NOT_PENDING               0x00000000 /* R---V */
  413. #define NV_PFIFO_INTR_0_DMA_PT_PENDING                   0x00000001 /* R---V */
  414. #define NV_PFIFO_INTR_0_DMA_PT_RESET                     0x00000001 /* -W--V */
  415. #define NV_PFIFO_INTR_EN_0                               0x00002140 /* RW-4R */
  416. #define NV_PFIFO_INTR_EN_0_CACHE_ERROR                          0:0 /* RWIVF */
  417. #define NV_PFIFO_INTR_EN_0_CACHE_ERROR_DISABLED          0x00000000 /* RWI-V */
  418. #define NV_PFIFO_INTR_EN_0_CACHE_ERROR_ENABLED           0x00000001 /* RW--V */
  419. #define NV_PFIFO_INTR_EN_0_RUNOUT                               4:4 /* RWIVF */
  420. #define NV_PFIFO_INTR_EN_0_RUNOUT_DISABLED               0x00000000 /* RWI-V */
  421. #define NV_PFIFO_INTR_EN_0_RUNOUT_ENABLED                0x00000001 /* RW--V */
  422. #define NV_PFIFO_INTR_EN_0_RUNOUT_OVERFLOW                      8:8 /* RWIVF */
  423. #define NV_PFIFO_INTR_EN_0_RUNOUT_OVERFLOW_DISABLED      0x00000000 /* RWI-V */
  424. #define NV_PFIFO_INTR_EN_0_RUNOUT_OVERFLOW_ENABLED       0x00000001 /* RW--V */
  425. #define NV_PFIFO_INTR_EN_0_DMA_PUSHER                         12:12 /* RWIVF */
  426. #define NV_PFIFO_INTR_EN_0_DMA_PUSHER_DISABLED           0x00000000 /* RWI-V */
  427. #define NV_PFIFO_INTR_EN_0_DMA_PUSHER_ENABLED            0x00000001 /* RW--V */
  428. #define NV_PFIFO_INTR_EN_0_DMA_PT                             16:16 /* RWIVF */
  429. #define NV_PFIFO_INTR_EN_0_DMA_PT_DISABLED               0x00000000 /* RWI-V */
  430. #define NV_PFIFO_INTR_EN_0_DMA_PT_ENABLED                0x00000001 /* RW--V */
  431. #define NV_PFIFO_RAMHT                                   0x00002210 /* RW-4R */
  432. #define NV_PFIFO_RAMHT_BASE_ADDRESS                             8:4 /* RWIUF */
  433. #define NV_PFIFO_RAMHT_BASE_ADDRESS_10000                0x00000010 /* RWI-V */
  434. #define NV_PFIFO_RAMHT_SIZE                                   17:16 /* RWIUF */
  435. #define NV_PFIFO_RAMHT_SIZE_4K                           0x00000000 /* RWI-V */
  436. #define NV_PFIFO_RAMHT_SIZE_8K                           0x00000001 /* RW--V */
  437. #define NV_PFIFO_RAMHT_SIZE_16K                          0x00000002 /* RW--V */
  438. #define NV_PFIFO_RAMHT_SIZE_32K                          0x00000003 /* RW--V */
  439. #define NV_PFIFO_RAMHT_SEARCH                                 25:24 /* RWIUF */
  440. #define NV_PFIFO_RAMHT_SEARCH_16                         0x00000000 /* RWI-V */
  441. #define NV_PFIFO_RAMHT_SEARCH_32                         0x00000001 /* RW--V */
  442. #define NV_PFIFO_RAMHT_SEARCH_64                         0x00000002 /* RW--V */
  443. #define NV_PFIFO_RAMHT_SEARCH_128                        0x00000003 /* RW--V */
  444. #define NV_PFIFO_RAMFC                                   0x00002214 /* RW-4R */
  445. #define NV_PFIFO_RAMFC_BASE_ADDRESS                             8:1 /* RWIUF */
  446. #define NV_PFIFO_RAMFC_BASE_ADDRESS_11000                0x00000088 /* RWI-V */
  447. #define NV_PFIFO_RAMRO                                   0x00002218 /* RW-4R */
  448. #define NV_PFIFO_RAMRO_BASE_ADDRESS                             8:1 /* RWIUF */
  449. #define NV_PFIFO_RAMRO_BASE_ADDRESS_11200                0x00000089 /* RWI-V */
  450. #define NV_PFIFO_RAMRO_BASE_ADDRESS_12000                0x00000090 /* RW--V */
  451. #define NV_PFIFO_RAMRO_SIZE                                   16:16 /* RWIVF */
  452. #define NV_PFIFO_RAMRO_SIZE_512                          0x00000000 /* RWI-V */
  453. #define NV_PFIFO_RAMRO_SIZE_8K                           0x00000001 /* RW--V */
  454. #define NV_PFIFO_CACHES                                  0x00002500 /* RW-4R */
  455. #define NV_PFIFO_CACHES_REASSIGN                                0:0 /* RWIVF */
  456. #define NV_PFIFO_CACHES_REASSIGN_DISABLED                0x00000000 /* RWI-V */
  457. #define NV_PFIFO_CACHES_REASSIGN_ENABLED                 0x00000001 /* RW--V */
  458. #define NV_PFIFO_CACHES_DMA_SUSPEND                             4:4 /* R--VF */
  459. #define NV_PFIFO_CACHES_DMA_SUSPEND_IDLE                 0x00000000 /* R---V */
  460. #define NV_PFIFO_CACHES_DMA_SUSPEND_BUSY                 0x00000001 /* R---V */
  461. #define NV_PFIFO_MODE                                    0x00002504 /* RW-4R */
  462. #define NV_PFIFO_MODE_CHANNEL_0                                 0:0 /* RWIVF */
  463. #define NV_PFIFO_MODE_CHANNEL_0_PIO                      0x00000000 /* RWI-V */
  464. #define NV_PFIFO_MODE_CHANNEL_0_DMA                      0x00000001 /* RW--V */
  465. #define NV_PFIFO_MODE_CHANNEL_1                                 1:1 /* RWIVF */
  466. #define NV_PFIFO_MODE_CHANNEL_1_PIO                      0x00000000 /* RWI-V */
  467. #define NV_PFIFO_MODE_CHANNEL_1_DMA                      0x00000001 /* RW--V */
  468. #define NV_PFIFO_MODE_CHANNEL_2                                 2:2 /* RWIVF */
  469. #define NV_PFIFO_MODE_CHANNEL_2_PIO                      0x00000000 /* RWI-V */
  470. #define NV_PFIFO_MODE_CHANNEL_2_DMA                      0x00000001 /* RW--V */
  471. #define NV_PFIFO_MODE_CHANNEL_3                                 3:3 /* RWIVF */
  472. #define NV_PFIFO_MODE_CHANNEL_3_PIO                      0x00000000 /* RWI-V */
  473. #define NV_PFIFO_MODE_CHANNEL_3_DMA                      0x00000001 /* RW--V */
  474. #define NV_PFIFO_MODE_CHANNEL_4                                 4:4 /* RWIVF */
  475. #define NV_PFIFO_MODE_CHANNEL_4_PIO                      0x00000000 /* RWI-V */
  476. #define NV_PFIFO_MODE_CHANNEL_4_DMA                      0x00000001 /* RW--V */
  477. #define NV_PFIFO_MODE_CHANNEL_5                                 5:5 /* RWIVF */
  478. #define NV_PFIFO_MODE_CHANNEL_5_PIO                      0x00000000 /* RWI-V */
  479. #define NV_PFIFO_MODE_CHANNEL_5_DMA                      0x00000001 /* RW--V */
  480. #define NV_PFIFO_MODE_CHANNEL_6                                 6:6 /* RWIVF */
  481. #define NV_PFIFO_MODE_CHANNEL_6_PIO                      0x00000000 /* RWI-V */
  482. #define NV_PFIFO_MODE_CHANNEL_6_DMA                      0x00000001 /* RW--V */
  483. #define NV_PFIFO_MODE_CHANNEL_7                                 7:7 /* RWIVF */
  484. #define NV_PFIFO_MODE_CHANNEL_7_PIO                      0x00000000 /* RWI-V */
  485. #define NV_PFIFO_MODE_CHANNEL_7_DMA                      0x00000001 /* RW--V */
  486. #define NV_PFIFO_MODE_CHANNEL_8                                 8:8 /* RWIVF */
  487. #define NV_PFIFO_MODE_CHANNEL_8_PIO                      0x00000000 /* RWI-V */
  488. #define NV_PFIFO_MODE_CHANNEL_8_DMA                      0x00000001 /* RW--V */
  489. #define NV_PFIFO_MODE_CHANNEL_9                                 9:9 /* RWIVF */
  490. #define NV_PFIFO_MODE_CHANNEL_9_PIO                      0x00000000 /* RWI-V */
  491. #define NV_PFIFO_MODE_CHANNEL_9_DMA                      0x00000001 /* RW--V */
  492. #define NV_PFIFO_MODE_CHANNEL_10                              10:10 /* RWIVF */
  493. #define NV_PFIFO_MODE_CHANNEL_10_PIO                     0x00000000 /* RWI-V */
  494. #define NV_PFIFO_MODE_CHANNEL_10_DMA                     0x00000001 /* RW--V */
  495. #define NV_PFIFO_MODE_CHANNEL_11                              11:11 /* RWIVF */
  496. #define NV_PFIFO_MODE_CHANNEL_11_PIO                     0x00000000 /* RWI-V */
  497. #define NV_PFIFO_MODE_CHANNEL_11_DMA                     0x00000001 /* RW--V */
  498. #define NV_PFIFO_MODE_CHANNEL_12                              12:12 /* RWIVF */
  499. #define NV_PFIFO_MODE_CHANNEL_12_PIO                     0x00000000 /* RWI-V */
  500. #define NV_PFIFO_MODE_CHANNEL_12_DMA                     0x00000001 /* RW--V */
  501. #define NV_PFIFO_MODE_CHANNEL_13                              13:13 /* RWIVF */
  502. #define NV_PFIFO_MODE_CHANNEL_13_PIO                     0x00000000 /* RWI-V */
  503. #define NV_PFIFO_MODE_CHANNEL_13_DMA                     0x00000001 /* RW--V */
  504. #define NV_PFIFO_MODE_CHANNEL_14                              14:14 /* RWIVF */
  505. #define NV_PFIFO_MODE_CHANNEL_14_PIO                     0x00000000 /* RWI-V */
  506. #define NV_PFIFO_MODE_CHANNEL_14_DMA                     0x00000001 /* RW--V */
  507. #define NV_PFIFO_MODE_CHANNEL_15                              15:15 /* RWIVF */
  508. #define NV_PFIFO_MODE_CHANNEL_15_PIO                     0x00000000 /* RWI-V */
  509. #define NV_PFIFO_MODE_CHANNEL_15_DMA                     0x00000001 /* RW--V */
  510. #define NV_PFIFO_DMA                                     0x00002508 /* RW-4R */
  511. #define NV_PFIFO_DMA_CHANNEL_0                                  0:0 /* RWIVF */
  512. #define NV_PFIFO_DMA_CHANNEL_0_NOT_PENDING               0x00000000 /* RWI-V */
  513. #define NV_PFIFO_DMA_CHANNEL_0_PENDING                   0x00000001 /* RW--V */
  514. #define NV_PFIFO_DMA_CHANNEL_1                                  1:1 /* RWIVF */
  515. #define NV_PFIFO_DMA_CHANNEL_1_NOT_PENDING               0x00000000 /* RWI-V */
  516. #define NV_PFIFO_DMA_CHANNEL_1_PENDING                   0x00000001 /* RW--V */
  517. #define NV_PFIFO_DMA_CHANNEL_2                                  2:2 /* RWIVF */
  518. #define NV_PFIFO_DMA_CHANNEL_2_NOT_PENDING               0x00000000 /* RWI-V */
  519. #define NV_PFIFO_DMA_CHANNEL_2_PENDING                   0x00000001 /* RW--V */
  520. #define NV_PFIFO_DMA_CHANNEL_3                                  3:3 /* RWIVF */
  521. #define NV_PFIFO_DMA_CHANNEL_3_NOT_PENDING               0x00000000 /* RWI-V */
  522. #define NV_PFIFO_DMA_CHANNEL_3_PENDING                   0x00000001 /* RW--V */
  523. #define NV_PFIFO_DMA_CHANNEL_4                                  4:4 /* RWIVF */
  524. #define NV_PFIFO_DMA_CHANNEL_4_NOT_PENDING               0x00000000 /* RWI-V */
  525. #define NV_PFIFO_DMA_CHANNEL_4_PENDING                   0x00000001 /* RW--V */
  526. #define NV_PFIFO_DMA_CHANNEL_5                                  5:5 /* RWIVF */
  527. #define NV_PFIFO_DMA_CHANNEL_5_NOT_PENDING               0x00000000 /* RWI-V */
  528. #define NV_PFIFO_DMA_CHANNEL_5_PENDING                   0x00000001 /* RW--V */
  529. #define NV_PFIFO_DMA_CHANNEL_6                                  6:6 /* RWIVF */
  530. #define NV_PFIFO_DMA_CHANNEL_6_NOT_PENDING               0x00000000 /* RWI-V */
  531. #define NV_PFIFO_DMA_CHANNEL_6_PENDING                   0x00000001 /* RW--V */
  532. #define NV_PFIFO_DMA_CHANNEL_7                                  7:7 /* RWIVF */
  533. #define NV_PFIFO_DMA_CHANNEL_7_NOT_PENDING               0x00000000 /* RWI-V */
  534. #define NV_PFIFO_DMA_CHANNEL_7_PENDING                   0x00000001 /* RW--V */
  535. #define NV_PFIFO_DMA_CHANNEL_8                                  8:8 /* RWIVF */
  536. #define NV_PFIFO_DMA_CHANNEL_8_NOT_PENDING               0x00000000 /* RWI-V */
  537. #define NV_PFIFO_DMA_CHANNEL_8_PENDING                   0x00000001 /* RW--V */
  538. #define NV_PFIFO_DMA_CHANNEL_9                                  9:9 /* RWIVF */
  539. #define NV_PFIFO_DMA_CHANNEL_9_NOT_PENDING               0x00000000 /* RWI-V */
  540. #define NV_PFIFO_DMA_CHANNEL_9_PENDING                   0x00000001 /* RW--V */
  541. #define NV_PFIFO_DMA_CHANNEL_10                               10:10 /* RWIVF */
  542. #define NV_PFIFO_DMA_CHANNEL_10_NOT_PENDING              0x00000000 /* RWI-V */
  543. #define NV_PFIFO_DMA_CHANNEL_10_PENDING                  0x00000001 /* RW--V */
  544. #define NV_PFIFO_DMA_CHANNEL_11                               11:11 /* RWIVF */
  545. #define NV_PFIFO_DMA_CHANNEL_11_NOT_PENDING              0x00000000 /* RWI-V */
  546. #define NV_PFIFO_DMA_CHANNEL_11_PENDING                  0x00000001 /* RW--V */
  547. #define NV_PFIFO_DMA_CHANNEL_12                               12:12 /* RWIVF */
  548. #define NV_PFIFO_DMA_CHANNEL_12_NOT_PENDING              0x00000000 /* RWI-V */
  549. #define NV_PFIFO_DMA_CHANNEL_12_PENDING                  0x00000001 /* RW--V */
  550. #define NV_PFIFO_DMA_CHANNEL_13                               13:13 /* RWIVF */
  551. #define NV_PFIFO_DMA_CHANNEL_13_NOT_PENDING              0x00000000 /* RWI-V */
  552. #define NV_PFIFO_DMA_CHANNEL_13_PENDING                  0x00000001 /* RW--V */
  553. #define NV_PFIFO_DMA_CHANNEL_14                               14:14 /* RWIVF */
  554. #define NV_PFIFO_DMA_CHANNEL_14_NOT_PENDING              0x00000000 /* RWI-V */
  555. #define NV_PFIFO_DMA_CHANNEL_14_PENDING                  0x00000001 /* RW--V */
  556. #define NV_PFIFO_DMA_CHANNEL_15                               15:15 /* RWIVF */
  557. #define NV_PFIFO_DMA_CHANNEL_15_NOT_PENDING              0x00000000 /* RWI-V */
  558. #define NV_PFIFO_DMA_CHANNEL_15_PENDING                  0x00000001 /* RW--V */
  559. #define NV_PFIFO_SIZE                                    0x0000250C /* RW-4R */
  560. #define NV_PFIFO_SIZE_CHANNEL_0                                 0:0 /* RWIVF */
  561. #define NV_PFIFO_SIZE_CHANNEL_0_124_BYTES                0x00000000 /* RWI-V */
  562. #define NV_PFIFO_SIZE_CHANNEL_0_512_BYTES                0x00000001 /* RW--V */
  563. #define NV_PFIFO_SIZE_CHANNEL_1                                 1:1 /* RWIVF */
  564. #define NV_PFIFO_SIZE_CHANNEL_1_124_BYTES                0x00000000 /* RWI-V */
  565. #define NV_PFIFO_SIZE_CHANNEL_1_512_BYTES                0x00000001 /* RW--V */
  566. #define NV_PFIFO_SIZE_CHANNEL_2                                 2:2 /* RWIVF */
  567. #define NV_PFIFO_SIZE_CHANNEL_2_124_BYTES                0x00000000 /* RWI-V */
  568. #define NV_PFIFO_SIZE_CHANNEL_2_512_BYTES                0x00000001 /* RW--V */
  569. #define NV_PFIFO_SIZE_CHANNEL_3                                 3:3 /* RWIVF */
  570. #define NV_PFIFO_SIZE_CHANNEL_3_124_BYTES                0x00000000 /* RWI-V */
  571. #define NV_PFIFO_SIZE_CHANNEL_3_512_BYTES                0x00000001 /* RW--V */
  572. #define NV_PFIFO_SIZE_CHANNEL_4                                 4:4 /* RWIVF */
  573. #define NV_PFIFO_SIZE_CHANNEL_4_124_BYTES                0x00000000 /* RWI-V */
  574. #define NV_PFIFO_SIZE_CHANNEL_4_512_BYTES                0x00000001 /* RW--V */
  575. #define NV_PFIFO_SIZE_CHANNEL_5                                 5:5 /* RWIVF */
  576. #define NV_PFIFO_SIZE_CHANNEL_5_124_BYTES                0x00000000 /* RWI-V */
  577. #define NV_PFIFO_SIZE_CHANNEL_5_512_BYTES                0x00000001 /* RW--V */
  578. #define NV_PFIFO_SIZE_CHANNEL_6                                 6:6 /* RWIVF */
  579. #define NV_PFIFO_SIZE_CHANNEL_6_124_BYTES                0x00000000 /* RWI-V */
  580. #define NV_PFIFO_SIZE_CHANNEL_6_512_BYTES                0x00000001 /* RW--V */
  581. #define NV_PFIFO_SIZE_CHANNEL_7                                 7:7 /* RWIVF */
  582. #define NV_PFIFO_SIZE_CHANNEL_7_124_BYTES                0x00000000 /* RWI-V */
  583. #define NV_PFIFO_SIZE_CHANNEL_7_512_BYTES                0x00000001 /* RW--V */
  584. #define NV_PFIFO_SIZE_CHANNEL_8                                 8:8 /* RWIVF */
  585. #define NV_PFIFO_SIZE_CHANNEL_8_124_BYTES                0x00000000 /* RWI-V */
  586. #define NV_PFIFO_SIZE_CHANNEL_8_512_BYTES                0x00000001 /* RW--V */
  587. #define NV_PFIFO_SIZE_CHANNEL_9                                 9:9 /* RWIVF */
  588. #define NV_PFIFO_SIZE_CHANNEL_9_124_BYTES                0x00000000 /* RWI-V */
  589. #define NV_PFIFO_SIZE_CHANNEL_9_512_BYTES                0x00000001 /* RW--V */
  590. #define NV_PFIFO_SIZE_CHANNEL_10                              10:10 /* RWIVF */
  591. #define NV_PFIFO_SIZE_CHANNEL_10_124_BYTES               0x00000000 /* RWI-V */
  592. #define NV_PFIFO_SIZE_CHANNEL_10_512_BYTES               0x00000001 /* RW--V */
  593. #define NV_PFIFO_SIZE_CHANNEL_11                              11:11 /* RWIVF */
  594. #define NV_PFIFO_SIZE_CHANNEL_11_124_BYTES               0x00000000 /* RWI-V */
  595. #define NV_PFIFO_SIZE_CHANNEL_11_512_BYTES               0x00000001 /* RW--V */
  596. #define NV_PFIFO_SIZE_CHANNEL_12                              12:12 /* RWIVF */
  597. #define NV_PFIFO_SIZE_CHANNEL_12_124_BYTES               0x00000000 /* RWI-V */
  598. #define NV_PFIFO_SIZE_CHANNEL_12_512_BYTES               0x00000001 /* RW--V */
  599. #define NV_PFIFO_SIZE_CHANNEL_13                              13:13 /* RWIVF */
  600. #define NV_PFIFO_SIZE_CHANNEL_13_124_BYTES               0x00000000 /* RWI-V */
  601. #define NV_PFIFO_SIZE_CHANNEL_13_512_BYTES               0x00000001 /* RW--V */
  602. #define NV_PFIFO_SIZE_CHANNEL_14                              14:14 /* RWIVF */
  603. #define NV_PFIFO_SIZE_CHANNEL_14_124_BYTES               0x00000000 /* RWI-V */
  604. #define NV_PFIFO_SIZE_CHANNEL_14_512_BYTES               0x00000001 /* RW--V */
  605. #define NV_PFIFO_SIZE_CHANNEL_15                              15:15 /* RWIVF */
  606. #define NV_PFIFO_SIZE_CHANNEL_15_124_BYTES               0x00000000 /* RWI-V */
  607. #define NV_PFIFO_SIZE_CHANNEL_15_512_BYTES               0x00000001 /* RW--V */
  608. #define NV_PFIFO_CACHE0_PUSH0                            0x00003000 /* RW-4R */
  609. #define NV_PFIFO_CACHE0_PUSH0_ACCESS                            0:0 /* RWIVF */
  610. #define NV_PFIFO_CACHE0_PUSH0_ACCESS_DISABLED            0x00000000 /* RWI-V */
  611. #define NV_PFIFO_CACHE0_PUSH0_ACCESS_ENABLED             0x00000001 /* RW--V */
  612. #define NV_PFIFO_CACHE1_PUSH0                            0x00003200 /* RW-4R */
  613. #define NV_PFIFO_CACHE1_PUSH0_ACCESS                            0:0 /* RWIVF */
  614. #define NV_PFIFO_CACHE1_PUSH0_ACCESS_DISABLED            0x00000000 /* RWI-V */
  615. #define NV_PFIFO_CACHE1_PUSH0_ACCESS_ENABLED             0x00000001 /* RW--V */
  616. #define NV_PFIFO_CACHE0_PUSH1                            0x00003004 /* RW-4R */
  617. #define NV_PFIFO_CACHE0_PUSH1_CHID                              3:0 /* RWXUF */
  618. #define NV_PFIFO_CACHE1_PUSH1                            0x00003204 /* RW-4R */
  619. #define NV_PFIFO_CACHE1_PUSH1_CHID                              3:0 /* RWXUF */
  620. #define NV_PFIFO_CACHE1_PUSH1_MODE                              8:8 /* RWIVF */
  621. #define NV_PFIFO_CACHE1_PUSH1_MODE_PIO                   0x00000000 /* RWI-V */
  622. #define NV_PFIFO_CACHE1_PUSH1_MODE_DMA                   0x00000001 /* RW--V */
  623. #define NV_PFIFO_CACHE1_DMA_PUSH                         0x00003220 /* RW-4R */
  624. #define NV_PFIFO_CACHE1_DMA_PUSH_ACCESS                         0:0 /* RWIVF */
  625. #define NV_PFIFO_CACHE1_DMA_PUSH_ACCESS_DISABLED         0x00000000 /* RWI-V */
  626. #define NV_PFIFO_CACHE1_DMA_PUSH_ACCESS_ENABLED          0x00000001 /* RW--V */
  627. #define NV_PFIFO_CACHE1_DMA_PUSH_STATE                          4:4 /* R--VF */
  628. #define NV_PFIFO_CACHE1_DMA_PUSH_STATE_IDLE              0x00000000 /* R---V */
  629. #define NV_PFIFO_CACHE1_DMA_PUSH_STATE_BUSY              0x00000001 /* R---V */
  630. #define NV_PFIFO_CACHE1_DMA_PUSH_BUFFER                         8:8 /* R--VF */
  631. #define NV_PFIFO_CACHE1_DMA_PUSH_BUFFER_NOT_EMPTY        0x00000000 /* R---V */
  632. #define NV_PFIFO_CACHE1_DMA_PUSH_BUFFER_EMPTY            0x00000001 /* R---V */
  633. #define NV_PFIFO_CACHE1_DMA_PUSH_STATUS                       12:12 /* RWIVF */
  634. #define NV_PFIFO_CACHE1_DMA_PUSH_STATUS_RUNNING          0x00000000 /* RWI-V */
  635. #define NV_PFIFO_CACHE1_DMA_PUSH_STATUS_SUSPENDED        0x00000001 /* RW--V */
  636. #define NV_PFIFO_CACHE1_DMA_FETCH                        0x00003224 /* RW-4R */
  637. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG                          7:3 /* RWIUF */
  638. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_8_BYTES           0x00000000 /* RW--V */
  639. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_16_BYTES          0x00000001 /* RW--V */
  640. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_24_BYTES          0x00000002 /* RW--V */
  641. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_32_BYTES          0x00000003 /* RW--V */
  642. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_40_BYTES          0x00000004 /* RW--V */
  643. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_48_BYTES          0x00000005 /* RW--V */
  644. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_56_BYTES          0x00000006 /* RW--V */
  645. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_64_BYTES          0x00000007 /* RW--V */
  646. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_72_BYTES          0x00000008 /* RW--V */
  647. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_80_BYTES          0x00000009 /* RW--V */
  648. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_88_BYTES          0x0000000A /* RW--V */
  649. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_96_BYTES          0x0000000B /* RW--V */
  650. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_104_BYTES         0x0000000C /* RW--V */
  651. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_112_BYTES         0x0000000D /* RW--V */
  652. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_120_BYTES         0x0000000E /* RW--V */
  653. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_128_BYTES         0x0000000F /* RWI-V */
  654. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_136_BYTES         0x00000010 /* RW--V */
  655. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_144_BYTES         0x00000011 /* RW--V */
  656. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_152_BYTES         0x00000012 /* RW--V */
  657. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_160_BYTES         0x00000013 /* RW--V */
  658. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_168_BYTES         0x00000014 /* RW--V */
  659. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_176_BYTES         0x00000015 /* RW--V */
  660. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_184_BYTES         0x00000016 /* RW--V */
  661. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_192_BYTES         0x00000017 /* RW--V */
  662. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_200_BYTES         0x00000018 /* RW--V */
  663. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_208_BYTES         0x00000019 /* RW--V */
  664. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_216_BYTES         0x0000001A /* RW--V */
  665. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_224_BYTES         0x0000001B /* RW--V */
  666. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_232_BYTES         0x0000001C /* RW--V */
  667. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_240_BYTES         0x0000001D /* RW--V */
  668. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_248_BYTES         0x0000001E /* RW--V */
  669. #define NV_PFIFO_CACHE1_DMA_FETCH_TRIG_256_BYTES         0x0000001F /* RW--V */
  670. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE                        15:13 /* RWIUF */
  671. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_32_BYTES          0x00000000 /* RW--V */
  672. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_64_BYTES          0x00000001 /* RW--V */
  673. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_96_BYTES          0x00000002 /* RW--V */
  674. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_128_BYTES         0x00000003 /* RWI-V */
  675. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_160_BYTES         0x00000004 /* RW--V */
  676. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_192_BYTES         0x00000005 /* RW--V */
  677. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_224_BYTES         0x00000006 /* RW--V */
  678. #define NV_PFIFO_CACHE1_DMA_FETCH_SIZE_256_BYTES         0x00000007 /* RW--V */
  679. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS                    19:16 /* RWIUF */
  680. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_0             0x00000000 /* RWI-V */
  681. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_1             0x00000001 /* RW--V */
  682. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_2             0x00000002 /* RW--V */
  683. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_3             0x00000003 /* RW--V */
  684. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_4             0x00000004 /* RW--V */
  685. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_5             0x00000005 /* RW--V */
  686. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_6             0x00000006 /* RW--V */
  687. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_7             0x00000007 /* RW--V */
  688. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_8             0x00000008 /* RW--V */
  689. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_9             0x00000009 /* RW--V */
  690. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_10            0x0000000A /* RW--V */
  691. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_11            0x0000000B /* RW--V */
  692. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_12            0x0000000C /* RW--V */
  693. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_13            0x0000000D /* RW--V */
  694. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_14            0x0000000E /* RW--V */
  695. #define NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_15            0x0000000F /* RW--V */
  696. #define NV_PFIFO_CACHE1_DMA_PUT                          0x00003240 /* RW-4R */
  697. #define NV_PFIFO_CACHE1_DMA_PUT_OFFSET                         28:2 /* RWXUF */
  698. #define NV_PFIFO_CACHE1_DMA_GET                          0x00003244 /* RW-4R */
  699. #define NV_PFIFO_CACHE1_DMA_GET_OFFSET                         28:2 /* RWXUF */
  700. #define NV_PFIFO_CACHE1_DMA_STATE                        0x00003228 /* RW-4R */
  701. #define NV_PFIFO_CACHE1_DMA_STATE_METHOD                       12:2 /* RWXUF */
  702. #define NV_PFIFO_CACHE1_DMA_STATE_SUBCHANNEL                  15:13 /* RWXUF */
  703. #define NV_PFIFO_CACHE1_DMA_STATE_METHOD_COUNT                28:18 /* RWIUF */
  704. #define NV_PFIFO_CACHE1_DMA_STATE_METHOD_COUNT_0         0x00000000 /* RWI-V */
  705. #define NV_PFIFO_CACHE1_DMA_STATE_ERROR                       31:30 /* RWXUF */
  706. #define NV_PFIFO_CACHE1_DMA_STATE_ERROR_NONE             0x00000000 /* RW--V */
  707. #define NV_PFIFO_CACHE1_DMA_STATE_ERROR_NON_CACHE        0x00000001 /* RW--V */
  708. #define NV_PFIFO_CACHE1_DMA_STATE_ERROR_RESERVED_CMD     0x00000002 /* RW--V */
  709. #define NV_PFIFO_CACHE1_DMA_STATE_ERROR_PROTECTION       0x00000003 /* RW--V */
  710. #define NV_PFIFO_CACHE1_DMA_INSTANCE                     0x0000322C /* RW-4R */
  711. #define NV_PFIFO_CACHE1_DMA_INSTANCE_ADDRESS                   15:0 /* RWXUF */
  712. #define NV_PFIFO_CACHE1_DMA_CTL                          0x00003230 /* RW-4R */
  713. #define NV_PFIFO_CACHE1_DMA_CTL_ADJUST                         11:2 /* RWXUF */
  714. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_TABLE                    12:12 /* RWXUF */
  715. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_TABLE_NOT_PRESENT   0x00000000 /* RW--V */
  716. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_TABLE_PRESENT       0x00000001 /* RW--V */
  717. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_ENTRY                    13:13 /* RWXUF */
  718. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_ENTRY_NOT_LINEAR    0x00000000 /* RW--V */
  719. #define NV_PFIFO_CACHE1_DMA_CTL_PAGE_ENTRY_LINEAR        0x00000001 /* RW--V */
  720. #define NV_PFIFO_CACHE1_DMA_CTL_TARGET_NODE                   17:16 /* RWXUF */
  721. #define NV_PFIFO_CACHE1_DMA_CTL_TARGET_NODE_PCI          0x00000002 /* RW--V */
  722. #define NV_PFIFO_CACHE1_DMA_CTL_TARGET_NODE_AGP          0x00000003 /* RW--V */
  723. #define NV_PFIFO_CACHE1_DMA_CTL_AT_INFO                       31:31 /* RWIUF */
  724. #define NV_PFIFO_CACHE1_DMA_CTL_AT_INFO_INVALID          0x00000000 /* RW--V */
  725. #define NV_PFIFO_CACHE1_DMA_CTL_AT_INFO_VALID            0x00000001 /* RWI-V */
  726. #define NV_PFIFO_CACHE1_DMA_LIMIT                        0x00003234 /* RW-4R */
  727. #define NV_PFIFO_CACHE1_DMA_LIMIT_OFFSET                       28:2 /* RWXUF */
  728. #define NV_PFIFO_CACHE1_DMA_TLB_TAG                      0x00003238 /* RW-4R */
  729. #define NV_PFIFO_CACHE1_DMA_TLB_TAG_ADDRESS                   28:12 /* RWXUF */
  730. #define NV_PFIFO_CACHE1_DMA_TLB_TAG_STATE                       0:0 /* RWIUF */
  731. #define NV_PFIFO_CACHE1_DMA_TLB_TAG_STATE_INVALID        0x00000000 /* RWI-V */
  732. #define NV_PFIFO_CACHE1_DMA_TLB_TAG_STATE_VALID          0x00000001 /* RW--V */
  733. #define NV_PFIFO_CACHE1_DMA_TLB_PTE                      0x0000323C /* RW-4R */
  734. #define NV_PFIFO_CACHE1_DMA_TLB_PTE_FRAME_ADDRESS             31:12 /* RWXUF */
  735. #define NV_PFIFO_CACHE0_PULL0                            0x00003050 /* RW-4R */
  736. #define NV_PFIFO_CACHE0_PULL0_ACCESS                            0:0 /* RWIVF */
  737. #define NV_PFIFO_CACHE0_PULL0_ACCESS_DISABLED            0x00000000 /* RWI-V */
  738. #define NV_PFIFO_CACHE0_PULL0_ACCESS_ENABLED             0x00000001 /* RW--V */
  739. #define NV_PFIFO_CACHE0_PULL0_HASH                              4:4 /* R-XVF */
  740. #define NV_PFIFO_CACHE0_PULL0_HASH_SUCCEEDED             0x00000000 /* R---V */
  741. #define NV_PFIFO_CACHE0_PULL0_HASH_FAILED                0x00000001 /* R---V */
  742. #define NV_PFIFO_CACHE0_PULL0_DEVICE                            8:8 /* R-XVF */
  743. #define NV_PFIFO_CACHE0_PULL0_DEVICE_HARDWARE            0x00000000 /* R---V */
  744. #define NV_PFIFO_CACHE0_PULL0_DEVICE_SOFTWARE            0x00000001 /* R---V */
  745. #define NV_PFIFO_CACHE0_PULL0_HASH_STATE                      12:12 /* R-XVF */
  746. #define NV_PFIFO_CACHE0_PULL0_HASH_STATE_IDLE            0x00000000 /* R---V */
  747. #define NV_PFIFO_CACHE0_PULL0_HASH_STATE_BUSY            0x00000001 /* R---V */
  748. #define NV_PFIFO_CACHE1_PULL0                            0x00003250 /* RW-4R */
  749. #define NV_PFIFO_CACHE1_PULL0_ACCESS                            0:0 /* RWIVF */
  750. #define NV_PFIFO_CACHE1_PULL0_ACCESS_DISABLED            0x00000000 /* RWI-V */
  751. #define NV_PFIFO_CACHE1_PULL0_ACCESS_ENABLED             0x00000001 /* RW--V */
  752. #define NV_PFIFO_CACHE1_PULL0_HASH                              4:4 /* R-XVF */
  753. #define NV_PFIFO_CACHE1_PULL0_HASH_SUCCEEDED             0x00000000 /* R---V */
  754. #define NV_PFIFO_CACHE1_PULL0_HASH_FAILED                0x00000001 /* R---V */
  755. #define NV_PFIFO_CACHE1_PULL0_DEVICE                            8:8 /* R-XVF */
  756. #define NV_PFIFO_CACHE1_PULL0_DEVICE_HARDWARE            0x00000000 /* R---V */
  757. #define NV_PFIFO_CACHE1_PULL0_DEVICE_SOFTWARE            0x00000001 /* R---V */
  758. #define NV_PFIFO_CACHE1_PULL0_HASH_STATE                      12:12 /* R-XVF */
  759. #define NV_PFIFO_CACHE1_PULL0_HASH_STATE_IDLE            0x00000000 /* R---V */
  760. #define NV_PFIFO_CACHE1_PULL0_HASH_STATE_BUSY            0x00000001 /* R---V */
  761. #define NV_PFIFO_CACHE0_PULL1                            0x00003054 /* RW-4R */
  762. #define NV_PFIFO_CACHE0_PULL1_ENGINE                            1:0 /* RWXUF */
  763. #define NV_PFIFO_CACHE0_PULL1_ENGINE_SW                  0x00000000 /* RW--V */
  764. #define NV_PFIFO_CACHE0_PULL1_ENGINE_GRAPHICS            0x00000001 /* RW--V */
  765. #define NV_PFIFO_CACHE0_PULL1_ENGINE_DVD                 0x00000002 /* RW--V */
  766. #define NV_PFIFO_CACHE1_PULL1                            0x00003254 /* RW-4R */
  767. #define NV_PFIFO_CACHE1_PULL1_ENGINE                            1:0 /* RWXUF */
  768. #define NV_PFIFO_CACHE1_PULL1_ENGINE_SW                  0x00000000 /* RW--V */
  769. #define NV_PFIFO_CACHE1_PULL1_ENGINE_GRAPHICS            0x00000001 /* RW--V */
  770. #define NV_PFIFO_CACHE1_PULL1_ENGINE_DVD                 0x00000002 /* RW--V */
  771. #define NV_PFIFO_CACHE0_HASH                             0x00003058 /* RW-4R */
  772. #define NV_PFIFO_CACHE0_HASH_INSTANCE                          15:0 /* RWXUF */
  773. #define NV_PFIFO_CACHE0_HASH_VALID                            16:16 /* RWXVF */
  774. #define NV_PFIFO_CACHE1_HASH                             0x00003258 /* RW-4R */
  775. #define NV_PFIFO_CACHE1_HASH_INSTANCE                          15:0 /* RWXUF */
  776. #define NV_PFIFO_CACHE1_HASH_VALID                            16:16 /* RWXVF */
  777. #define NV_PFIFO_CACHE0_STATUS                           0x00003014 /* R--4R */
  778. #define NV_PFIFO_CACHE0_STATUS_LOW_MARK                         4:4 /* R--VF */
  779. #define NV_PFIFO_CACHE0_STATUS_LOW_MARK_NOT_EMPTY        0x00000000 /* R---V */
  780. #define NV_PFIFO_CACHE0_STATUS_LOW_MARK_EMPTY            0x00000001 /* R---V */
  781. #define NV_PFIFO_CACHE0_STATUS_HIGH_MARK                        8:8 /* R--VF */
  782. #define NV_PFIFO_CACHE0_STATUS_HIGH_MARK_NOT_FULL        0x00000000 /* R---V */
  783. #define NV_PFIFO_CACHE0_STATUS_HIGH_MARK_FULL            0x00000001 /* R---V */
  784. #define NV_PFIFO_CACHE1_STATUS                           0x00003214 /* R--4R */
  785. #define NV_PFIFO_CACHE1_STATUS_LOW_MARK                         4:4 /* R--VF */
  786. #define NV_PFIFO_CACHE1_STATUS_LOW_MARK_NOT_EMPTY        0x00000000 /* R---V */
  787. #define NV_PFIFO_CACHE1_STATUS_LOW_MARK_EMPTY            0x00000001 /* R---V */
  788. #define NV_PFIFO_CACHE1_STATUS_HIGH_MARK                        8:8 /* R--VF */
  789. #define NV_PFIFO_CACHE1_STATUS_HIGH_MARK_NOT_FULL        0x00000000 /* R---V */
  790. #define NV_PFIFO_CACHE1_STATUS_HIGH_MARK_FULL            0x00000001 /* R---V */
  791. #define NV_PFIFO_CACHE1_STATUS1                          0x00003218 /* R--4R */
  792. #define NV_PFIFO_CACHE1_STATUS1_RANOUT                          0:0 /* R-XVF */
  793. #define NV_PFIFO_CACHE1_STATUS1_RANOUT_FALSE             0x00000000 /* R---V */
  794. #define NV_PFIFO_CACHE1_STATUS1_RANOUT_TRUE              0x00000001 /* R---V */
  795. #define NV_PFIFO_CACHE0_PUT                              0x00003010 /* RW-4R */
  796. #define NV_PFIFO_CACHE0_PUT_ADDRESS                             2:2 /* RWXUF */
  797. #define NV_PFIFO_CACHE1_PUT                              0x00003210 /* RW-4R */
  798. #define NV_PFIFO_CACHE1_PUT_ADDRESS                             9:2 /* RWXUF */
  799. #define NV_PFIFO_CACHE0_GET                              0x00003070 /* RW-4R */
  800. #define NV_PFIFO_CACHE0_GET_ADDRESS                             2:2 /* RWXUF */
  801. #define NV_PFIFO_CACHE1_GET                              0x00003270 /* RW-4R */
  802. #define NV_PFIFO_CACHE1_GET_ADDRESS                             9:2 /* RWXUF */
  803. #define NV_PFIFO_CACHE0_ENGINE                           0x00003080 /* RW-4R */
  804. #define NV_PFIFO_CACHE0_ENGINE_0                                1:0 /* RWXUF */
  805. #define NV_PFIFO_CACHE0_ENGINE_0_SW                      0x00000000 /* RW--V */
  806. #define NV_PFIFO_CACHE0_ENGINE_0_GRAPHICS                0x00000001 /* RW--V */
  807. #define NV_PFIFO_CACHE0_ENGINE_0_DVD                     0x00000002 /* RW--V */
  808. #define NV_PFIFO_CACHE0_ENGINE_1                                5:4 /* RWXUF */
  809. #define NV_PFIFO_CACHE0_ENGINE_1_SW                      0x00000000 /* RW--V */
  810. #define NV_PFIFO_CACHE0_ENGINE_1_GRAPHICS                0x00000001 /* RW--V */
  811. #define NV_PFIFO_CACHE0_ENGINE_1_DVD                     0x00000002 /* RW--V */
  812. #define NV_PFIFO_CACHE0_ENGINE_2                                9:8 /* RWXUF */
  813. #define NV_PFIFO_CACHE0_ENGINE_2_SW                      0x00000000 /* RW--V */
  814. #define NV_PFIFO_CACHE0_ENGINE_2_GRAPHICS                0x00000001 /* RW--V */
  815. #define NV_PFIFO_CACHE0_ENGINE_2_DVD                     0x00000002 /* RW--V */
  816. #define NV_PFIFO_CACHE0_ENGINE_3                              13:12 /* RWXUF */
  817. #define NV_PFIFO_CACHE0_ENGINE_3_SW                      0x00000000 /* RW--V */
  818. #define NV_PFIFO_CACHE0_ENGINE_3_GRAPHICS                0x00000001 /* RW--V */
  819. #define NV_PFIFO_CACHE0_ENGINE_3_DVD                     0x00000002 /* RW--V */
  820. #define NV_PFIFO_CACHE0_ENGINE_4                              17:16 /* RWXUF */
  821. #define NV_PFIFO_CACHE0_ENGINE_4_SW                      0x00000000 /* RW--V */
  822. #define NV_PFIFO_CACHE0_ENGINE_4_GRAPHICS                0x00000001 /* RW--V */
  823. #define NV_PFIFO_CACHE0_ENGINE_4_DVD                     0x00000002 /* RW--V */
  824. #define NV_PFIFO_CACHE0_ENGINE_5                              21:20 /* RWXUF */
  825. #define NV_PFIFO_CACHE0_ENGINE_5_SW                      0x00000000 /* RW--V */
  826. #define NV_PFIFO_CACHE0_ENGINE_5_GRAPHICS                0x00000001 /* RW--V */
  827. #define NV_PFIFO_CACHE0_ENGINE_5_DVD                     0x00000002 /* RW--V */
  828. #define NV_PFIFO_CACHE0_ENGINE_6                              25:24 /* RWXUF */
  829. #define NV_PFIFO_CACHE0_ENGINE_6_SW                      0x00000000 /* RW--V */
  830. #define NV_PFIFO_CACHE0_ENGINE_6_GRAPHICS                0x00000001 /* RW--V */
  831. #define NV_PFIFO_CACHE0_ENGINE_6_DVD                     0x00000002 /* RW--V */
  832. #define NV_PFIFO_CACHE0_ENGINE_7                              29:28 /* RWXUF */
  833. #define NV_PFIFO_CACHE0_ENGINE_7_SW                      0x00000000 /* RW--V */
  834. #define NV_PFIFO_CACHE0_ENGINE_7_GRAPHICS                0x00000001 /* RW--V */
  835. #define NV_PFIFO_CACHE0_ENGINE_7_DVD                     0x00000002 /* RW--V */
  836. #define NV_PFIFO_CACHE1_ENGINE                           0x00003280 /* RW-4R */
  837. #define NV_PFIFO_CACHE1_ENGINE_0                                1:0 /* RWXUF */
  838. #define NV_PFIFO_CACHE1_ENGINE_0_SW                      0x00000000 /* RW--V */
  839. #define NV_PFIFO_CACHE1_ENGINE_0_GRAPHICS                0x00000001 /* RW--V */
  840. #define NV_PFIFO_CACHE1_ENGINE_0_DVD                     0x00000002 /* RW--V */
  841. #define NV_PFIFO_CACHE1_ENGINE_1                                5:4 /* RWXUF */
  842. #define NV_PFIFO_CACHE1_ENGINE_1_SW                      0x00000000 /* RW--V */
  843. #define NV_PFIFO_CACHE1_ENGINE_1_GRAPHICS                0x00000001 /* RW--V */
  844. #define NV_PFIFO_CACHE1_ENGINE_1_DVD                     0x00000002 /* RW--V */
  845. #define NV_PFIFO_CACHE1_ENGINE_2                                9:8 /* RWXUF */
  846. #define NV_PFIFO_CACHE1_ENGINE_2_SW                      0x00000000 /* RW--V */
  847. #define NV_PFIFO_CACHE1_ENGINE_2_GRAPHICS                0x00000001 /* RW--V */
  848. #define NV_PFIFO_CACHE1_ENGINE_2_DVD                     0x00000002 /* RW--V */
  849. #define NV_PFIFO_CACHE1_ENGINE_3                              13:12 /* RWXUF */
  850. #define NV_PFIFO_CACHE1_ENGINE_3_SW                      0x00000000 /* RW--V */
  851. #define NV_PFIFO_CACHE1_ENGINE_3_GRAPHICS                0x00000001 /* RW--V */
  852. #define NV_PFIFO_CACHE1_ENGINE_3_DVD                     0x00000002 /* RW--V */
  853. #define NV_PFIFO_CACHE1_ENGINE_4                              17:16 /* RWXUF */
  854. #define NV_PFIFO_CACHE1_ENGINE_4_SW                      0x00000000 /* RW--V */
  855. #define NV_PFIFO_CACHE1_ENGINE_4_GRAPHICS                0x00000001 /* RW--V */
  856. #define NV_PFIFO_CACHE1_ENGINE_4_DVD                     0x00000002 /* RW--V */
  857. #define NV_PFIFO_CACHE1_ENGINE_5                              21:20 /* RWXUF */
  858. #define NV_PFIFO_CACHE1_ENGINE_5_SW                      0x00000000 /* RW--V */
  859. #define NV_PFIFO_CACHE1_ENGINE_5_GRAPHICS                0x00000001 /* RW--V */
  860. #define NV_PFIFO_CACHE1_ENGINE_5_DVD                     0x00000002 /* RW--V */
  861. #define NV_PFIFO_CACHE1_ENGINE_6                              25:24 /* RWXUF */
  862. #define NV_PFIFO_CACHE1_ENGINE_6_SW                      0x00000000 /* RW--V */
  863. #define NV_PFIFO_CACHE1_ENGINE_6_GRAPHICS                0x00000001 /* RW--V */
  864. #define NV_PFIFO_CACHE1_ENGINE_6_DVD                     0x00000002 /* RW--V */
  865. #define NV_PFIFO_CACHE1_ENGINE_7                              29:28 /* RWXUF */
  866. #define NV_PFIFO_CACHE1_ENGINE_7_SW                      0x00000000 /* RW--V */
  867. #define NV_PFIFO_CACHE1_ENGINE_7_GRAPHICS                0x00000001 /* RW--V */
  868. #define NV_PFIFO_CACHE1_ENGINE_7_DVD                     0x00000002 /* RW--V */
  869. #define NV_PFIFO_CACHE0_METHOD(i)                (0x00003100+(i)*8) /* RW-4A */
  870. #define NV_PFIFO_CACHE0_METHOD__SIZE_1                            1 /*       */
  871. #define NV_PFIFO_CACHE0_METHOD_ADDRESS                         12:2 /* RWXUF */
  872. #define NV_PFIFO_CACHE0_METHOD_SUBCHANNEL                     15:13 /* RWXUF */
  873. #define NV_PFIFO_CACHE1_METHOD(i)                (0x00003800+(i)*8) /* RW-4A */
  874. #define NV_PFIFO_CACHE1_METHOD__SIZE_1                          128 /*       */
  875. #define NV_PFIFO_CACHE1_METHOD_ADDRESS                         12:2 /* RWXUF */
  876. #define NV_PFIFO_CACHE1_METHOD_SUBCHANNEL                     15:13 /* RWXUF */
  877. #define NV_PFIFO_CACHE1_METHOD_ALIAS(i)          (0x00003C00+(i)*8) /* RW-4A */
  878. #define NV_PFIFO_CACHE1_METHOD_ALIAS__SIZE_1                    128 /*       */
  879. #define NV_PFIFO_CACHE0_DATA(i)                  (0x00003104+(i)*8) /* RW-4A */
  880. #define NV_PFIFO_CACHE0_DATA__SIZE_1                              1 /*       */
  881. #define NV_PFIFO_CACHE0_DATA_VALUE                             31:0 /* RWXVF */
  882. #define NV_PFIFO_CACHE1_DATA(i)                  (0x00003804+(i)*8) /* RW-4A */
  883. #define NV_PFIFO_CACHE1_DATA__SIZE_1                            128 /*       */
  884. #define NV_PFIFO_CACHE1_DATA_VALUE                             31:0 /* RWXVF */
  885. #define NV_PFIFO_CACHE1_DATA_ALIAS(i)            (0x00003C04+(i)*8) /* RW-4A */
  886. #define NV_PFIFO_CACHE1_DATA_ALIAS__SIZE_1                      128 /*       */
  887. #define NV_PFIFO_DEVICE(i)                       (0x00002800+(i)*4) /* R--4A */
  888. #define NV_PFIFO_DEVICE__SIZE_1                                 128 /*       */
  889. #define NV_PFIFO_DEVICE_CHID                                    3:0 /* R--UF */
  890. #define NV_PFIFO_DEVICE_SWITCH                                24:24 /* R--VF */
  891. #define NV_PFIFO_DEVICE_SWITCH_UNAVAILABLE               0x00000000 /* R---V */
  892. #define NV_PFIFO_DEVICE_SWITCH_AVAILABLE                 0x00000001 /* R---V */
  893. #define NV_PFIFO_RUNOUT_STATUS                           0x00002400 /* R--4R */
  894. #define NV_PFIFO_RUNOUT_STATUS_RANOUT                           0:0 /* R--VF */
  895. #define NV_PFIFO_RUNOUT_STATUS_RANOUT_FALSE              0x00000000 /* R---V */
  896. #define NV_PFIFO_RUNOUT_STATUS_RANOUT_TRUE               0x00000001 /* R---V */
  897. #define NV_PFIFO_RUNOUT_STATUS_LOW_MARK                         4:4 /* R--VF */
  898. #define NV_PFIFO_RUNOUT_STATUS_LOW_MARK_NOT_EMPTY        0x00000000 /* R---V */
  899. #define NV_PFIFO_RUNOUT_STATUS_LOW_MARK_EMPTY            0x00000001 /* R---V */
  900. #define NV_PFIFO_RUNOUT_STATUS_HIGH_MARK                        8:8 /* R--VF */
  901. #define NV_PFIFO_RUNOUT_STATUS_HIGH_MARK_NOT_FULL        0x00000000 /* R---V */
  902. #define NV_PFIFO_RUNOUT_STATUS_HIGH_MARK_FULL            0x00000001 /* R---V */
  903. #define NV_PFIFO_RUNOUT_PUT                              0x00002410 /* RW-4R */
  904. #define NV_PFIFO_RUNOUT_PUT_ADDRESS                            12:3 /* RWXUF */
  905. #define NV_PFIFO_RUNOUT_PUT_ADDRESS__SIZE_0                     8:3 /* RWXUF */
  906. #define NV_PFIFO_RUNOUT_PUT_ADDRESS__SIZE_1                    12:3 /* RWXUF */
  907. #define NV_PFIFO_RUNOUT_GET                              0x00002420 /* RW-4R */
  908. #define NV_PFIFO_RUNOUT_GET_ADDRESS                            13:3 /* RWXUF */
  909. /* dev_graphics.ref */
  910. #define NV_PGRAPH                             0x00401FFF:0x00400000 /* RW--D */
  911. #define NV_PGRAPH_DEBUG_0                                0x00400080 /* RW-4R */
  912. #define NV_PGRAPH_DEBUG_1                                0x00400084 /* RW-4R */
  913. #define NV_PGRAPH_DEBUG_2                                0x00400088 /* RW-4R */
  914. #define NV_PGRAPH_DEBUG_3                                0x0040008C /* RW-4R */
  915. #define NV_PGRAPH_INTR                                   0x00400100 /* RW-4R */
  916. #define NV_PGRAPH_INTR_NOTIFY                                   0:0 /* RWIVF */
  917. #define NV_PGRAPH_INTR_NOTIFY_NOT_PENDING                0x00000000 /* R-I-V */
  918. #define NV_PGRAPH_INTR_NOTIFY_PENDING                    0x00000001 /* R---V */
  919. #define NV_PGRAPH_INTR_NOTIFY_RESET                      0x00000001 /* -W--C */
  920. #define NV_PGRAPH_INTR_MISSING_HW                               4:4 /* RWIVF */
  921. #define NV_PGRAPH_INTR_MISSING_HW_NOT_PENDING            0x00000000 /* R-I-V */
  922. #define NV_PGRAPH_INTR_MISSING_HW_PENDING                0x00000001 /* R---V */
  923. #define NV_PGRAPH_INTR_MISSING_HW_RESET                  0x00000001 /* -W--C */
  924. #define NV_PGRAPH_INTR_TLB_PRESENT_A                            8:8 /* RWIVF */
  925. #define NV_PGRAPH_INTR_TLB_PRESENT_A_NOT_PENDING         0x00000000 /* R-I-V */
  926. #define NV_PGRAPH_INTR_TLB_PRESENT_A_PENDING             0x00000001 /* R---V */
  927. #define NV_PGRAPH_INTR_TLB_PRESENT_A_RESET               0x00000001 /* -W--C */
  928. #define NV_PGRAPH_INTR_TLB_PRESENT_B                            9:9 /* RWIVF */
  929. #define NV_PGRAPH_INTR_TLB_PRESENT_B_NOT_PENDING         0x00000000 /* R-I-V */
  930. #define NV_PGRAPH_INTR_TLB_PRESENT_B_PENDING             0x00000001 /* R---V */
  931. #define NV_PGRAPH_INTR_TLB_PRESENT_B_RESET               0x00000001 /* -W--C */
  932. #define NV_PGRAPH_INTR_CONTEXT_SWITCH                         12:12 /* RWIVF */
  933. #define NV_PGRAPH_INTR_CONTEXT_SWITCH_NOT_PENDING        0x00000000 /* R-I-V */
  934. #define NV_PGRAPH_INTR_CONTEXT_SWITCH_PENDING            0x00000001 /* R---V */
  935. #define NV_PGRAPH_INTR_CONTEXT_SWITCH_RESET              0x00000001 /* -W--C */
  936. #define NV_PGRAPH_INTR_BUFFER_NOTIFY                          16:16 /* RWIVF */
  937. #define NV_PGRAPH_INTR_BUFFER_NOTIFY_NOT_PENDING         0x00000000 /* R-I-V */
  938. #define NV_PGRAPH_INTR_BUFFER_NOTIFY_PENDING             0x00000001 /* R---V */
  939. #define NV_PGRAPH_INTR_BUFFER_NOTIFY_RESET               0x00000001 /* -W--C */
  940. #define NV_PGRAPH_NSTATUS                                0x00400104 /* RW-4R */
  941. #define NV_PGRAPH_NSTATUS_STATE_IN_USE                        11:11 /* RWIVF */
  942. #define NV_PGRAPH_NSTATUS_STATE_IN_USE_NOT_PENDING       0x00000000 /* RWI-V */
  943. #define NV_PGRAPH_NSTATUS_STATE_IN_USE_PENDING           0x00000001 /* RW--V */
  944. #define NV_PGRAPH_NSTATUS_INVALID_STATE                       12:12 /* RWIVF */
  945. #define NV_PGRAPH_NSTATUS_INVALID_STATE_NOT_PENDING      0x00000000 /* RWI-V */
  946. #define NV_PGRAPH_NSTATUS_INVALID_STATE_PENDING          0x00000001 /* RW--V */
  947. #define NV_PGRAPH_NSTATUS_BAD_ARGUMENT                        13:13 /* RWIVF */
  948. #define NV_PGRAPH_NSTATUS_BAD_ARGUMENT_NOT_PENDING       0x00000000 /* RWI-V */
  949. #define NV_PGRAPH_NSTATUS_BAD_ARGUMENT_PENDING           0x00000001 /* RW--V */
  950. #define NV_PGRAPH_NSTATUS_PROTECTION_FAULT                    14:14 /* RWIVF */
  951. #define NV_PGRAPH_NSTATUS_PROTECTION_FAULT_NOT_PENDING   0x00000000 /* RWI-V */
  952. #define NV_PGRAPH_NSTATUS_PROTECTION_FAULT_PENDING       0x00000001 /* RW--V */
  953. #define NV_PGRAPH_NSOURCE                                0x00400108 /* R--4R */
  954. #define NV_PGRAPH_NSOURCE_NOTIFICATION                          0:0 /* R-IVF */
  955. #define NV_PGRAPH_NSOURCE_NOTIFICATION_NOT_PENDING       0x00000000 /* R-I-V */
  956. #define NV_PGRAPH_NSOURCE_NOTIFICATION_PENDING           0x00000001 /* R---V */
  957. #define NV_PGRAPH_NSOURCE_DATA_ERROR                            1:1 /* R-IVF */
  958. #define NV_PGRAPH_NSOURCE_DATA_ERROR_NOT_PENDING         0x00000000 /* R-I-V */
  959. #define NV_PGRAPH_NSOURCE_DATA_ERROR_PENDING             0x00000001 /* R---V */
  960. #define NV_PGRAPH_NSOURCE_PROTECTION_ERROR                      2:2 /* R-IVF */
  961. #define NV_PGRAPH_NSOURCE_PROTECTION_ERROR_NOT_PENDING   0x00000000 /* R-I-V */
  962. #define NV_PGRAPH_NSOURCE_PROTECTION_ERROR_PENDING       0x00000001 /* R---V */
  963. #define NV_PGRAPH_NSOURCE_RANGE_EXCEPTION                       3:3 /* R-IVF */
  964. #define NV_PGRAPH_NSOURCE_RANGE_EXCEPTION_NOT_PENDING    0x00000000 /* R-I-V */
  965. #define NV_PGRAPH_NSOURCE_RANGE_EXCEPTION_PENDING        0x00000001 /* R---V */
  966. #define NV_PGRAPH_NSOURCE_LIMIT_COLOR                           4:4 /* R-IVF */
  967. #define NV_PGRAPH_NSOURCE_LIMIT_COLOR_NOT_PENDING        0x00000000 /* R-I-V */
  968. #define NV_PGRAPH_NSOURCE_LIMIT_COLOR_PENDING            0x00000001 /* R---V */
  969. #define NV_PGRAPH_NSOURCE_LIMIT_ZETA_                           5:5 /* R-IVF */
  970. #define NV_PGRAPH_NSOURCE_LIMIT_ZETA_NOT_PENDING         0x00000000 /* R-I-V */
  971. #define NV_PGRAPH_NSOURCE_LIMIT_ZETA_PENDING             0x00000001 /* R---V */
  972. #define NV_PGRAPH_NSOURCE_ILLEGAL_MTHD                          6:6 /* R-IVF */
  973. #define NV_PGRAPH_NSOURCE_ILLEGAL_MTHD_NOT_PENDING       0x00000000 /* R-I-V */
  974. #define NV_PGRAPH_NSOURCE_ILLEGAL_MTHD_PENDING           0x00000001 /* R---V */
  975. #define NV_PGRAPH_NSOURCE_DMA_R_PROTECTION                      7:7 /* R-IVF */
  976. #define NV_PGRAPH_NSOURCE_DMA_R_PROTECTION_NOT_PENDING   0x00000000 /* R-I-V */
  977. #define NV_PGRAPH_NSOURCE_DMA_R_PROTECTION_PENDING       0x00000001 /* R---V */
  978. #define NV_PGRAPH_NSOURCE_DMA_W_PROTECTION                      8:8 /* R-IVF */
  979. #define NV_PGRAPH_NSOURCE_DMA_W_PROTECTION_NOT_PENDING   0x00000000 /* R-I-V */
  980. #define NV_PGRAPH_NSOURCE_DMA_W_PROTECTION_PENDING       0x00000001 /* R---V */
  981. #define NV_PGRAPH_NSOURCE_FORMAT_EXCEPTION                      9:9 /* R-IVF */
  982. #define NV_PGRAPH_NSOURCE_FORMAT_EXCEPTION_NOT_PENDING   0x00000000 /* R-I-V */
  983. #define NV_PGRAPH_NSOURCE_FORMAT_EXCEPTION_PENDING       0x00000001 /* R---V */
  984. #define NV_PGRAPH_NSOURCE_PATCH_EXCEPTION                     10:10 /* R-IVF */
  985. #define NV_PGRAPH_NSOURCE_PATCH_EXCEPTION_NOT_PENDING    0x00000000 /* R-I-V */
  986. #define NV_PGRAPH_NSOURCE_PATCH_EXCEPTION_PENDING        0x00000001 /* R---V */
  987. #define NV_PGRAPH_NSOURCE_STATE_INVALID                       11:11 /* R-IVF */
  988. #define NV_PGRAPH_NSOURCE_STATE_INVALID_NOT_PENDING      0x00000000 /* R-I-V */
  989. #define NV_PGRAPH_NSOURCE_STATE_INVALID_PENDING          0x00000001 /* R---V */
  990. #define NV_PGRAPH_NSOURCE_DOUBLE_NOTIFY                       12:12 /* R-IVF */
  991. #define NV_PGRAPH_NSOURCE_DOUBLE_NOTIFY_NOT_PENDING      0x00000000 /* R-I-V */
  992. #define NV_PGRAPH_NSOURCE_DOUBLE_NOTIFY_PENDING          0x00000001 /* R---V */
  993. #define NV_PGRAPH_NSOURCE_NOTIFY_IN_USE                       13:13 /* R-IVF */
  994. #define NV_PGRAPH_NSOURCE_NOTIFY_IN_USE_NOT_PENDING      0x00000000 /* R-I-V */
  995. #define NV_PGRAPH_NSOURCE_NOTIFY_IN_USE_PENDING          0x00000001 /* R---V */
  996. #define NV_PGRAPH_NSOURCE_METHOD_CNT                          14:14 /* R-IVF */
  997. #define NV_PGRAPH_NSOURCE_METHOD_CNT_NOT_PENDING         0x00000000 /* R-I-V */
  998. #define NV_PGRAPH_NSOURCE_METHOD_CNT_PENDING             0x00000001 /* R---V */
  999. #define NV_PGRAPH_NSOURCE_BFR_NOTIFICATION                    15:15 /* R-IVF */
  1000. #define NV_PGRAPH_NSOURCE_BFR_NOTIFICATION_NOT_PENDING   0x00000000 /* R-I-V */
  1001. #define NV_PGRAPH_NSOURCE_BFR_NOTIFICATION_PENDING       0x00000001 /* R---V */
  1002. #define NV_PGRAPH_INTR_EN                                0x00400140 /* RW-4R */
  1003. #define NV_PGRAPH_INTR_EN_NOTIFY                                0:0 /* RWIVF */
  1004. #define NV_PGRAPH_INTR_EN_NOTIFY_DISABLED                0x00000000 /* RWI-V */
  1005. #define NV_PGRAPH_INTR_EN_NOTIFY_ENABLED                 0x00000001 /* RW--V */
  1006. #define NV_PGRAPH_INTR_EN_MISSING_HW                            4:4 /* RWIVF */
  1007. #define NV_PGRAPH_INTR_EN_MISSING_HW_DISABLED            0x00000000 /* RWI-V */
  1008. #define NV_PGRAPH_INTR_EN_MISSING_HW_ENABLED             0x00000001 /* RW--V */
  1009. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_A                         8:8 /* RWIVF */
  1010. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_A_DISABLED         0x00000000 /* RWI-V */
  1011. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_A_ENABLED          0x00000001 /* RW--V */
  1012. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_B                         9:9 /* RWIVF */
  1013. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_B_DISABLED         0x00000000 /* RWI-V */
  1014. #define NV_PGRAPH_INTR_EN_TLB_PRESENT_B_ENABLED          0x00000001 /* RW--V */
  1015. #define NV_PGRAPH_INTR_EN_CONTEXT_SWITCH                      12:12 /* RWIVF */
  1016. #define NV_PGRAPH_INTR_EN_CONTEXT_SWITCH_DISABLED        0x00000000 /* RWI-V */
  1017. #define NV_PGRAPH_INTR_EN_CONTEXT_SWITCH_ENABLED         0x00000001 /* RW--V */
  1018. #define NV_PGRAPH_INTR_EN_BUFFER_NOTIFY                       16:16 /* RWIVF */
  1019. #define NV_PGRAPH_INTR_EN_BUFFER_NOTIFY_DISABLED         0x00000000 /* RWI-V */
  1020. #define NV_PGRAPH_INTR_EN_BUFFER_NOTIFY_ENABLED          0x00000001 /* RW--V */
  1021. #define NV_PGRAPH_CTX_SWITCH1                            0x00400160 /* RW-4R */
  1022. #define NV_PGRAPH_CTX_SWITCH1_GRCLASS                           7:0 /* RWXVF */
  1023. #define NV_PGRAPH_CTX_SWITCH1_CHROMA_KEY                      12:12 /* RWXUF */
  1024. #define NV_PGRAPH_CTX_SWITCH1_CHROMA_KEY_DISABLE         0x00000000 /* RW--V */
  1025. #define NV_PGRAPH_CTX_SWITCH1_CHROMA_KEY_ENABLE          0x00000001 /* RW--V */
  1026. #define NV_PGRAPH_CTX_SWITCH1_USER_CLIP                       13:13 /* RWXUF */
  1027. #define NV_PGRAPH_CTX_SWITCH1_USER_CLIP_DISABLE          0x00000000 /* RW--V */
  1028. #define NV_PGRAPH_CTX_SWITCH1_USER_CLIP_ENABLE           0x00000001 /* RW--V */
  1029. #define NV_PGRAPH_CTX_SWITCH1_SWIZZLE                         14:14 /* RWXUF */
  1030. #define NV_PGRAPH_CTX_SWITCH1_SWIZZLE_DISABLE            0x00000000 /* RW--V */
  1031. #define NV_PGRAPH_CTX_SWITCH1_SWIZZLE_ENABLE             0x00000001 /* RW--V */
  1032. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG                    17:15 /* RWXUF */
  1033. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_SRCCOPY_AND   0x00000000 /* RW--V */
  1034. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_ROP_AND       0x00000001 /* RW--V */
  1035. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_BLEND_AND     0x00000002 /* RW--V */
  1036. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_SRCCOPY       0x00000003 /* RW--V */
  1037. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_SRCCOPY_PRE   0x00000004 /* RW--V */
  1038. #define NV_PGRAPH_CTX_SWITCH1_PATCH_CONFIG_BLEND_PRE     0x00000005 /* RW--V */
  1039. #define NV_PGRAPH_CTX_SWITCH1_PATCH_STATUS                    24:24 /* RWXUF */
  1040. #define NV_PGRAPH_CTX_SWITCH1_PATCH_STATUS_INVALID       0x00000000 /* RW--V */
  1041. #define NV_PGRAPH_CTX_SWITCH1_PATCH_STATUS_VALID         0x00000001 /* RW--V */
  1042. #define NV_PGRAPH_CTX_SWITCH1_CONTEXT_SURFACE                 25:25 /* RWXUF */
  1043. #define NV_PGRAPH_CTX_SWITCH1_CONTEXT_SURFACE_INVALID    0x00000000 /* RW--V */
  1044. #define NV_PGRAPH_CTX_SWITCH1_CONTEXT_SURFACE_VALID      0x00000001 /* RW--V */
  1045. #define NV_PGRAPH_CTX_SWITCH1_VOLATILE_RESET                  31:31 /* CWIVF */
  1046. #define NV_PGRAPH_CTX_SWITCH1_VOLATILE_RESET_IGNORE      0x00000000 /* CWI-V */
  1047. #define NV_PGRAPH_CTX_SWITCH1_VOLATILE_RESET_ENABLED     0x00000001 /* -W--T */
  1048. #define NV_PGRAPH_CTX_SWITCH2                            0x00400164 /* RW-4R */
  1049. #define NV_PGRAPH_CTX_SWITCH2_MONO_FORMAT                       1:0 /* RWXUF */
  1050. #define NV_PGRAPH_CTX_SWITCH2_MONO_FORMAT_INVALID              0x00 /* RW--V */
  1051. #define NV_PGRAPH_CTX_SWITCH2_MONO_FORMAT_CGA6_M1              0x01 /* RW--V */
  1052. #define NV_PGRAPH_CTX_SWITCH2_MONO_FORMAT_LE_M1                0x02 /* RW--V */
  1053. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT                     13:8 /* RWXUF */
  1054. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_INVALID             0x00 /* RW--V */
  1055. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_Y8               0x01 /* RW--V */
  1056. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X16A8Y8          0x02 /* RW--V */
  1057. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X24Y8            0x03 /* RW--V */
  1058. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_A1R5G5B5         0x06 /* RW--V */
  1059. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X1R5G5B5         0x07 /* RW--V */
  1060. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X16A1R5G5B5      0x08 /* RW--V */
  1061. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X17R5G5B5        0x09 /* RW--V */
  1062. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_R5G6B5           0x0A /* RW--V */
  1063. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_A16R5G6B5        0x0B /* RW--V */
  1064. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X16R5G6B5        0x0C /* RW--V */
  1065. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_A8R8G8B8         0x0D /* RW--V */
  1066. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X8R8G8B8         0x0E /* RW--V */
  1067. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_Y16              0x0F /* RW--V */
  1068. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_A16Y16           0x10 /* RW--V */
  1069. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_X16Y16           0x11 /* RW--V */
  1070. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_V8YB8U8YA8       0x12 /* RW--V */
  1071. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_YB8V8YA8U8       0x13 /* RW--V */
  1072. #define NV_PGRAPH_CTX_SWITCH2_COLOR_FORMAT_LE_Y32              0x14 /* RW--V */
  1073. #define NV_PGRAPH_CTX_SWITCH2_NOTIFY_INSTANCE                 31:16 /* RWXUF */
  1074. #define NV_PGRAPH_CTX_SWITCH2_NOTIFY_INSTANCE_INVALID        0x0000 /* RW--V */
  1075. #define NV_PGRAPH_CTX_SWITCH3                            0x00400168 /* RW-4R */
  1076. #define NV_PGRAPH_CTX_SWITCH3_DMA_INSTANCE_0                   15:0 /* RWXUF */
  1077. #define NV_PGRAPH_CTX_SWITCH3_DMA_INSTANCE_0_INVALID         0x0000 /* RW--V */
  1078. #define NV_PGRAPH_CTX_SWITCH3_DMA_INSTANCE_1                  31:16 /* RWXUF */
  1079. #define NV_PGRAPH_CTX_SWITCH3_DMA_INSTANCE_1_INVALID         0x0000 /* RW--V */
  1080. #define NV_PGRAPH_CTX_SWITCH4                            0x0040016C /* RW-4R */
  1081. #define NV_PGRAPH_CTX_SWITCH4_USER_INSTANCE                    15:0 /* RWXUF */
  1082. #define NV_PGRAPH_CTX_SWITCH4_USER_INSTANCE_INVALID          0x0000 /* RW--V */
  1083. #define NV_PGRAPH_CTX_CACHE1(i)                  (0x00400180+(i)*4) /* RW-4A */
  1084. #define NV_PGRAPH_CTX_CACHE1__SIZE_1                              8 /*       */
  1085. #define NV_PGRAPH_CTX_CACHE1_GRCLASS                            7:0 /* RWXVF */
  1086. #define NV_PGRAPH_CTX_CACHE1_CHROMA_KEY                       12:12 /* RWXVF */
  1087. #define NV_PGRAPH_CTX_CACHE1_USER_CLIP                        13:13 /* RWXVF */
  1088. #define NV_PGRAPH_CTX_CACHE1_SWIZZLE                          14:14 /* RWXVF */
  1089. #define NV_PGRAPH_CTX_CACHE1_PATCH_CONFIG                     19:15 /* RWXVF */
  1090. #define NV_PGRAPH_CTX_CACHE1_SPARE1                           20:20 /* RWXVF */
  1091. #define NV_PGRAPH_CTX_CACHE1_PATCH_STATUS                     24:24 /* RWXVF */
  1092. #define NV_PGRAPH_CTX_CACHE1_CONTEXT_SURFACE                  25:25 /* RWXVF */
  1093. #define NV_PGRAPH_CTX_CACHE2(i)                  (0x004001a0+(i)*4) /* RW-4A */
  1094. #define NV_PGRAPH_CTX_CACHE2__SIZE_1                              8 /*       */
  1095. #define NV_PGRAPH_CTX_CACHE2_MONO_FORMAT                        1:0 /* RWXVF */
  1096. #define NV_PGRAPH_CTX_CACHE2_COLOR_FORMAT                      13:8 /* RWXVF */
  1097. #define NV_PGRAPH_CTX_CACHE2_NOTIFY_INSTANCE                  31:16 /* RWXVF */
  1098. #define NV_PGRAPH_CTX_CACHE3(i)                  (0x004001c0+(i)*4) /* RW-4A */
  1099. #define NV_PGRAPH_CTX_CACHE3__SIZE_1                              8 /*       */
  1100. #define NV_PGRAPH_CTX_CACHE3_DMA_INSTANCE_0                    15:0 /* RWXVF */
  1101. #define NV_PGRAPH_CTX_CACHE3_DMA_INSTANCE_1                   31:16 /* RWXVF */
  1102. #define NV_PGRAPH_CTX_CACHE4(i)                  (0x004001e0+(i)*4) /* RW-4A */
  1103. #define NV_PGRAPH_CTX_CACHE4__SIZE_1                              8 /*       */
  1104. #define NV_PGRAPH_CTX_CACHE4_USER_INSTANCE                     15:0 /* RWXVF */
  1105. #define NV_PGRAPH_CTX_CONTROL                            0x00400170 /* RW-4R */
  1106. #define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME                      1:0 /* RWIVF */
  1107. #define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME_33US          0x00000000 /* RWI-V */
  1108. #define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME_262US         0x00000001 /* RW--V */
  1109. #define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME_2MS           0x00000002 /* RW--V */
  1110. #define NV_PGRAPH_CTX_CONTROL_MINIMUM_TIME_17MS          0x00000003 /* RW--V */
  1111. #define NV_PGRAPH_CTX_CONTROL_TIME                              8:8 /* RWIVF */
  1112. #define NV_PGRAPH_CTX_CONTROL_TIME_EXPIRED               0x00000000 /* RWI-V */
  1113. #define NV_PGRAPH_CTX_CONTROL_TIME_NOT_EXPIRED           0x00000001 /* RW--V */
  1114. #define NV_PGRAPH_CTX_CONTROL_CHID                            16:16 /* RWIVF */
  1115. #define NV_PGRAPH_CTX_CONTROL_CHID_INVALID               0x00000000 /* RWI-V */
  1116. #define NV_PGRAPH_CTX_CONTROL_CHID_VALID                 0x00000001 /* RW--V */
  1117. #define NV_PGRAPH_CTX_CONTROL_CHANGE                          20:20 /* R--VF */
  1118. #define NV_PGRAPH_CTX_CONTROL_CHANGE_UNAVAILABLE         0x00000000 /* R---V */
  1119. #define NV_PGRAPH_CTX_CONTROL_CHANGE_AVAILABLE           0x00000001 /* R---V */
  1120. #define NV_PGRAPH_CTX_CONTROL_SWITCHING                       24:24 /* RWIVF */
  1121. #define NV_PGRAPH_CTX_CONTROL_SWITCHING_IDLE             0x00000000 /* RWI-V */
  1122. #define NV_PGRAPH_CTX_CONTROL_SWITCHING_BUSY             0x00000001 /* RW--V */
  1123. #define NV_PGRAPH_CTX_CONTROL_DEVICE                          28:28 /* RWIVF */
  1124. #define NV_PGRAPH_CTX_CONTROL_DEVICE_DISABLED            0x00000000 /* RWI-V */
  1125. #define NV_PGRAPH_CTX_CONTROL_DEVICE_ENABLED             0x00000001 /* RW--V */
  1126. #define NV_PGRAPH_CTX_USER                               0x00400174 /* RW-4R */
  1127. #define NV_PGRAPH_CTX_USER_SUBCH                              15:13 /* RWIVF */
  1128. #define NV_PGRAPH_CTX_USER_SUBCH_0                       0x00000000 /* RWI-V */
  1129. #define NV_PGRAPH_CTX_USER_CHID                               27:24 /* RWIVF */
  1130. #define NV_PGRAPH_CTX_USER_CHID_0                        0x00000000 /* RWI-V */
  1131. #define NV_PGRAPH_FIFO                                   0x00400720 /* RW-4R */
  1132. #define NV_PGRAPH_FIFO_ACCESS                                   0:0 /* RWIVF */
  1133. #define NV_PGRAPH_FIFO_ACCESS_DISABLED                   0x00000000 /* RW--V */
  1134. #define NV_PGRAPH_FIFO_ACCESS_ENABLED                    0x00000001 /* RWI-V */
  1135. #define NV_PGRAPH_FFINTFC_FIFO_0(i)              (0x00400730+(i)*4) /* RW-4A */
  1136. #define NV_PGRAPH_FFINTFC_FIFO_0__SIZE_1                          4 /*       */
  1137. #define NV_PGRAPH_FFINTFC_FIFO_0_TAG                            0:0 /* RWXVF */
  1138. #define NV_PGRAPH_FFINTFC_FIFO_0_TAG_MTHD                0x00000000 /* RW--V */
  1139. #define NV_PGRAPH_FFINTFC_FIFO_0_TAG_CHSW                0x00000001 /* RW--V */
  1140. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH                          3:1 /* RWXVF */
  1141. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_0                 0x00000000 /* RW--V */
  1142. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_1                 0x00000001 /* RW--V */
  1143. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_2                 0x00000002 /* RW--V */
  1144. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_3                 0x00000003 /* RW--V */
  1145. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_4                 0x00000004 /* RW--V */
  1146. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_5                 0x00000005 /* RW--V */
  1147. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_6                 0x00000006 /* RW--V */
  1148. #define NV_PGRAPH_FFINTFC_FIFO_0_SUBCH_7                 0x00000007 /* RW--V */
  1149. #define NV_PGRAPH_FFINTFC_FIFO_0_MTHD                          14:4 /* RWXVF */
  1150. #define NV_PGRAPH_FFINTFC_FIFO_0_MTHD_CTX_SWITCH         0x00000000 /* RW--V */
  1151. #define NV_PGRAPH_FFINTFC_FIFO_1(i)              (0x00400740+(i)*4) /* RW-4A */
  1152. #define NV_PGRAPH_FFINTFC_FIFO_1__SIZE_1                          4 /*       */
  1153. #define NV_PGRAPH_FFINTFC_FIFO_1_ARGUMENT                      31:0 /* RWXVF */
  1154. #define NV_PGRAPH_FFINTFC_FIFO_PTR                       0x00400750 /* RW-4R */
  1155. #define NV_PGRAPH_FFINTFC_FIFO_PTR_WRITE                        2:0 /* RWIVF */
  1156. #define NV_PGRAPH_FFINTFC_FIFO_PTR_WRITE_0               0x00000000 /* RWI-V */
  1157. #define NV_PGRAPH_FFINTFC_FIFO_PTR_READ                         6:4 /* RWIVF */
  1158. #define NV_PGRAPH_FFINTFC_FIFO_PTR_READ_0                0x00000000 /* RWI-V */
  1159. #define NV_PGRAPH_FFINTFC_ST2                            0x00400754 /* RW-4R */
  1160. #define NV_PGRAPH_FFINTFC_ST2_STATUS                            0:0 /* RWIVF */
  1161. #define NV_PGRAPH_FFINTFC_ST2_STATUS_INVALID             0x00000000 /* RWI-V */
  1162. #define NV_PGRAPH_FFINTFC_ST2_STATUS_VALID               0x00000001 /* RW--V */
  1163. #define NV_PGRAPH_FFINTFC_ST2_MTHD                             11:1 /* RWIVF */
  1164. #define NV_PGRAPH_FFINTFC_ST2_MTHD_CTX_SWITCH            0x00000000 /* RWI-V */
  1165. #define NV_PGRAPH_FFINTFC_ST2_SUBCH                           14:12 /* RWIVF */
  1166. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_0                    0x00000000 /* RWI-V */
  1167. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_1                    0x00000001 /* RW--V */
  1168. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_2                    0x00000002 /* RW--V */
  1169. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_3                    0x00000003 /* RW--V */
  1170. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_4                    0x00000004 /* RW--V */
  1171. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_5                    0x00000005 /* RW--V */
  1172. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_6                    0x00000006 /* RW--V */
  1173. #define NV_PGRAPH_FFINTFC_ST2_SUBCH_7                    0x00000007 /* RW--V */
  1174. #define NV_PGRAPH_FFINTFC_ST2_CHID                            18:15 /* RWIVF */
  1175. #define NV_PGRAPH_FFINTFC_ST2_CHID_0                     0x00000000 /* RWI-V */
  1176. #define NV_PGRAPH_FFINTFC_ST2_CHID_1                     0x00000001 /* RW--V */
  1177. #define NV_PGRAPH_FFINTFC_ST2_CHID_2                     0x00000002 /* RW--V */
  1178. #define NV_PGRAPH_FFINTFC_ST2_CHID_3                     0x00000003 /* RW--V */
  1179. #define NV_PGRAPH_FFINTFC_ST2_CHID_4                     0x00000004 /* RW--V */
  1180. #define NV_PGRAPH_FFINTFC_ST2_CHID_5                     0x00000005 /* RW--V */
  1181. #define NV_PGRAPH_FFINTFC_ST2_CHID_6                     0x00000006 /* RW--V */
  1182. #define NV_PGRAPH_FFINTFC_ST2_CHID_7                     0x00000007 /* RW--V */
  1183. #define NV_PGRAPH_FFINTFC_ST2_CHID_8                     0x00000008 /* RW--V */
  1184. #define NV_PGRAPH_FFINTFC_ST2_CHID_9                     0x00000009 /* RW--V */
  1185. #define NV_PGRAPH_FFINTFC_ST2_CHID_10                    0x0000000A /* RW--V */
  1186. #define NV_PGRAPH_FFINTFC_ST2_CHID_11                    0x0000000B /* RW--V */
  1187. #define NV_PGRAPH_FFINTFC_ST2_CHID_12                    0x0000000C /* RW--V */
  1188. #define NV_PGRAPH_FFINTFC_ST2_CHID_13                    0x0000000D /* RW--V */
  1189. #define NV_PGRAPH_FFINTFC_ST2_CHID_14                    0x0000000E /* RW--V */
  1190. #define NV_PGRAPH_FFINTFC_ST2_CHID_15                    0x0000000F /* RW--V */
  1191. #define NV_PGRAPH_FFINTFC_ST2_CHID_STATUS                     19:19 /* RWIVF */
  1192. #define NV_PGRAPH_FFINTFC_ST2_CHID_STATUS_INVALID        0x00000000 /* RWI-V */
  1193. #define NV_PGRAPH_FFINTFC_ST2_CHID_STATUS_VALID          0x00000001 /* RW--V */