Home | History | Annotate | Download | only in nv30
      1 #ifndef _HOME_SKEGGSB_GIT_ENVYTOOLS_RNNDB_NV01_2D_XML
      2 #define _HOME_SKEGGSB_GIT_ENVYTOOLS_RNNDB_NV01_2D_XML
      3 
      4 /* Autogenerated file, DO NOT EDIT manually!
      5 
      6 This file was generated by the rules-ng-ng headergen tool in this git repository:
      7 http://0x04.net/cgit/index.cgi/rules-ng-ng
      8 git clone git://0x04.net/rules-ng-ng
      9 
     10 The rules-ng-ng source files this header was generated from are:
     11 - /home/skeggsb/git/envytools/rnndb/nv_objects.xml      (    794 bytes, from 2011-10-22 08:01:09)
     12 - /home/skeggsb/git/envytools/rnndb/copyright.xml       (   6452 bytes, from 2011-10-22 08:01:09)
     13 - /home/skeggsb/git/envytools/rnndb/nv_m2mf.xml         (   2696 bytes, from 2011-10-22 08:01:09)
     14 - /home/skeggsb/git/envytools/rnndb/nv_object.xml       (  12672 bytes, from 2011-10-22 08:01:09)
     15 - /home/skeggsb/git/envytools/rnndb/nvchipsets.xml      (   3617 bytes, from 2011-10-22 08:01:09)
     16 - /home/skeggsb/git/envytools/rnndb/nv_defs.xml         (   4437 bytes, from 2011-10-22 08:01:09)
     17 - /home/skeggsb/git/envytools/rnndb/nv50_defs.xml       (   5468 bytes, from 2011-10-22 08:01:09)
     18 - /home/skeggsb/git/envytools/rnndb/nvc0_m2mf.xml       (   2687 bytes, from 2011-10-22 08:01:09)
     19 - /home/skeggsb/git/envytools/rnndb/nv01_2d.xml         (  32584 bytes, from 2011-10-22 08:01:09)
     20 - /home/skeggsb/git/envytools/rnndb/nv04_dvd.xml        (   3000 bytes, from 2011-10-22 08:01:09)
     21 - /home/skeggsb/git/envytools/rnndb/nv03_3d.xml         (   5209 bytes, from 2011-10-22 08:01:09)
     22 - /home/skeggsb/git/envytools/rnndb/nv04_3d.xml         (  17759 bytes, from 2011-10-22 08:01:09)
     23 - /home/skeggsb/git/envytools/rnndb/nv_3ddefs.xml       (  16394 bytes, from 2011-10-22 08:01:09)
     24 - /home/skeggsb/git/envytools/rnndb/nv10_3d.xml         (  18437 bytes, from 2011-10-22 08:01:09)
     25 - /home/skeggsb/git/envytools/rnndb/nv20_3d.xml         (  21107 bytes, from 2011-10-22 08:01:09)
     26 - /home/skeggsb/git/envytools/rnndb/nv30-40_3d.xml      (  31987 bytes, from 2011-10-22 08:01:09)
     27 - /home/skeggsb/git/envytools/rnndb/nv50_2d.xml         (  11113 bytes, from 2011-10-22 08:01:09)
     28 - /home/skeggsb/git/envytools/rnndb/nv50_3d.xml         (  65233 bytes, from 2011-11-30 05:49:35)
     29 - /home/skeggsb/git/envytools/rnndb/nv50_compute.xml    (  14012 bytes, from 2011-10-22 08:01:09)
     30 - /home/skeggsb/git/envytools/rnndb/nv84_crypt.xml      (   2071 bytes, from 2011-11-30 05:49:35)
     31 - /home/skeggsb/git/envytools/rnndb/nv31_mpeg.xml       (   2269 bytes, from 2011-10-22 08:01:09)
     32 - /home/skeggsb/git/envytools/rnndb/nvc0_3d.xml         (  52547 bytes, from 2011-11-30 05:49:35)
     33 - /home/skeggsb/git/envytools/rnndb/nvc0_compute.xml    (  10865 bytes, from 2011-10-22 08:01:09)
     34 - /home/skeggsb/git/envytools/rnndb/blob_nvc0_pcopy.xml (   4516 bytes, from 2011-10-22 08:01:09)
     35 
     36 Copyright (C) 2006-2011 by the following authors:
     37 - Artur Huillet <arthur.huillet (at) free.fr> (ahuillet)
     38 - Ben Skeggs (darktama, darktama_)
     39 - B. R. <koala_br (at) users.sourceforge.net> (koala_br)
     40 - Carlos Martin <carlosmn (at) users.sf.net> (carlosmn)
     41 - Christoph Bumiller <e0425955 (at) student.tuwien.ac.at> (calim, chrisbmr)
     42 - Dawid Gajownik <gajownik (at) users.sf.net> (gajownik)
     43 - Dmitry Baryshkov
     44 - Dmitry Eremin-Solenikov <lumag (at) users.sf.net> (lumag)
     45 - EdB <edb_ (at) users.sf.net> (edb_)
     46 - Erik Waling <erikwailing (at) users.sf.net> (erikwaling)
     47 - Francisco Jerez <currojerez (at) riseup.net> (curro)
     48 - imirkin <imirkin (at) users.sf.net> (imirkin)
     49 - jb17bsome <jb17bsome (at) bellsouth.net> (jb17bsome)
     50 - Jeremy Kolb <kjeremy (at) users.sf.net> (kjeremy)
     51 - Laurent Carlier <lordheavym (at) gmail.com> (lordheavy)
     52 - Luca Barbieri <luca (at) luca-barbieri.com> (lb, lb1)
     53 - Maarten Maathuis <madman2003 (at) gmail.com> (stillunknown)
     54 - Marcin Kocielnicki <koriakin (at) 0x04.net> (mwk, koriakin)
     55 - Mark Carey <mark.carey (at) gmail.com> (careym)
     56 - Matthieu Castet <matthieu.castet (at) parrot.com> (mat-c)
     57 - nvidiaman <nvidiaman (at) users.sf.net> (nvidiaman)
     58 - Patrice Mandin <patmandin (at) gmail.com> (pmandin, pmdata)
     59 - Pekka Paalanen <pq (at) iki.fi> (pq, ppaalanen)
     60 - Peter Popov <ironpeter (at) users.sf.net> (ironpeter)
     61 - Richard Hughes <hughsient (at) users.sf.net> (hughsient)
     62 - Rudi Cilibrasi <cilibrar (at) users.sf.net> (cilibrar)
     63 - Serge Martin
     64 - Simon Raffeiner
     65 - Stephane Loeuillet <leroutier (at) users.sf.net> (leroutier)
     66 - Stephane Marchesin <stephane.marchesin (at) gmail.com> (marcheu)
     67 - sturmflut <sturmflut (at) users.sf.net> (sturmflut)
     68 - Sylvain Munaut <tnt (at) 246tNt.com>
     69 - Victor Stinner <victor.stinner (at) haypocalc.com> (haypo)
     70 - Wladmir van der Laan <laanwj (at) gmail.com> (miathan6)
     71 - Younes Manton <younes.m (at) gmail.com> (ymanton)
     72 
     73 Permission is hereby granted, free of charge, to any person obtaining
     74 a copy of this software and associated documentation files (the
     75 "Software"), to deal in the Software without restriction, including
     76 without limitation the rights to use, copy, modify, merge, publish,
     77 distribute, sublicense, and/or sell copies of the Software, and to
     78 permit persons to whom the Software is furnished to do so, subject to
     79 the following conditions:
     80 
     81 The above copyright notice and this permission notice (including the
     82 next paragraph) shall be included in all copies or substantial
     83 portions of the Software.
     84 
     85 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     86 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     87 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     88 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
     89 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
     90 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
     91 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     92 */
     93 
     94 
     95 
     96 #define NV01_BETA_DMA_NOTIFY					0x00000180
     97 
     98 #define NV01_BETA_BETA_1D31					0x00000300
     99 
    100 
    101 #define NV04_BETA4_DMA_NOTIFY					0x00000180
    102 
    103 #define NV04_BETA4_BETA_FACTOR					0x00000300
    104 
    105 
    106 #define NV01_CHROMA_DMA_NOTIFY					0x00000180
    107 
    108 #define NV01_CHROMA_COLOR_FORMAT				0x00000300
    109 #define NV01_CHROMA_COLOR_FORMAT_A16R5G6B5			0x00000001
    110 #define NV01_CHROMA_COLOR_FORMAT_X16A1R5G5B5			0x00000002
    111 #define NV01_CHROMA_COLOR_FORMAT_A8R8G8B8			0x00000003
    112 
    113 #define NV01_CHROMA_COLOR					0x00000304
    114 
    115 
    116 #define NV01_PATTERN_DMA_NOTIFY					0x00000180
    117 
    118 #define NV01_PATTERN_COLOR_FORMAT				0x00000300
    119 #define NV01_PATTERN_COLOR_FORMAT_A16R5G6B5			0x00000001
    120 #define NV01_PATTERN_COLOR_FORMAT_X16A1R5G5B5			0x00000002
    121 #define NV01_PATTERN_COLOR_FORMAT_A8R8G8B8			0x00000003
    122 
    123 #define NV01_PATTERN_MONOCHROME_FORMAT				0x00000304
    124 #define NV01_PATTERN_MONOCHROME_FORMAT_CGA6			0x00000001
    125 #define NV01_PATTERN_MONOCHROME_FORMAT_LE			0x00000002
    126 
    127 #define NV01_PATTERN_MONOCHROME_SHAPE				0x00000308
    128 #define NV01_PATTERN_MONOCHROME_SHAPE_8X8			0x00000000
    129 #define NV01_PATTERN_MONOCHROME_SHAPE_64X1			0x00000001
    130 #define NV01_PATTERN_MONOCHROME_SHAPE_1X64			0x00000002
    131 
    132 #define NV04_PATTERN_PATTERN_SELECT				0x0000030c
    133 #define NV04_PATTERN_PATTERN_SELECT_MONO			0x00000001
    134 #define NV04_PATTERN_PATTERN_SELECT_COLOR			0x00000002
    135 
    136 #define NV01_PATTERN_MONOCHROME_COLOR(i0)		       (0x00000310 + 0x4*(i0))
    137 #define NV01_PATTERN_MONOCHROME_COLOR__ESIZE			0x00000004
    138 #define NV01_PATTERN_MONOCHROME_COLOR__LEN			0x00000002
    139 
    140 #define NV01_PATTERN_MONOCHROME_PATTERN(i0)		       (0x00000318 + 0x4*(i0))
    141 #define NV01_PATTERN_MONOCHROME_PATTERN__ESIZE			0x00000004
    142 #define NV01_PATTERN_MONOCHROME_PATTERN__LEN			0x00000002
    143 
    144 #define NV04_PATTERN_PATTERN_Y8(i0)			       (0x00000400 + 0x4*(i0))
    145 #define NV04_PATTERN_PATTERN_Y8__ESIZE				0x00000004
    146 #define NV04_PATTERN_PATTERN_Y8__LEN				0x00000010
    147 #define NV04_PATTERN_PATTERN_Y8_Y0__MASK			0x000000ff
    148 #define NV04_PATTERN_PATTERN_Y8_Y0__SHIFT			0
    149 #define NV04_PATTERN_PATTERN_Y8_Y1__MASK			0x0000ff00
    150 #define NV04_PATTERN_PATTERN_Y8_Y1__SHIFT			8
    151 #define NV04_PATTERN_PATTERN_Y8_Y2__MASK			0x00ff0000
    152 #define NV04_PATTERN_PATTERN_Y8_Y2__SHIFT			16
    153 #define NV04_PATTERN_PATTERN_Y8_Y3__MASK			0xff000000
    154 #define NV04_PATTERN_PATTERN_Y8_Y3__SHIFT			24
    155 
    156 #define NV04_PATTERN_PATTERN_R5G6B5(i0)			       (0x00000500 + 0x4*(i0))
    157 #define NV04_PATTERN_PATTERN_R5G6B5__ESIZE			0x00000004
    158 #define NV04_PATTERN_PATTERN_R5G6B5__LEN			0x00000020
    159 #define NV04_PATTERN_PATTERN_R5G6B5_B0__MASK			0x0000001f
    160 #define NV04_PATTERN_PATTERN_R5G6B5_B0__SHIFT			0
    161 #define NV04_PATTERN_PATTERN_R5G6B5_G0__MASK			0x000007e0
    162 #define NV04_PATTERN_PATTERN_R5G6B5_G0__SHIFT			5
    163 #define NV04_PATTERN_PATTERN_R5G6B5_R0__MASK			0x0000f800
    164 #define NV04_PATTERN_PATTERN_R5G6B5_R0__SHIFT			11
    165 #define NV04_PATTERN_PATTERN_R5G6B5_B1__MASK			0x001f0000
    166 #define NV04_PATTERN_PATTERN_R5G6B5_B1__SHIFT			16
    167 #define NV04_PATTERN_PATTERN_R5G6B5_G1__MASK			0x07e00000
    168 #define NV04_PATTERN_PATTERN_R5G6B5_G1__SHIFT			21
    169 #define NV04_PATTERN_PATTERN_R5G6B5_R1__MASK			0xf8000000
    170 #define NV04_PATTERN_PATTERN_R5G6B5_R1__SHIFT			27
    171 
    172 #define NV04_PATTERN_PATTERN_X1R5G5B5(i0)		       (0x00000600 + 0x4*(i0))
    173 #define NV04_PATTERN_PATTERN_X1R5G5B5__ESIZE			0x00000004
    174 #define NV04_PATTERN_PATTERN_X1R5G5B5__LEN			0x00000020
    175 #define NV04_PATTERN_PATTERN_X1R5G5B5_B0__MASK			0x0000001f
    176 #define NV04_PATTERN_PATTERN_X1R5G5B5_B0__SHIFT			0
    177 #define NV04_PATTERN_PATTERN_X1R5G5B5_G0__MASK			0x000003e0
    178 #define NV04_PATTERN_PATTERN_X1R5G5B5_G0__SHIFT			5
    179 #define NV04_PATTERN_PATTERN_X1R5G5B5_R0__MASK			0x00007c00
    180 #define NV04_PATTERN_PATTERN_X1R5G5B5_R0__SHIFT			10
    181 #define NV04_PATTERN_PATTERN_X1R5G5B5_B1__MASK			0x001f0000
    182 #define NV04_PATTERN_PATTERN_X1R5G5B5_B1__SHIFT			16
    183 #define NV04_PATTERN_PATTERN_X1R5G5B5_G1__MASK			0x03e00000
    184 #define NV04_PATTERN_PATTERN_X1R5G5B5_G1__SHIFT			21
    185 #define NV04_PATTERN_PATTERN_X1R5G5B5_R1__MASK			0x7c000000
    186 #define NV04_PATTERN_PATTERN_X1R5G5B5_R1__SHIFT			26
    187 
    188 #define NV04_PATTERN_PATTERN_X8R8G8B8(i0)		       (0x00000700 + 0x4*(i0))
    189 #define NV04_PATTERN_PATTERN_X8R8G8B8__ESIZE			0x00000004
    190 #define NV04_PATTERN_PATTERN_X8R8G8B8__LEN			0x00000040
    191 #define NV04_PATTERN_PATTERN_X8R8G8B8_B__MASK			0x000000ff
    192 #define NV04_PATTERN_PATTERN_X8R8G8B8_B__SHIFT			0
    193 #define NV04_PATTERN_PATTERN_X8R8G8B8_G__MASK			0x0000ff00
    194 #define NV04_PATTERN_PATTERN_X8R8G8B8_G__SHIFT			8
    195 #define NV04_PATTERN_PATTERN_X8R8G8B8_R__MASK			0x00ff0000
    196 #define NV04_PATTERN_PATTERN_X8R8G8B8_R__SHIFT			16
    197 
    198 
    199 #define NV01_CLIP_DMA_NOTIFY					0x00000180
    200 
    201 #define NV01_CLIP_POINT						0x00000300
    202 #define NV01_CLIP_POINT_X__MASK					0x0000ffff
    203 #define NV01_CLIP_POINT_X__SHIFT				0
    204 #define NV01_CLIP_POINT_Y__MASK					0xffff0000
    205 #define NV01_CLIP_POINT_Y__SHIFT				16
    206 
    207 #define NV01_CLIP_SIZE						0x00000304
    208 #define NV01_CLIP_SIZE_W__MASK					0x0000ffff
    209 #define NV01_CLIP_SIZE_W__SHIFT					0
    210 #define NV01_CLIP_SIZE_H__MASK					0xffff0000
    211 #define NV01_CLIP_SIZE_H__SHIFT					16
    212 
    213 
    214 #define NV01_ROP_DMA_NOTIFY					0x00000180
    215 
    216 #define NV01_ROP_ROP						0x00000300
    217 
    218 
    219 #define NV04_SURFACE_2D_DMA_NOTIFY				0x00000180
    220 
    221 #define NV04_SURFACE_2D_DMA_IMAGE_SOURCE			0x00000184
    222 
    223 #define NV04_SURFACE_2D_DMA_IMAGE_DESTIN			0x00000188
    224 
    225 
    226 #define NV50_SURFACE_2D_SRC_LINEAR				0x00000200
    227 
    228 #define NV50_SURFACE_2D_SRC_TILE_MODE				0x00000204
    229 
    230 #define NV50_SURFACE_2D_SRC_WIDTH				0x00000208
    231 
    232 #define NV50_SURFACE_2D_SRC_HEIGHT				0x0000020c
    233 
    234 #define NV50_SURFACE_2D_UNK0210					0x00000210
    235 
    236 #define NV50_SURFACE_2D_UNK0214					0x00000214
    237 
    238 #define NV50_SURFACE_2D_DST_LINEAR				0x00000218
    239 
    240 #define NV50_SURFACE_2D_DST_TILE_MODE				0x0000021c
    241 
    242 #define NV50_SURFACE_2D_DST_WIDTH				0x00000220
    243 
    244 #define NV50_SURFACE_2D_DST_HEIGHT				0x00000224
    245 
    246 #define NV50_SURFACE_2D_UNK0228					0x00000228
    247 
    248 #define NV50_SURFACE_2D_UNK022C					0x0000022c
    249 
    250 #define NV50_SURFACE_2D_OFFSET_SOURCE_HIGH			0x00000230
    251 
    252 #define NV50_SURFACE_2D_OFFSET_DESTIN_HIGH			0x00000234
    253 
    254 #define NV04_SURFACE_2D_FORMAT					0x00000300
    255 #define NV04_SURFACE_2D_FORMAT_Y8				0x00000001
    256 #define NV04_SURFACE_2D_FORMAT_X1R5G5B5_Z1R5G5B5		0x00000002
    257 #define NV04_SURFACE_2D_FORMAT_X1R5G5B5_X1R5G5B5		0x00000003
    258 #define NV04_SURFACE_2D_FORMAT_R5G6B5				0x00000004
    259 #define NV04_SURFACE_2D_FORMAT_Y16				0x00000005
    260 #define NV04_SURFACE_2D_FORMAT_X8R8G8B8_Z8R8G8B8		0x00000006
    261 #define NV04_SURFACE_2D_FORMAT_X8R8G8B8_X8R8G8B8		0x00000007
    262 #define NV04_SURFACE_2D_FORMAT_X1A7R8G8B8_Z1A7R8G8B8		0x00000008
    263 #define NV04_SURFACE_2D_FORMAT_X1A7R8G8B8_X1A7R8G8B8		0x00000009
    264 #define NV04_SURFACE_2D_FORMAT_A8R8G8B8				0x0000000a
    265 #define NV04_SURFACE_2D_FORMAT_Y32				0x0000000b
    266 
    267 #define NV04_SURFACE_2D_PITCH					0x00000304
    268 #define NV04_SURFACE_2D_PITCH_SOURCE__MASK			0x0000ffff
    269 #define NV04_SURFACE_2D_PITCH_SOURCE__SHIFT			0
    270 #define NV04_SURFACE_2D_PITCH_DESTIN__MASK			0xffff0000
    271 #define NV04_SURFACE_2D_PITCH_DESTIN__SHIFT			16
    272 
    273 #define NV04_SURFACE_2D_OFFSET_SOURCE				0x00000308
    274 
    275 #define NV04_SURFACE_2D_OFFSET_DESTIN				0x0000030c
    276 
    277 
    278 #define NV04_SURFACE_SWZ_DMA_NOTIFY				0x00000180
    279 
    280 #define NV04_SURFACE_SWZ_DMA_IMAGE				0x00000184
    281 
    282 #define NV04_SURFACE_SWZ_FORMAT					0x00000300
    283 #define NV04_SURFACE_SWZ_FORMAT_COLOR__MASK			0x000000ff
    284 #define NV04_SURFACE_SWZ_FORMAT_COLOR__SHIFT			0
    285 #define NV04_SURFACE_SWZ_FORMAT_COLOR_Y8			0x00000001
    286 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5		0x00000002
    287 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X1R5G5B5_X1R5G5B5		0x00000003
    288 #define NV04_SURFACE_SWZ_FORMAT_COLOR_R5G6B5			0x00000004
    289 #define NV04_SURFACE_SWZ_FORMAT_COLOR_Y16			0x00000005
    290 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8		0x00000006
    291 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X8R8G8B8_X8R8G8B8		0x00000007
    292 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8	0x00000008
    293 #define NV04_SURFACE_SWZ_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8	0x00000009
    294 #define NV04_SURFACE_SWZ_FORMAT_COLOR_A8R8G8B8			0x0000000a
    295 #define NV04_SURFACE_SWZ_FORMAT_COLOR_Y32			0x0000000b
    296 #define NV04_SURFACE_SWZ_FORMAT_BASE_SIZE_U__MASK		0x00ff0000
    297 #define NV04_SURFACE_SWZ_FORMAT_BASE_SIZE_U__SHIFT		16
    298 #define NV04_SURFACE_SWZ_FORMAT_BASE_SIZE_V__MASK		0xff000000
    299 #define NV04_SURFACE_SWZ_FORMAT_BASE_SIZE_V__SHIFT		24
    300 
    301 #define NV04_SURFACE_SWZ_OFFSET					0x00000304
    302 
    303 
    304 #define NV01_POINT_PATCH					0x0000010c
    305 
    306 #define NV01_POINT_DMA_NOTIFY					0x00000180
    307 
    308 #define NV01_POINT_CLIP						0x00000184
    309 
    310 #define NV01_POINT_PATTERN					0x00000188
    311 
    312 #define NV01_POINT_ROP						0x0000018c
    313 
    314 #define NV01_POINT_BETA						0x00000190
    315 
    316 #define NV01_POINT_SURFACE_DST					0x00000194
    317 
    318 #define NV01_POINT_OPERATION					0x000002fc
    319 #define NV01_POINT_OPERATION_SRCCOPY_AND			0x00000000
    320 #define NV01_POINT_OPERATION_ROP_AND				0x00000001
    321 #define NV01_POINT_OPERATION_BLEND_AND				0x00000002
    322 #define NV01_POINT_OPERATION_SRCCOPY				0x00000003
    323 #define NV01_POINT_OPERATION_SRCCOPY_PREMULT			0x00000004
    324 #define NV01_POINT_OPERATION_BLEND_PREMULT			0x00000005
    325 
    326 #define NV01_POINT_COLOR_FORMAT					0x00000300
    327 #define NV01_POINT_COLOR_FORMAT_X16A8Y8				0x00000001
    328 #define NV01_POINT_COLOR_FORMAT_X24Y8				0x00000002
    329 #define NV01_POINT_COLOR_FORMAT_X16A1R5G5B5			0x00000003
    330 #define NV01_POINT_COLOR_FORMAT_X17R5G5B5			0x00000004
    331 #define NV01_POINT_COLOR_FORMAT_A8R8G8B8			0x00000005
    332 #define NV01_POINT_COLOR_FORMAT_X8R8G8B8			0x00000006
    333 #define NV01_POINT_COLOR_FORMAT_A16Y16				0x00000007
    334 #define NV01_POINT_COLOR_FORMAT_X16Y16				0x00000008
    335 
    336 #define NV01_POINT_COLOR					0x00000304
    337 
    338 #define NV01_POINT_POINT(i0)				       (0x00000400 + 0x4*(i0))
    339 #define NV01_POINT_POINT__ESIZE					0x00000004
    340 #define NV01_POINT_POINT__LEN					0x00000020
    341 #define NV01_POINT_POINT_X__MASK				0x0000ffff
    342 #define NV01_POINT_POINT_X__SHIFT				0
    343 #define NV01_POINT_POINT_Y__MASK				0xffff0000
    344 #define NV01_POINT_POINT_Y__SHIFT				16
    345 
    346 #define NV01_POINT_POINT32_X(i0)			       (0x00000480 + 0x8*(i0))
    347 #define NV01_POINT_POINT32_X__ESIZE				0x00000008
    348 #define NV01_POINT_POINT32_X__LEN				0x00000010
    349 
    350 #define NV01_POINT_POINT32_Y(i0)			       (0x00000484 + 0x8*(i0))
    351 #define NV01_POINT_POINT32_Y__ESIZE				0x00000008
    352 #define NV01_POINT_POINT32_Y__LEN				0x00000010
    353 
    354 #define NV01_POINT_CPOINT_COLOR(i0)			       (0x00000500 + 0x8*(i0))
    355 #define NV01_POINT_CPOINT_COLOR__ESIZE				0x00000008
    356 #define NV01_POINT_CPOINT_COLOR__LEN				0x00000010
    357 
    358 #define NV01_POINT_CPOINT_POINT(i0)			       (0x00000504 + 0x8*(i0))
    359 #define NV01_POINT_CPOINT_POINT__ESIZE				0x00000008
    360 #define NV01_POINT_CPOINT_POINT__LEN				0x00000010
    361 #define NV01_POINT_CPOINT_POINT_X__MASK				0x0000ffff
    362 #define NV01_POINT_CPOINT_POINT_X__SHIFT			0
    363 #define NV01_POINT_CPOINT_POINT_Y__MASK				0xffff0000
    364 #define NV01_POINT_CPOINT_POINT_Y__SHIFT			16
    365 
    366 
    367 #define NV01_LINE_PATCH						0x0000010c
    368 
    369 #define NV01_LINE_DMA_NOTIFY					0x00000180
    370 
    371 #define NV01_LINE_CLIP						0x00000184
    372 
    373 #define NV01_LINE_PATTERN					0x00000188
    374 
    375 #define NV04_LIN_PATTERN					0x00000188
    376 
    377 #define NV01_LINE_ROP						0x0000018c
    378 
    379 #define NV01_LINE_BETA						0x00000190
    380 
    381 #define NV01_LINE_SURFACE_DST					0x00000194
    382 
    383 
    384 #define NV04_LIN_BETA4						0x00000194
    385 
    386 #define NV04_LIN_SURFACE					0x00000198
    387 
    388 #define NV01_LINE_OPERATION					0x000002fc
    389 #define NV01_LINE_OPERATION_SRCCOPY_AND				0x00000000
    390 #define NV01_LINE_OPERATION_ROP_AND				0x00000001
    391 #define NV01_LINE_OPERATION_BLEND_AND				0x00000002
    392 #define NV01_LINE_OPERATION_SRCCOPY				0x00000003
    393 #define NV01_LINE_OPERATION_SRCCOPY_PREMULT			0x00000004
    394 #define NV01_LINE_OPERATION_BLEND_PREMULT			0x00000005
    395 
    396 #define NV01_LINE_COLOR_FORMAT					0x00000300
    397 #define NV01_LINE_COLOR_FORMAT_A16R5G6B5			0x00000001
    398 #define NV01_LINE_COLOR_FORMAT_X16A1R5G5B5			0x00000002
    399 #define NV01_LINE_COLOR_FORMAT_A8R8G8B8				0x00000003
    400 
    401 #define NV01_LINE_COLOR						0x00000304
    402 
    403 #define NV01_LINE_LINE_POINT0(i0)			       (0x00000400 + 0x8*(i0))
    404 #define NV01_LINE_LINE_POINT0__ESIZE				0x00000008
    405 #define NV01_LINE_LINE_POINT0__LEN				0x00000010
    406 #define NV01_LINE_LINE_POINT0_X__MASK				0x0000ffff
    407 #define NV01_LINE_LINE_POINT0_X__SHIFT				0
    408 #define NV01_LINE_LINE_POINT0_Y__MASK				0xffff0000
    409 #define NV01_LINE_LINE_POINT0_Y__SHIFT				16
    410 
    411 #define NV01_LINE_LINE_POINT1(i0)			       (0x00000404 + 0x8*(i0))
    412 #define NV01_LINE_LINE_POINT1__ESIZE				0x00000008
    413 #define NV01_LINE_LINE_POINT1__LEN				0x00000010
    414 #define NV01_LINE_LINE_POINT1_X__MASK				0x0000ffff
    415 #define NV01_LINE_LINE_POINT1_X__SHIFT				0
    416 #define NV01_LINE_LINE_POINT1_Y__MASK				0xffff0000
    417 #define NV01_LINE_LINE_POINT1_Y__SHIFT				16
    418 
    419 #define NV01_LINE_LINE32_POINT0_X(i0)			       (0x00000480 + 0x10*(i0))
    420 #define NV01_LINE_LINE32_POINT0_X__ESIZE			0x00000010
    421 #define NV01_LINE_LINE32_POINT0_X__LEN				0x00000008
    422 
    423 #define NV01_LINE_LINE32_POINT0_Y(i0)			       (0x00000484 + 0x10*(i0))
    424 #define NV01_LINE_LINE32_POINT0_Y__ESIZE			0x00000010
    425 #define NV01_LINE_LINE32_POINT0_Y__LEN				0x00000008
    426 
    427 #define NV01_LINE_LINE32_POINT1_X(i0)			       (0x00000488 + 0x10*(i0))
    428 #define NV01_LINE_LINE32_POINT1_X__ESIZE			0x00000010
    429 #define NV01_LINE_LINE32_POINT1_X__LEN				0x00000008
    430 
    431 #define NV01_LINE_LINE32_POINT1_Y(i0)			       (0x0000048c + 0x10*(i0))
    432 #define NV01_LINE_LINE32_POINT1_Y__ESIZE			0x00000010
    433 #define NV01_LINE_LINE32_POINT1_Y__LEN				0x00000008
    434 
    435 #define NV01_LINE_POLYLINE(i0)				       (0x00000500 + 0x4*(i0))
    436 #define NV01_LINE_POLYLINE__ESIZE				0x00000004
    437 #define NV01_LINE_POLYLINE__LEN					0x00000020
    438 #define NV01_LINE_POLYLINE_X__MASK				0x0000ffff
    439 #define NV01_LINE_POLYLINE_X__SHIFT				0
    440 #define NV01_LINE_POLYLINE_Y__MASK				0xffff0000
    441 #define NV01_LINE_POLYLINE_Y__SHIFT				16
    442 
    443 #define NV01_LINE_POLYLINE32_POINT_X(i0)		       (0x00000580 + 0x8*(i0))
    444 #define NV01_LINE_POLYLINE32_POINT_X__ESIZE			0x00000008
    445 #define NV01_LINE_POLYLINE32_POINT_X__LEN			0x00000010
    446 
    447 #define NV01_LINE_POLYLINE32_POINT_Y(i0)		       (0x00000584 + 0x8*(i0))
    448 #define NV01_LINE_POLYLINE32_POINT_Y__ESIZE			0x00000008
    449 #define NV01_LINE_POLYLINE32_POINT_Y__LEN			0x00000010
    450 
    451 #define NV01_LINE_CPOLYLINE_COLOR(i0)			       (0x00000600 + 0x8*(i0))
    452 #define NV01_LINE_CPOLYLINE_COLOR__ESIZE			0x00000008
    453 #define NV01_LINE_CPOLYLINE_COLOR__LEN				0x00000010
    454 
    455 #define NV01_LINE_CPOLYLINE_POINT(i0)			       (0x00000604 + 0x8*(i0))
    456 #define NV01_LINE_CPOLYLINE_POINT__ESIZE			0x00000008
    457 #define NV01_LINE_CPOLYLINE_POINT__LEN				0x00000010
    458 #define NV01_LINE_CPOLYLINE_POINT_X__MASK			0x0000ffff
    459 #define NV01_LINE_CPOLYLINE_POINT_X__SHIFT			0
    460 #define NV01_LINE_CPOLYLINE_POINT_Y__MASK			0xffff0000
    461 #define NV01_LINE_CPOLYLINE_POINT_Y__SHIFT			16
    462 
    463 
    464 #define NV01_TRI_PATCH						0x0000010c
    465 
    466 #define NV01_TRI_DMA_NOTIFY					0x00000180
    467 
    468 #define NV01_TRI_CLIP						0x00000184
    469 
    470 #define NV01_TRI_PATTERN					0x00000188
    471 
    472 #define NV04_TRI_PATTERN					0x00000188
    473 
    474 #define NV01_TRI_ROP						0x0000018c
    475 
    476 #define NV01_TRI_BETA						0x00000190
    477 
    478 #define NV01_TRI_SURFACE_DST					0x00000194
    479 
    480 
    481 #define NV04_TRI_BETA4						0x00000194
    482 
    483 #define NV04_TRI_SURFACE					0x00000198
    484 
    485 #define NV01_TRI_OPERATION					0x000002fc
    486 #define NV01_TRI_OPERATION_SRCCOPY_AND				0x00000000
    487 #define NV01_TRI_OPERATION_ROP_AND				0x00000001
    488 #define NV01_TRI_OPERATION_BLEND_AND				0x00000002
    489 #define NV01_TRI_OPERATION_SRCCOPY				0x00000003
    490 #define NV01_TRI_OPERATION_SRCCOPY_PREMULT			0x00000004
    491 #define NV01_TRI_OPERATION_BLEND_PREMULT			0x00000005
    492 
    493 #define NV01_TRI_COLOR_FORMAT					0x00000300
    494 #define NV01_TRI_COLOR_FORMAT_A16R5G6B5				0x00000001
    495 #define NV01_TRI_COLOR_FORMAT_X16A1R5G5B5			0x00000002
    496 #define NV01_TRI_COLOR_FORMAT_A8R8G8B8				0x00000003
    497 
    498 #define NV01_TRI_COLOR						0x00000304
    499 
    500 #define NV01_TRI_TRIANGLE_POINT0				0x00000310
    501 #define NV01_TRI_TRIANGLE_POINT0_X__MASK			0x0000ffff
    502 #define NV01_TRI_TRIANGLE_POINT0_X__SHIFT			0
    503 #define NV01_TRI_TRIANGLE_POINT0_Y__MASK			0xffff0000
    504 #define NV01_TRI_TRIANGLE_POINT0_Y__SHIFT			16
    505 
    506 #define NV01_TRI_TRIANGLE_POINT1				0x00000314
    507 #define NV01_TRI_TRIANGLE_POINT1_X__MASK			0x0000ffff
    508 #define NV01_TRI_TRIANGLE_POINT1_X__SHIFT			0
    509 #define NV01_TRI_TRIANGLE_POINT1_Y__MASK			0xffff0000
    510 #define NV01_TRI_TRIANGLE_POINT1_Y__SHIFT			16
    511 
    512 #define NV01_TRI_TRIANGLE_POINT2				0x00000318
    513 #define NV01_TRI_TRIANGLE_POINT2_X__MASK			0x0000ffff
    514 #define NV01_TRI_TRIANGLE_POINT2_X__SHIFT			0
    515 #define NV01_TRI_TRIANGLE_POINT2_Y__MASK			0xffff0000
    516 #define NV01_TRI_TRIANGLE_POINT2_Y__SHIFT			16
    517 
    518 #define NV01_TRI_TRIANGLE32_POINT0_X				0x00000320
    519 
    520 #define NV01_TRI_TRIANGLE32_POINT0_Y				0x00000324
    521 
    522 #define NV01_TRI_TRIANGLE32_POINT1_X				0x00000328
    523 
    524 #define NV01_TRI_TRIANGLE32_POINT1_Y				0x0000032c
    525 
    526 #define NV01_TRI_TRIANGLE32_POINT2_X				0x00000330
    527 
    528 #define NV01_TRI_TRIANGLE32_POINT2_Y				0x00000334
    529 
    530 #define NV01_TRI_TRIMESH(i0)				       (0x00000400 + 0x4*(i0))
    531 #define NV01_TRI_TRIMESH__ESIZE					0x00000004
    532 #define NV01_TRI_TRIMESH__LEN					0x00000020
    533 #define NV01_TRI_TRIMESH_X__MASK				0x0000ffff
    534 #define NV01_TRI_TRIMESH_X__SHIFT				0
    535 #define NV01_TRI_TRIMESH_Y__MASK				0xffff0000
    536 #define NV01_TRI_TRIMESH_Y__SHIFT				16
    537 
    538 #define NV01_TRI_TRIMESH32_POINT_X(i0)			       (0x00000480 + 0x8*(i0))
    539 #define NV01_TRI_TRIMESH32_POINT_X__ESIZE			0x00000008
    540 #define NV01_TRI_TRIMESH32_POINT_X__LEN				0x00000010
    541 
    542 #define NV01_TRI_TRIMESH32_POINT_Y(i0)			       (0x00000484 + 0x8*(i0))
    543 #define NV01_TRI_TRIMESH32_POINT_Y__ESIZE			0x00000008
    544 #define NV01_TRI_TRIMESH32_POINT_Y__LEN				0x00000010
    545 
    546 #define NV01_TRI_CTRIANGLE_COLOR(i0)			       (0x00000500 + 0x10*(i0))
    547 #define NV01_TRI_CTRIANGLE_COLOR__ESIZE				0x00000010
    548 #define NV01_TRI_CTRIANGLE_COLOR__LEN				0x00000008
    549 
    550 #define NV01_TRI_CTRIANGLE_POINT0(i0)			       (0x00000504 + 0x10*(i0))
    551 #define NV01_TRI_CTRIANGLE_POINT0__ESIZE			0x00000010
    552 #define NV01_TRI_CTRIANGLE_POINT0__LEN				0x00000008
    553 #define NV01_TRI_CTRIANGLE_POINT0_X__MASK			0x0000ffff
    554 #define NV01_TRI_CTRIANGLE_POINT0_X__SHIFT			0
    555 #define NV01_TRI_CTRIANGLE_POINT0_Y__MASK			0xffff0000
    556 #define NV01_TRI_CTRIANGLE_POINT0_Y__SHIFT			16
    557 
    558 #define NV01_TRI_CTRIANGLE_POINT1(i0)			       (0x00000508 + 0x10*(i0))
    559 #define NV01_TRI_CTRIANGLE_POINT1__ESIZE			0x00000010
    560 #define NV01_TRI_CTRIANGLE_POINT1__LEN				0x00000008
    561 #define NV01_TRI_CTRIANGLE_POINT1_X__MASK			0x0000ffff
    562 #define NV01_TRI_CTRIANGLE_POINT1_X__SHIFT			0
    563 #define NV01_TRI_CTRIANGLE_POINT1_Y__MASK			0xffff0000
    564 #define NV01_TRI_CTRIANGLE_POINT1_Y__SHIFT			16
    565 
    566 #define NV01_TRI_CTRIANGLE_POINT2(i0)			       (0x0000050c + 0x10*(i0))
    567 #define NV01_TRI_CTRIANGLE_POINT2__ESIZE			0x00000010
    568 #define NV01_TRI_CTRIANGLE_POINT2__LEN				0x00000008
    569 #define NV01_TRI_CTRIANGLE_POINT2_X__MASK			0x0000ffff
    570 #define NV01_TRI_CTRIANGLE_POINT2_X__SHIFT			0
    571 #define NV01_TRI_CTRIANGLE_POINT2_Y__MASK			0xffff0000
    572 #define NV01_TRI_CTRIANGLE_POINT2_Y__SHIFT			16
    573 
    574 #define NV01_TRI_CTRIMESH_COLOR(i0)			       (0x00000580 + 0x8*(i0))
    575 #define NV01_TRI_CTRIMESH_COLOR__ESIZE				0x00000008
    576 #define NV01_TRI_CTRIMESH_COLOR__LEN				0x00000010
    577 
    578 #define NV01_TRI_CTRIMESH_POINT(i0)			       (0x00000584 + 0x8*(i0))
    579 #define NV01_TRI_CTRIMESH_POINT__ESIZE				0x00000008
    580 #define NV01_TRI_CTRIMESH_POINT__LEN				0x00000010
    581 #define NV01_TRI_CTRIMESH_POINT_X__MASK				0x0000ffff
    582 #define NV01_TRI_CTRIMESH_POINT_X__SHIFT			0
    583 #define NV01_TRI_CTRIMESH_POINT_Y__MASK				0xffff0000
    584 #define NV01_TRI_CTRIMESH_POINT_Y__SHIFT			16
    585 
    586 
    587 #define NV01_RECT_PATCH						0x0000010c
    588 
    589 #define NV01_RECT_DMA_NOTIFY					0x00000180
    590 
    591 #define NV01_RECT_CLIP						0x00000184
    592 
    593 #define NV01_RECT_PATTERN					0x00000188
    594 
    595 #define NV04_RECT_PATTERN					0x00000188
    596 
    597 #define NV01_RECT_ROP						0x0000018c
    598 
    599 #define NV01_RECT_BETA						0x00000190
    600 
    601 #define NV01_RECT_SURFACE_DST					0x00000194
    602 
    603 
    604 #define NV04_RECT_BETA4						0x00000194
    605 
    606 #define NV04_RECT_SURFACE					0x00000198
    607 
    608 #define NV01_RECT_OPERATION					0x000002fc
    609 #define NV01_RECT_OPERATION_SRCCOPY_AND				0x00000000
    610 #define NV01_RECT_OPERATION_ROP_AND				0x00000001
    611 #define NV01_RECT_OPERATION_BLEND_AND				0x00000002
    612 #define NV01_RECT_OPERATION_SRCCOPY				0x00000003
    613 #define NV01_RECT_OPERATION_SRCCOPY_PREMULT			0x00000004
    614 #define NV01_RECT_OPERATION_BLEND_PREMULT			0x00000005
    615 
    616 #define NV01_RECT_COLOR_FORMAT					0x00000300
    617 #define NV01_RECT_COLOR_FORMAT_A16R5G6B5			0x00000001
    618 #define NV01_RECT_COLOR_FORMAT_X16A1R5G5B5			0x00000002
    619 #define NV01_RECT_COLOR_FORMAT_A8R8G8B8				0x00000003
    620 
    621 #define NV01_RECT_COLOR						0x00000304
    622 
    623 #define NV01_RECT_RECTANGLE_POINT(i0)			       (0x00000400 + 0x8*(i0))
    624 #define NV01_RECT_RECTANGLE_POINT__ESIZE			0x00000008
    625 #define NV01_RECT_RECTANGLE_POINT__LEN				0x00000010
    626 #define NV01_RECT_RECTANGLE_POINT_X__MASK			0x0000ffff
    627 #define NV01_RECT_RECTANGLE_POINT_X__SHIFT			0
    628 #define NV01_RECT_RECTANGLE_POINT_Y__MASK			0xffff0000
    629 #define NV01_RECT_RECTANGLE_POINT_Y__SHIFT			16
    630 
    631 #define NV01_RECT_RECTANGLE_SIZE(i0)			       (0x00000404 + 0x8*(i0))
    632 #define NV01_RECT_RECTANGLE_SIZE__ESIZE				0x00000008
    633 #define NV01_RECT_RECTANGLE_SIZE__LEN				0x00000010
    634 #define NV01_RECT_RECTANGLE_SIZE_W__MASK			0x0000ffff
    635 #define NV01_RECT_RECTANGLE_SIZE_W__SHIFT			0
    636 #define NV01_RECT_RECTANGLE_SIZE_H__MASK			0xffff0000
    637 #define NV01_RECT_RECTANGLE_SIZE_H__SHIFT			16
    638 
    639 
    640 #define NV01_BLIT_PATCH						0x0000010c
    641 
    642 
    643 #define NV15_BLIT_WAIT_FOR_IDLE					0x00000108
    644 
    645 #define NV15_BLIT_FLIP_SET_READ					0x00000120
    646 
    647 #define NV15_BLIT_FLIP_SET_WRITE				0x00000124
    648 
    649 #define NV15_BLIT_FLIP_MAX					0x00000128
    650 
    651 #define NV15_BLIT_FLIP_INCR_WRITE				0x0000012c
    652 
    653 #define NV15_BLIT_FLIP_WAIT					0x00000130
    654 
    655 #define NV15_BLIT_FLIP_CRTC_INCR_READ				0x00000134
    656 
    657 #define NV01_BLIT_DMA_NOTIFY					0x00000180
    658 
    659 #define NV01_BLIT_COLOR_KEY					0x00000184
    660 
    661 #define NV04_BLIT_COLOR_KEY					0x00000184
    662 
    663 #define NV01_BLIT_CLIP						0x00000188
    664 
    665 #define NV01_BLIT_PATTERN					0x0000018c
    666 
    667 #define NV04_BLIT_PATTERN					0x0000018c
    668 
    669 #define NV01_BLIT_ROP						0x00000190
    670 
    671 #define NV01_BLIT_BETA						0x00000194
    672 
    673 
    674 #define NV01_BLIT_SURFACE_SRC					0x00000198
    675 
    676 #define NV01_BLIT_SURFACE_DST					0x0000019c
    677 
    678 
    679 #define NV04_BLIT_BETA4						0x00000198
    680 
    681 #define NV04_BLIT_SURFACES					0x0000019c
    682 
    683 #define NV01_BLIT_OPERATION					0x000002fc
    684 #define NV01_BLIT_OPERATION_SRCCOPY_AND				0x00000000
    685 #define NV01_BLIT_OPERATION_ROP_AND				0x00000001
    686 #define NV01_BLIT_OPERATION_BLEND_AND				0x00000002
    687 #define NV01_BLIT_OPERATION_SRCCOPY				0x00000003
    688 #define NV01_BLIT_OPERATION_SRCCOPY_PREMULT			0x00000004
    689 #define NV01_BLIT_OPERATION_BLEND_PREMULT			0x00000005
    690 
    691 #define NV01_BLIT_POINT_IN					0x00000300
    692 #define NV01_BLIT_POINT_IN_X__MASK				0x0000ffff
    693 #define NV01_BLIT_POINT_IN_X__SHIFT				0
    694 #define NV01_BLIT_POINT_IN_Y__MASK				0xffff0000
    695 #define NV01_BLIT_POINT_IN_Y__SHIFT				16
    696 
    697 #define NV01_BLIT_POINT_OUT					0x00000304
    698 #define NV01_BLIT_POINT_OUT_X__MASK				0x0000ffff
    699 #define NV01_BLIT_POINT_OUT_X__SHIFT				0
    700 #define NV01_BLIT_POINT_OUT_Y__MASK				0xffff0000
    701 #define NV01_BLIT_POINT_OUT_Y__SHIFT				16
    702 
    703 #define NV01_BLIT_SIZE						0x00000308
    704 #define NV01_BLIT_SIZE_W__MASK					0x0000ffff
    705 #define NV01_BLIT_SIZE_W__SHIFT					0
    706 #define NV01_BLIT_SIZE_H__MASK					0xffff0000
    707 #define NV01_BLIT_SIZE_H__SHIFT					16
    708 
    709 
    710 #define NV04_INDEX_PATCH					0x0000010c
    711 
    712 #define NV04_INDEX_DMA_NOTIFY					0x00000180
    713 
    714 #define NV04_INDEX_DMA_LUT					0x00000184
    715 
    716 #define NV04_INDEX_COLOR_KEY					0x00000188
    717 
    718 #define NV04_INDEX_CLIP						0x0000018c
    719 
    720 #define NV04_INDEX_PATTERN					0x00000190
    721 
    722 #define NV04_INDEX_ROP						0x00000194
    723 
    724 #define NV04_INDEX_BETA						0x00000198
    725 
    726 #define NV04_INDEX_BETA4					0x0000019c
    727 
    728 #define NV04_INDEX_SURFACE					0x000001a0
    729 
    730 #define NV05_INDEX_SURFACE					0x000001a0
    731 
    732 #define NV05_INDEX_COLOR_CONVERSION				0x000003e0
    733 
    734 #define NV04_INDEX_OPERATION					0x000003e4
    735 
    736 #define NV04_INDEX_COLOR_FORMAT					0x000003e8
    737 
    738 #define NV04_INDEX_INDEX_FORMAT					0x000003ec
    739 
    740 #define NV04_INDEX_LUT_OFFSET					0x000003f0
    741 
    742 #define NV04_INDEX_POINT					0x000003f4
    743 
    744 #define NV04_INDEX_SIZE_OUT					0x000003f8
    745 
    746 #define NV04_INDEX_SIZE_IN					0x000003fc
    747 
    748 #define NV04_INDEX_COLOR(i0)				       (0x00000400 + 0x4*(i0))
    749 #define NV04_INDEX_COLOR__ESIZE					0x00000004
    750 #define NV04_INDEX_COLOR__LEN					0x00000700
    751 
    752 
    753 #define NV10_IFC_WAIT_FOR_IDLE					0x00000108
    754 
    755 #define NV01_IFC_PATCH						0x0000010c
    756 
    757 #define NV01_IFC_DMA_NOTIFY					0x00000180
    758 
    759 #define NV01_IFC_COLOR_KEY					0x00000184
    760 
    761 #define NV04_IFC_COLOR_KEY					0x00000184
    762 
    763 #define NV01_IFC_CLIP						0x00000188
    764 
    765 #define NV01_IFC_PATTERN					0x0000018c
    766 
    767 #define NV04_IFC_PATTERN					0x0000018c
    768 
    769 #define NV01_IFC_ROP						0x00000190
    770 
    771 #define NV01_IFC_BETA						0x00000194
    772 
    773 
    774 #define NV01_IFC_SURFACE_DST					0x00000198
    775 
    776 
    777 #define NV04_IFC_BETA4						0x00000198
    778 
    779 #define NV04_IFC_SURFACE					0x0000019c
    780 
    781 #define NV05_IFC_COLOR_CONVERSION				0x000002f8
    782 
    783 #define NV01_IFC_OPERATION					0x000002fc
    784 #define NV01_IFC_OPERATION_SRCCOPY_AND				0x00000000
    785 #define NV01_IFC_OPERATION_ROP_AND				0x00000001
    786 #define NV01_IFC_OPERATION_BLEND_AND				0x00000002
    787 #define NV01_IFC_OPERATION_SRCCOPY				0x00000003
    788 #define NV01_IFC_OPERATION_SRCCOPY_PREMULT			0x00000004
    789 #define NV01_IFC_OPERATION_BLEND_PREMULT			0x00000005
    790 
    791 #define NV01_IFC_COLOR_FORMAT					0x00000300
    792 #define NV01_IFC_COLOR_FORMAT_R5G6G5				0x00000001
    793 #define NV01_IFC_COLOR_FORMAT_A1R5G5B5				0x00000002
    794 #define NV01_IFC_COLOR_FORMAT_X1R5G5B5				0x00000003
    795 #define NV01_IFC_COLOR_FORMAT_A8R8G8B8				0x00000004
    796 #define NV01_IFC_COLOR_FORMAT_X8R8G8B8				0x00000005
    797 
    798 #define NV01_IFC_POINT						0x00000304
    799 #define NV01_IFC_POINT_X__MASK					0x0000ffff
    800 #define NV01_IFC_POINT_X__SHIFT					0
    801 #define NV01_IFC_POINT_Y__MASK					0xffff0000
    802 #define NV01_IFC_POINT_Y__SHIFT					16
    803 
    804 #define NV01_IFC_SIZE_OUT					0x00000308
    805 #define NV01_IFC_SIZE_OUT_W__MASK				0x0000ffff
    806 #define NV01_IFC_SIZE_OUT_W__SHIFT				0
    807 #define NV01_IFC_SIZE_OUT_H__MASK				0xffff0000
    808 #define NV01_IFC_SIZE_OUT_H__SHIFT				16
    809 
    810 #define NV01_IFC_SIZE_IN					0x0000030c
    811 #define NV01_IFC_SIZE_IN_W__MASK				0x0000ffff
    812 #define NV01_IFC_SIZE_IN_W__SHIFT				0
    813 #define NV01_IFC_SIZE_IN_H__MASK				0xffff0000
    814 #define NV01_IFC_SIZE_IN_H__SHIFT				16
    815 
    816 #define NV01_IFC_COLOR(i0)				       (0x00000400 + 0x4*(i0))
    817 #define NV01_IFC_COLOR__ESIZE					0x00000004
    818 #define NV01_IFC_COLOR__LEN					0x00000020
    819 
    820 #define NV04_IFC_COLOR(i0)				       (0x00000400 + 0x4*(i0))
    821 #define NV04_IFC_COLOR__ESIZE					0x00000004
    822 #define NV04_IFC_COLOR__LEN					0x00000700
    823 
    824 
    825 #define NV03_SIFC_PATCH						0x0000010c
    826 
    827 #define NV03_SIFC_DMA_NOTIFY					0x00000180
    828 
    829 #define NV03_SIFC_COLOR_KEY					0x00000184
    830 
    831 #define NV04_SIFC_COLOR_KEY					0x00000184
    832 
    833 #define NV03_SIFC_PATTERN					0x00000188
    834 
    835 #define NV04_SIFC_PATTERN					0x00000188
    836 
    837 #define NV03_SIFC_ROP						0x0000018c
    838 
    839 #define NV03_SIFC_BETA						0x00000190
    840 
    841 
    842 #define NV03_SIFC_SURFACE_DST					0x00000194
    843 
    844 
    845 #define NV04_SIFC_BETA4						0x00000194
    846 
    847 #define NV04_SIFC_SURFACE					0x00000198
    848 
    849 #define NV05_SIFC_COLOR_CONVERSION				0x000002f8
    850 
    851 #define NV03_SIFC_OPERATION					0x000002fc
    852 
    853 #define NV03_SIFC_COLOR_FORMAT					0x00000300
    854 
    855 #define NV03_SIFC_SIZE_IN					0x00000304
    856 #define NV03_SIFC_SIZE_IN_W__MASK				0x0000ffff
    857 #define NV03_SIFC_SIZE_IN_W__SHIFT				0
    858 #define NV03_SIFC_SIZE_IN_H__MASK				0xffff0000
    859 #define NV03_SIFC_SIZE_IN_H__SHIFT				16
    860 
    861 #define NV03_SIFC_DX_DU						0x00000308
    862 
    863 #define NV03_SIFC_DY_DV						0x0000030c
    864 
    865 #define NV03_SIFC_CLIP_POINT					0x00000310
    866 #define NV03_SIFC_CLIP_POINT_X__MASK				0x0000ffff
    867 #define NV03_SIFC_CLIP_POINT_X__SHIFT				0
    868 #define NV03_SIFC_CLIP_POINT_Y__MASK				0xffff0000
    869 #define NV03_SIFC_CLIP_POINT_Y__SHIFT				16
    870 
    871 #define NV03_SIFC_CLIP_SIZE					0x00000314
    872 #define NV03_SIFC_CLIP_SIZE_W__MASK				0x0000ffff
    873 #define NV03_SIFC_CLIP_SIZE_W__SHIFT				0
    874 #define NV03_SIFC_CLIP_SIZE_H__MASK				0xffff0000
    875 #define NV03_SIFC_CLIP_SIZE_H__SHIFT				16
    876 
    877 #define NV03_SIFC_POINT12D4					0x00000318
    878 #define NV03_SIFC_POINT12D4_X__MASK				0x0000ffff
    879 #define NV03_SIFC_POINT12D4_X__SHIFT				0
    880 #define NV03_SIFC_POINT12D4_Y__MASK				0xffff0000
    881 #define NV03_SIFC_POINT12D4_Y__SHIFT				16
    882 
    883 #define NV03_SIFC_COLOR(i0)				       (0x00000400 + 0x4*(i0))
    884 #define NV03_SIFC_COLOR__ESIZE					0x00000004
    885 #define NV03_SIFC_COLOR__LEN					0x00000700
    886 
    887 
    888 #define NV10_SIFM_WAIT_FOR_IDLE					0x00000108
    889 
    890 #define NV03_SIFM_DMA_NOTIFY					0x00000180
    891 
    892 #define NV03_SIFM_DMA_IMAGE					0x00000184
    893 
    894 #define NV03_SIFM_PATTERN					0x00000188
    895 
    896 #define NV04_SIFM_PATTERN					0x00000188
    897 
    898 #define NV03_SIFM_ROP						0x0000018c
    899 
    900 #define NV03_SIFM_BETA						0x00000190
    901 
    902 
    903 #define NV03_SIFM_SURFACE_DST					0x00000194
    904 
    905 
    906 #define NV04_SIFM_BETA4						0x00000194
    907 
    908 #define NV04_SIFM_SURFACE					0x00000198
    909 
    910 #define NV05_SIFM_SURFACE					0x00000198
    911 
    912 #define NV05_SIFM_COLOR_CONVERSION				0x000002fc
    913 #define NV05_SIFM_COLOR_CONVERSION_DITHER			0x00000000
    914 #define NV05_SIFM_COLOR_CONVERSION_TRUNCATE			0x00000001
    915 #define NV05_SIFM_COLOR_CONVERSION_SUBTR_TRUNCATE		0x00000002
    916 
    917 #define NV03_SIFM_COLOR_FORMAT					0x00000300
    918 #define NV03_SIFM_COLOR_FORMAT_A1R5G5B5				0x00000001
    919 #define NV03_SIFM_COLOR_FORMAT_X1R5G5B5				0x00000002
    920 #define NV03_SIFM_COLOR_FORMAT_A8R8G8B8				0x00000003
    921 #define NV03_SIFM_COLOR_FORMAT_X8R8G8B8				0x00000004
    922 #define NV03_SIFM_COLOR_FORMAT_V8YB8U8YA8			0x00000005
    923 #define NV03_SIFM_COLOR_FORMAT_YB8V8YA8U8			0x00000006
    924 #define NV03_SIFM_COLOR_FORMAT_R5G6B5				0x00000007
    925 #define NV03_SIFM_COLOR_FORMAT_Y8				0x00000008
    926 #define NV03_SIFM_COLOR_FORMAT_AY8				0x00000009
    927 
    928 #define NV03_SIFM_OPERATION					0x00000304
    929 #define NV03_SIFM_OPERATION_SRCCOPY_AND				0x00000000
    930 #define NV03_SIFM_OPERATION_ROP_AND				0x00000001
    931 #define NV03_SIFM_OPERATION_BLEND_AND				0x00000002
    932 #define NV03_SIFM_OPERATION_SRCCOPY				0x00000003
    933 #define NV03_SIFM_OPERATION_SRCCOPY_PREMULT			0x00000004
    934 #define NV03_SIFM_OPERATION_BLEND_PREMULT			0x00000005
    935 
    936 #define NV03_SIFM_CLIP_POINT					0x00000308
    937 #define NV03_SIFM_CLIP_POINT_X__MASK				0x0000ffff
    938 #define NV03_SIFM_CLIP_POINT_X__SHIFT				0
    939 #define NV03_SIFM_CLIP_POINT_Y__MASK				0xffff0000
    940 #define NV03_SIFM_CLIP_POINT_Y__SHIFT				16
    941 
    942 #define NV03_SIFM_CLIP_SIZE					0x0000030c
    943 #define NV03_SIFM_CLIP_SIZE_W__MASK				0x0000ffff
    944 #define NV03_SIFM_CLIP_SIZE_W__SHIFT				0
    945 #define NV03_SIFM_CLIP_SIZE_H__MASK				0xffff0000
    946 #define NV03_SIFM_CLIP_SIZE_H__SHIFT				16
    947 
    948 #define NV03_SIFM_OUT_POINT					0x00000310
    949 #define NV03_SIFM_OUT_POINT_X__MASK				0x0000ffff
    950 #define NV03_SIFM_OUT_POINT_X__SHIFT				0
    951 #define NV03_SIFM_OUT_POINT_Y__MASK				0xffff0000
    952 #define NV03_SIFM_OUT_POINT_Y__SHIFT				16
    953 
    954 #define NV03_SIFM_OUT_SIZE					0x00000314
    955 #define NV03_SIFM_OUT_SIZE_W__MASK				0x0000ffff
    956 #define NV03_SIFM_OUT_SIZE_W__SHIFT				0
    957 #define NV03_SIFM_OUT_SIZE_H__MASK				0xffff0000
    958 #define NV03_SIFM_OUT_SIZE_H__SHIFT				16
    959 
    960 #define NV03_SIFM_DU_DX						0x00000318
    961 
    962 #define NV03_SIFM_DV_DY						0x0000031c
    963 
    964 #define NV03_SIFM_SIZE						0x00000400
    965 #define NV03_SIFM_SIZE_W__MASK					0x0000ffff
    966 #define NV03_SIFM_SIZE_W__SHIFT					0
    967 #define NV03_SIFM_SIZE_H__MASK					0xffff0000
    968 #define NV03_SIFM_SIZE_H__SHIFT					16
    969 
    970 #define NV03_SIFM_FORMAT					0x00000404
    971 #define NV03_SIFM_FORMAT_PITCH__MASK				0x0000ffff
    972 #define NV03_SIFM_FORMAT_PITCH__SHIFT				0
    973 #define NV03_SIFM_FORMAT_ORIGIN__MASK				0x00ff0000
    974 #define NV03_SIFM_FORMAT_ORIGIN__SHIFT				16
    975 #define NV03_SIFM_FORMAT_ORIGIN_CENTER				0x00010000
    976 #define NV03_SIFM_FORMAT_ORIGIN_CORNER				0x00020000
    977 #define NV03_SIFM_FORMAT_FILTER__MASK				0xff000000
    978 #define NV03_SIFM_FORMAT_FILTER__SHIFT				24
    979 #define NV03_SIFM_FORMAT_FILTER_POINT_SAMPLE			0x00000000
    980 #define NV03_SIFM_FORMAT_FILTER_BILINEAR			0x01000000
    981 
    982 #define NV03_SIFM_OFFSET					0x00000408
    983 
    984 #define NV03_SIFM_POINT						0x0000040c
    985 #define NV03_SIFM_POINT_U__MASK					0x0000ffff
    986 #define NV03_SIFM_POINT_U__SHIFT				0
    987 #define NV03_SIFM_POINT_V__MASK					0xffff0000
    988 #define NV03_SIFM_POINT_V__SHIFT				16
    989 
    990 
    991 #define NV50_SIFM_OFFSET_HIGH					0x00000410
    992 
    993 #define NV50_SIFM_SRC_LINEAR					0x00000414
    994 
    995 #define NV50_SIFM_SRC_TILE_MODE					0x00000418
    996 
    997 
    998 #define NV03_GDI_DMA_NOTIFY					0x00000180
    999 
   1000 #define NV03_GDI_PATTERN					0x00000184
   1001 
   1002 #define NV03_GDI_ROP						0x00000188
   1003 
   1004 #define NV03_GDI_BETA						0x0000019c
   1005 
   1006 #define NV03_GDI_SURFACE_DST					0x00000190
   1007 
   1008 #define NV03_GDI_OPERATION					0x000002fc
   1009 
   1010 #define NV03_GDI_COLOR_FORMAT					0x00000300
   1011 
   1012 #define NV03_GDI_MONOCHROME_FORMAT				0x00000304
   1013 
   1014 #define NV03_GDI_COLOR1_A					0x000003fc
   1015 
   1016 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT(i0)		       (0x00000400 + 0x8*(i0))
   1017 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT__ESIZE		0x00000008
   1018 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT__LEN			0x00000040
   1019 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT_Y__MASK		0x0000ffff
   1020 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT_Y__SHIFT		0
   1021 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT_X__MASK		0xffff0000
   1022 #define NV03_GDI_UNCLIPPED_RECTANGLE_POINT_X__SHIFT		16
   1023 
   1024 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE(i0)		       (0x00000404 + 0x8*(i0))
   1025 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE__ESIZE		0x00000008
   1026 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE__LEN			0x00000040
   1027 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE_H__MASK		0x0000ffff
   1028 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE_H__SHIFT		0
   1029 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE_W__MASK		0xffff0000
   1030 #define NV03_GDI_UNCLIPPED_RECTANGLE_SIZE_W__SHIFT		16
   1031 
   1032 #define NV03_GDI_CLIP_POINT0_B					0x000007f4
   1033 #define NV03_GDI_CLIP_POINT0_B_L__MASK				0x0000ffff
   1034 #define NV03_GDI_CLIP_POINT0_B_L__SHIFT				0
   1035 #define NV03_GDI_CLIP_POINT0_B_T__MASK				0xffff0000
   1036 #define NV03_GDI_CLIP_POINT0_B_T__SHIFT				16
   1037 
   1038 #define NV03_GDI_CLIP_POINT1_B					0x000007f8
   1039 #define NV03_GDI_CLIP_POINT1_B_R__MASK				0x0000ffff
   1040 #define NV03_GDI_CLIP_POINT1_B_R__SHIFT				0
   1041 #define NV03_GDI_CLIP_POINT1_B_B__MASK				0xffff0000
   1042 #define NV03_GDI_CLIP_POINT1_B_B__SHIFT				16
   1043 
   1044 #define NV03_GDI_COLOR1_B					0x000007fc
   1045 
   1046 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0(i0)		       (0x00000800 + 0x8*(i0))
   1047 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0__ESIZE		0x00000008
   1048 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0__LEN			0x00000040
   1049 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0_L__MASK		0x0000ffff
   1050 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0_L__SHIFT		0
   1051 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0_T__MASK		0xffff0000
   1052 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_0_T__SHIFT		16
   1053 
   1054 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1(i0)		       (0x00000804 + 0x8*(i0))
   1055 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1__ESIZE		0x00000008
   1056 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1__LEN			0x00000040
   1057 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1_R__MASK		0x0000ffff
   1058 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1_R__SHIFT		0
   1059 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1_B__MASK		0xffff0000
   1060 #define NV03_GDI_CLIPPED_RECTANGLE_POINT_1_B__SHIFT		16
   1061 
   1062 #define NV03_GDI_CLIP_C_POINT0					0x00000bec
   1063 #define NV03_GDI_CLIP_C_POINT0_L__MASK				0x0000ffff
   1064 #define NV03_GDI_CLIP_C_POINT0_L__SHIFT				0
   1065 #define NV03_GDI_CLIP_C_POINT0_T__MASK				0xffff0000
   1066 #define NV03_GDI_CLIP_C_POINT0_T__SHIFT				16
   1067 
   1068 #define NV03_GDI_CLIP_C_POINT1					0x00000bf0
   1069 #define NV03_GDI_CLIP_C_POINT1_R__MASK				0x0000ffff
   1070 #define NV03_GDI_CLIP_C_POINT1_R__SHIFT				0
   1071 #define NV03_GDI_CLIP_C_POINT1_B__MASK				0xffff0000
   1072 #define NV03_GDI_CLIP_C_POINT1_B__SHIFT				16
   1073 
   1074 #define NV03_GDI_COLOR1_C					0x00000bf4
   1075 
   1076 #define NV03_GDI_SIZE_C						0x00000bf8
   1077 #define NV03_GDI_SIZE_C_W__MASK					0x0000ffff
   1078 #define NV03_GDI_SIZE_C_W__SHIFT				0
   1079 #define NV03_GDI_SIZE_C_H__MASK					0xffff0000
   1080 #define NV03_GDI_SIZE_C_H__SHIFT				16
   1081 
   1082 #define NV03_GDI_POINT_C					0x00000bfc
   1083 #define NV03_GDI_POINT_C_X__MASK				0x0000ffff
   1084 #define NV03_GDI_POINT_C_X__SHIFT				0
   1085 #define NV03_GDI_POINT_C_Y__MASK				0xffff0000
   1086 #define NV03_GDI_POINT_C_Y__SHIFT				16
   1087 
   1088 #define NV03_GDI_MONOCHROME_COLOR1_C(i0)		       (0x00000c00 + 0x4*(i0))
   1089 #define NV03_GDI_MONOCHROME_COLOR1_C__ESIZE			0x00000004
   1090 #define NV03_GDI_MONOCHROME_COLOR1_C__LEN			0x00000080
   1091 
   1092 #define NV03_GDI_CLIP_D_POINT0					0x00000fe8
   1093 #define NV03_GDI_CLIP_D_POINT0_L__MASK				0x0000ffff
   1094 #define NV03_GDI_CLIP_D_POINT0_L__SHIFT				0
   1095 #define NV03_GDI_CLIP_D_POINT0_T__MASK				0xffff0000
   1096 #define NV03_GDI_CLIP_D_POINT0_T__SHIFT				16
   1097 
   1098 #define NV03_GDI_CLIP_D_POINT1					0x00000fec
   1099 #define NV03_GDI_CLIP_D_POINT1_R__MASK				0x0000ffff
   1100 #define NV03_GDI_CLIP_D_POINT1_R__SHIFT				0
   1101 #define NV03_GDI_CLIP_D_POINT1_B__MASK				0xffff0000
   1102 #define NV03_GDI_CLIP_D_POINT1_B__SHIFT				16
   1103 
   1104 #define NV03_GDI_COLOR1_D					0x00000ff0
   1105 
   1106 #define NV03_GDI_SIZE_IN_D					0x00000ff4
   1107 #define NV03_GDI_SIZE_IN_D_W__MASK				0x0000ffff
   1108 #define NV03_GDI_SIZE_IN_D_W__SHIFT				0
   1109 #define NV03_GDI_SIZE_IN_D_H__MASK				0xffff0000
   1110 #define NV03_GDI_SIZE_IN_D_H__SHIFT				16
   1111 
   1112 #define NV03_GDI_SIZE_OUT_D					0x00000ff8
   1113 #define NV03_GDI_SIZE_OUT_D_W__MASK				0x0000ffff
   1114 #define NV03_GDI_SIZE_OUT_D_W__SHIFT				0
   1115 #define NV03_GDI_SIZE_OUT_D_H__MASK				0xffff0000
   1116 #define NV03_GDI_SIZE_OUT_D_H__SHIFT				16
   1117 
   1118 #define NV03_GDI_POINT_D					0x00000ffc
   1119 #define NV03_GDI_POINT_D_X__MASK				0x0000ffff
   1120 #define NV03_GDI_POINT_D_X__SHIFT				0
   1121 #define NV03_GDI_POINT_D_Y__MASK				0xffff0000
   1122 #define NV03_GDI_POINT_D_Y__SHIFT				16
   1123 
   1124 #define NV03_GDI_MONOCHROME_COLOR1_D(i0)		       (0x00001000 + 0x4*(i0))
   1125 #define NV03_GDI_MONOCHROME_COLOR1_D__ESIZE			0x00000004
   1126 #define NV03_GDI_MONOCHROME_COLOR1_D__LEN			0x00000080
   1127 
   1128 #define NV03_GDI_CLIP_E_POINT0					0x000013e4
   1129 #define NV03_GDI_CLIP_E_POINT0_L__MASK				0x0000ffff
   1130 #define NV03_GDI_CLIP_E_POINT0_L__SHIFT				0
   1131 #define NV03_GDI_CLIP_E_POINT0_T__MASK				0xffff0000
   1132 #define NV03_GDI_CLIP_E_POINT0_T__SHIFT				16
   1133 
   1134 #define NV03_GDI_CLIP_E_POINT1					0x000013e8
   1135 #define NV03_GDI_CLIP_E_POINT1_R__MASK				0x0000ffff
   1136 #define NV03_GDI_CLIP_E_POINT1_R__SHIFT				0
   1137 #define NV03_GDI_CLIP_E_POINT1_B__MASK				0xffff0000
   1138 #define NV03_GDI_CLIP_E_POINT1_B__SHIFT				16
   1139 
   1140 #define NV03_GDI_COLOR0_E					0x000013ec
   1141 
   1142 #define NV03_GDI_COLOR1_E					0x000013f0
   1143 
   1144 #define NV03_GDI_SIZE_IN_E					0x000013f4
   1145 #define NV03_GDI_SIZE_IN_E_W__MASK				0x0000ffff
   1146 #define NV03_GDI_SIZE_IN_E_W__SHIFT				0
   1147 #define NV03_GDI_SIZE_IN_E_H__MASK				0xffff0000
   1148 #define NV03_GDI_SIZE_IN_E_H__SHIFT				16
   1149 
   1150 #define NV03_GDI_SIZE_OUT_E					0x000013f8
   1151 #define NV03_GDI_SIZE_OUT_E_W__MASK				0x0000ffff
   1152 #define NV03_GDI_SIZE_OUT_E_W__SHIFT				0
   1153 #define NV03_GDI_SIZE_OUT_E_H__MASK				0xffff0000
   1154 #define NV03_GDI_SIZE_OUT_E_H__SHIFT				16
   1155 
   1156 #define NV03_GDI_POINT_E					0x000013fc
   1157 #define NV03_GDI_POINT_E_X__MASK				0x0000ffff
   1158 #define NV03_GDI_POINT_E_X__SHIFT				0
   1159 #define NV03_GDI_POINT_E_Y__MASK				0xffff0000
   1160 #define NV03_GDI_POINT_E_Y__SHIFT				16
   1161 
   1162 #define NV03_GDI_MONOCHROME_COLOR01_E(i0)		       (0x00001400 + 0x4*(i0))
   1163 #define NV03_GDI_MONOCHROME_COLOR01_E__ESIZE			0x00000004
   1164 #define NV03_GDI_MONOCHROME_COLOR01_E__LEN			0x00000080
   1165 
   1166 
   1167 #define NV04_GDI_PATCH						0x0000010c
   1168 
   1169 #define NV04_GDI_DMA_NOTIFY					0x00000180
   1170 
   1171 #define NV04_GDI_DMA_FONTS					0x00000184
   1172 
   1173 #define NV04_GDI_PATTERN					0x00000188
   1174 
   1175 #define NV04_GDI_ROP						0x0000018c
   1176 
   1177 #define NV04_GDI_BETA						0x00000190
   1178 
   1179 #define NV04_GDI_BETA4						0x00000194
   1180 
   1181 #define NV04_GDI_SURFACE					0x00000198
   1182 
   1183 #define NV04_GDI_OPERATION					0x000002fc
   1184 #define NV04_GDI_OPERATION_SRCCOPY_AND				0x00000000
   1185 #define NV04_GDI_OPERATION_ROP_AND				0x00000001
   1186 #define NV04_GDI_OPERATION_BLEND_AND				0x00000002
   1187 #define NV04_GDI_OPERATION_SRCCOPY				0x00000003
   1188 #define NV04_GDI_OPERATION_SRCCOPY_PREMULT			0x00000004
   1189 #define NV04_GDI_OPERATION_BLEND_PREMULT			0x00000005
   1190 
   1191 #define NV04_GDI_COLOR_FORMAT					0x00000300
   1192 #define NV04_GDI_COLOR_FORMAT_A16R5G6B5				0x00000001
   1193 #define NV04_GDI_COLOR_FORMAT_X16A1R5G5B5			0x00000002
   1194 #define NV04_GDI_COLOR_FORMAT_A8R8G8B8				0x00000003
   1195 
   1196 #define NV04_GDI_MONOCHROME_FORMAT				0x00000304
   1197 #define NV04_GDI_MONOCHROME_FORMAT_CGA6				0x00000001
   1198 #define NV04_GDI_MONOCHROME_FORMAT_LE				0x00000002
   1199 
   1200 #define NV04_GDI_COLOR1_A					0x000003fc
   1201 
   1202 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT(i0)		       (0x00000400 + 0x8*(i0))
   1203 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT__ESIZE		0x00000008
   1204 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT__LEN			0x00000020
   1205 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT_Y__MASK		0x0000ffff
   1206 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT_Y__SHIFT		0
   1207 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT_X__MASK		0xffff0000
   1208 #define NV04_GDI_UNCLIPPED_RECTANGLE_POINT_X__SHIFT		16
   1209 
   1210 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE(i0)		       (0x00000404 + 0x8*(i0))
   1211 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE__ESIZE		0x00000008
   1212 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE__LEN			0x00000020
   1213 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE_H__MASK		0x0000ffff
   1214 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE_H__SHIFT		0
   1215 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE_W__MASK		0xffff0000
   1216 #define NV04_GDI_UNCLIPPED_RECTANGLE_SIZE_W__SHIFT		16
   1217 
   1218 #define NV04_GDI_CLIP_B_POINT0					0x000005f4
   1219 #define NV04_GDI_CLIP_B_POINT0_L__MASK				0x0000ffff
   1220 #define NV04_GDI_CLIP_B_POINT0_L__SHIFT				0
   1221 #define NV04_GDI_CLIP_B_POINT0_T__MASK				0xffff0000
   1222 #define NV04_GDI_CLIP_B_POINT0_T__SHIFT				16
   1223 
   1224 #define NV04_GDI_CLIP_B_POINT1					0x000005f8
   1225 #define NV04_GDI_CLIP_B_POINT1_R__MASK				0x0000ffff
   1226 #define NV04_GDI_CLIP_B_POINT1_R__SHIFT				0
   1227 #define NV04_GDI_CLIP_B_POINT1_B__MASK				0xffff0000
   1228 #define NV04_GDI_CLIP_B_POINT1_B__SHIFT				16
   1229 
   1230 #define NV04_GDI_COLOR1_B					0x000005fc
   1231 
   1232 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0(i0)		       (0x00000600 + 0x8*(i0))
   1233 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0__ESIZE		0x00000008
   1234 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0__LEN			0x00000020
   1235 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0_L__MASK		0x0000ffff
   1236 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0_L__SHIFT		0
   1237 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0_T__MASK		0xffff0000
   1238 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_0_T__SHIFT		16
   1239 
   1240 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1(i0)		       (0x00000604 + 0x8*(i0))
   1241 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1__ESIZE		0x00000008
   1242 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1__LEN			0x00000020
   1243 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1_R__MASK		0x0000ffff
   1244 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1_R__SHIFT		0
   1245 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1_B__MASK		0xffff0000
   1246 #define NV04_GDI_CLIPPED_RECTANGLE_POINT_1_B__SHIFT		16
   1247 
   1248 #define NV04_GDI_CLIP_C_POINT0					0x000007ec
   1249 #define NV04_GDI_CLIP_C_POINT0_L__MASK				0x0000ffff
   1250 #define NV04_GDI_CLIP_C_POINT0_L__SHIFT				0
   1251 #define NV04_GDI_CLIP_C_POINT0_T__MASK				0xffff0000
   1252 #define NV04_GDI_CLIP_C_POINT0_T__SHIFT				16
   1253 
   1254 #define NV04_GDI_CLIP_C_POINT1					0x000007f0
   1255 #define NV04_GDI_CLIP_C_POINT1_R__MASK				0x0000ffff
   1256 #define NV04_GDI_CLIP_C_POINT1_R__SHIFT				0
   1257 #define NV04_GDI_CLIP_C_POINT1_B__MASK				0xffff0000
   1258 #define NV04_GDI_CLIP_C_POINT1_B__SHIFT				16
   1259 
   1260 #define NV04_GDI_COLOR1_C					0x000007f4
   1261 
   1262 #define NV04_GDI_SIZE_C						0x000007f8
   1263 #define NV04_GDI_SIZE_C_W__MASK					0x0000ffff
   1264 #define NV04_GDI_SIZE_C_W__SHIFT				0
   1265 #define NV04_GDI_SIZE_C_H__MASK					0xffff0000
   1266 #define NV04_GDI_SIZE_C_H__SHIFT				16
   1267 
   1268 #define NV04_GDI_POINT_C					0x000007fc
   1269 #define NV04_GDI_POINT_C_X__MASK				0x0000ffff
   1270 #define NV04_GDI_POINT_C_X__SHIFT				0
   1271 #define NV04_GDI_POINT_C_Y__MASK				0xffff0000
   1272 #define NV04_GDI_POINT_C_Y__SHIFT				16
   1273 
   1274 #define NV04_GDI_MONOCHROME_COLOR1_C(i0)		       (0x00000800 + 0x4*(i0))
   1275 #define NV04_GDI_MONOCHROME_COLOR1_C__ESIZE			0x00000004
   1276 #define NV04_GDI_MONOCHROME_COLOR1_C__LEN			0x00000080
   1277 
   1278 #define NV04_GDI_CLIP_E_POINT0					0x00000be4
   1279 #define NV04_GDI_CLIP_E_POINT0_L__MASK				0x0000ffff
   1280 #define NV04_GDI_CLIP_E_POINT0_L__SHIFT				0
   1281 #define NV04_GDI_CLIP_E_POINT0_T__MASK				0xffff0000
   1282 #define NV04_GDI_CLIP_E_POINT0_T__SHIFT				16
   1283 
   1284 #define NV04_GDI_CLIP_E_POINT1					0x00000be8
   1285 #define NV04_GDI_CLIP_E_POINT1_R__MASK				0x0000ffff
   1286 #define NV04_GDI_CLIP_E_POINT1_R__SHIFT				0
   1287 #define NV04_GDI_CLIP_E_POINT1_B__MASK				0xffff0000
   1288 #define NV04_GDI_CLIP_E_POINT1_B__SHIFT				16
   1289 
   1290 #define NV04_GDI_COLOR0_E					0x00000bec
   1291 
   1292 #define NV04_GDI_COLOR1_E					0x00000bf0
   1293 
   1294 #define NV04_GDI_SIZE_IN_E					0x00000bf4
   1295 #define NV04_GDI_SIZE_IN_E_W__MASK				0x0000ffff
   1296 #define NV04_GDI_SIZE_IN_E_W__SHIFT				0
   1297 #define NV04_GDI_SIZE_IN_E_H__MASK				0xffff0000
   1298 #define NV04_GDI_SIZE_IN_E_H__SHIFT				16
   1299 
   1300 #define NV04_GDI_SIZE_OUT_E					0x00000bf8
   1301 #define NV04_GDI_SIZE_OUT_E_W__MASK				0x0000ffff
   1302 #define NV04_GDI_SIZE_OUT_E_W__SHIFT				0
   1303 #define NV04_GDI_SIZE_OUT_E_H__MASK				0xffff0000
   1304 #define NV04_GDI_SIZE_OUT_E_H__SHIFT				16
   1305 
   1306 #define NV04_GDI_POINT_E					0x00000bfc
   1307 #define NV04_GDI_POINT_E_X__MASK				0x0000ffff
   1308 #define NV04_GDI_POINT_E_X__SHIFT				0
   1309 #define NV04_GDI_POINT_E_Y__MASK				0xffff0000
   1310 #define NV04_GDI_POINT_E_Y__SHIFT				16
   1311 
   1312 #define NV04_GDI_MONOCHROME_COLOR01_E(i0)		       (0x00000c00 + 0x4*(i0))
   1313 #define NV04_GDI_MONOCHROME_COLOR01_E__ESIZE			0x00000004
   1314 #define NV04_GDI_MONOCHROME_COLOR01_E__LEN			0x00000080
   1315 
   1316 #define NV04_GDI_FONT_F						0x00000ff0
   1317 #define NV04_GDI_FONT_F_OFFSET__MASK				0x0fffffff
   1318 #define NV04_GDI_FONT_F_OFFSET__SHIFT				0
   1319 #define NV04_GDI_FONT_F_PITCH__MASK				0xf0000000
   1320 #define NV04_GDI_FONT_F_PITCH__SHIFT				28
   1321 
   1322 #define NV04_GDI_CLIP_F_POINT0					0x00000ff4
   1323 #define NV04_GDI_CLIP_F_POINT0_L__MASK				0x0000ffff
   1324 #define NV04_GDI_CLIP_F_POINT0_L__SHIFT				0
   1325 #define NV04_GDI_CLIP_F_POINT0_T__MASK				0xffff0000
   1326 #define NV04_GDI_CLIP_F_POINT0_T__SHIFT				16
   1327 
   1328 #define NV04_GDI_CLIP_F_POINT1					0x00000ff8
   1329 #define NV04_GDI_CLIP_F_POINT1_R__MASK				0x0000ffff
   1330 #define NV04_GDI_CLIP_F_POINT1_R__SHIFT				0
   1331 #define NV04_GDI_CLIP_F_POINT1_B__MASK				0xffff0000
   1332 #define NV04_GDI_CLIP_F_POINT1_B__SHIFT				16
   1333 
   1334 #define NV04_GDI_COLOR1_F					0x00000ffc
   1335 
   1336 #define NV04_GDI_CHARACTER_COLOR1_F(i0)			       (0x00001000 + 0x4*(i0))
   1337 #define NV04_GDI_CHARACTER_COLOR1_F__ESIZE			0x00000004
   1338 #define NV04_GDI_CHARACTER_COLOR1_F__LEN			0x00000100
   1339 #define NV04_GDI_CHARACTER_COLOR1_F_INDEX__MASK			0x000000ff
   1340 #define NV04_GDI_CHARACTER_COLOR1_F_INDEX__SHIFT		0
   1341 #define NV04_GDI_CHARACTER_COLOR1_F_X__MASK			0x000fff00
   1342 #define NV04_GDI_CHARACTER_COLOR1_F_X__SHIFT			8
   1343 #define NV04_GDI_CHARACTER_COLOR1_F_Y__MASK			0xfff00000
   1344 #define NV04_GDI_CHARACTER_COLOR1_F_Y__SHIFT			20
   1345 
   1346 #define NV04_GDI_FONT_G						0x000017f0
   1347 #define NV04_GDI_FONT_G_OFFSET__MASK				0x0fffffff
   1348 #define NV04_GDI_FONT_G_OFFSET__SHIFT				0
   1349 #define NV04_GDI_FONT_G_PITCH__MASK				0xf0000000
   1350 #define NV04_GDI_FONT_G_PITCH__SHIFT				28
   1351 
   1352 #define NV04_GDI_CLIP_G_POINT0					0x000017f4
   1353 #define NV04_GDI_CLIP_G_POINT0_L__MASK				0x0000ffff
   1354 #define NV04_GDI_CLIP_G_POINT0_L__SHIFT				0
   1355 #define NV04_GDI_CLIP_G_POINT0_T__MASK				0xffff0000
   1356 #define NV04_GDI_CLIP_G_POINT0_T__SHIFT				16
   1357 
   1358 #define NV04_GDI_CLIP_G_POINT1					0x000017f8
   1359 #define NV04_GDI_CLIP_G_POINT1_R__MASK				0x0000ffff
   1360 #define NV04_GDI_CLIP_G_POINT1_R__SHIFT				0
   1361 #define NV04_GDI_CLIP_G_POINT1_B__MASK				0xffff0000
   1362 #define NV04_GDI_CLIP_G_POINT1_B__SHIFT				16
   1363 
   1364 #define NV04_GDI_COLOR1_G					0x000017fc
   1365 
   1366 #define NV04_GDI_CHARACTER_COLOR1_G_POINT(i0)		       (0x00001800 + 0x8*(i0))
   1367 #define NV04_GDI_CHARACTER_COLOR1_G_POINT__ESIZE		0x00000008
   1368 #define NV04_GDI_CHARACTER_COLOR1_G_POINT__LEN			0x00000100
   1369 #define NV04_GDI_CHARACTER_COLOR1_G_POINT_X__MASK		0x0000ffff
   1370 #define NV04_GDI_CHARACTER_COLOR1_G_POINT_X__SHIFT		0
   1371 #define NV04_GDI_CHARACTER_COLOR1_G_POINT_Y__MASK		0xffff0000
   1372 #define NV04_GDI_CHARACTER_COLOR1_G_POINT_Y__SHIFT		16
   1373 
   1374 #define NV04_GDI_CHARACTER_COLOR1_G_INDEX(i0)		       (0x00001804 + 0x8*(i0))
   1375 #define NV04_GDI_CHARACTER_COLOR1_G_INDEX__ESIZE		0x00000008
   1376 #define NV04_GDI_CHARACTER_COLOR1_G_INDEX__LEN			0x00000100
   1377 
   1378 
   1379 #define NV10_TEXUPLOAD_WAIT_FOR_IDLE				0x00000108
   1380 
   1381 #define NV10_TEXUPLOAD_DMA_NOTIFY				0x00000180
   1382 
   1383 #define NV10_TEXUPLOAD_SURFACE					0x00000184
   1384 
   1385 #define NV10_TEXUPLOAD_COLOR_FORMAT				0x00000300
   1386 
   1387 #define NV10_TEXUPLOAD_POINT					0x00000304
   1388 #define NV10_TEXUPLOAD_POINT_X__MASK				0x0000ffff
   1389 #define NV10_TEXUPLOAD_POINT_X__SHIFT				0
   1390 #define NV10_TEXUPLOAD_POINT_Y__MASK				0xffff0000
   1391 #define NV10_TEXUPLOAD_POINT_Y__SHIFT				16
   1392 
   1393 #define NV10_TEXUPLOAD_SIZE					0x00000308
   1394 #define NV10_TEXUPLOAD_SIZE_W__MASK				0x0000ffff
   1395 #define NV10_TEXUPLOAD_SIZE_W__SHIFT				0
   1396 #define NV10_TEXUPLOAD_SIZE_H__MASK				0xffff0000
   1397 #define NV10_TEXUPLOAD_SIZE_H__SHIFT				16
   1398 
   1399 #define NV10_TEXUPLOAD_CLIP_HORIZONTAL				0x0000030c
   1400 #define NV10_TEXUPLOAD_CLIP_HORIZONTAL_X__MASK			0x0000ffff
   1401 #define NV10_TEXUPLOAD_CLIP_HORIZONTAL_X__SHIFT			0
   1402 #define NV10_TEXUPLOAD_CLIP_HORIZONTAL_W__MASK			0xffff0000
   1403 #define NV10_TEXUPLOAD_CLIP_HORIZONTAL_W__SHIFT			16
   1404 
   1405 #define NV10_TEXUPLOAD_CLIP_VERTICAL				0x00000310
   1406 #define NV10_TEXUPLOAD_CLIP_VERTICAL_Y__MASK			0x0000ffff
   1407 #define NV10_TEXUPLOAD_CLIP_VERTICAL_Y__SHIFT			0
   1408 #define NV10_TEXUPLOAD_CLIP_VERTICAL_H__MASK			0xffff0000
   1409 #define NV10_TEXUPLOAD_CLIP_VERTICAL_H__SHIFT			16
   1410 
   1411 #define NV10_TEXUPLOAD_COLOR(i0)			       (0x00000400 + 0x4*(i0))
   1412 #define NV10_TEXUPLOAD_COLOR__ESIZE				0x00000004
   1413 #define NV10_TEXUPLOAD_COLOR__LEN				0x00000700
   1414 
   1415 
   1416 #endif /* _HOME_SKEGGSB_GIT_ENVYTOOLS_RNNDB_NV01_2D_XML */
   1417