#ifndef ___RNNDB_NV31_MPEG_XML
#define ___RNNDB_NV31_MPEG_XML

/* Autogenerated file, DO NOT EDIT manually!

This file was generated by the rules-ng-ng headergen tool in this git repository:
http://0x04.net/cgit/index.cgi/rules-ng-ng
git clone git://0x04.net/rules-ng-ng

The rules-ng-ng source files this header was generated from are:
- ../rnndb/nv31_mpeg.xml  (   2269 bytes, from 2011-08-02 11:17:20)
- ../rnndb/copyright.xml  (   6452 bytes, from 2011-07-15 12:42:43)
- ../rnndb/nvchipsets.xml (   3617 bytes, from 2011-07-22 11:37:48)
- ../rnndb/nv_object.xml  (  12672 bytes, from 2011-07-15 12:42:43)
- ../rnndb/nv_defs.xml    (   4437 bytes, from 2011-07-15 12:42:43)
- ../rnndb/nv50_defs.xml  (   5468 bytes, from 2011-07-15 12:42:43)

Copyright (C) 2006-2011 by the following authors:
- Artur Huillet <arthur.huillet@free.fr> (ahuillet)
- Ben Skeggs (darktama, darktama_)
- B. R. <koala_br@users.sourceforge.net> (koala_br)
- Carlos Martin <carlosmn@users.sf.net> (carlosmn)
- Christoph Bumiller <e0425955@student.tuwien.ac.at> (calim, chrisbmr)
- Dawid Gajownik <gajownik@users.sf.net> (gajownik)
- Dmitry Baryshkov
- Dmitry Eremin-Solenikov <lumag@users.sf.net> (lumag)
- EdB <edb_@users.sf.net> (edb_)
- Erik Waling <erikwailing@users.sf.net> (erikwaling)
- Francisco Jerez <currojerez@riseup.net> (curro)
- imirkin <imirkin@users.sf.net> (imirkin)
- jb17bsome <jb17bsome@bellsouth.net> (jb17bsome)
- Jeremy Kolb <kjeremy@users.sf.net> (kjeremy)
- Laurent Carlier <lordheavym@gmail.com> (lordheavy)
- Luca Barbieri <luca@luca-barbieri.com> (lb, lb1)
- Maarten Maathuis <madman2003@gmail.com> (stillunknown)
- Marcin Kościelnicki <koriakin@0x04.net> (mwk, koriakin)
- Mark Carey <mark.carey@gmail.com> (careym)
- Matthieu Castet <matthieu.castet@parrot.com> (mat-c)
- nvidiaman <nvidiaman@users.sf.net> (nvidiaman)
- Patrice Mandin <patmandin@gmail.com> (pmandin, pmdata)
- Pekka Paalanen <pq@iki.fi> (pq, ppaalanen)
- Peter Popov <ironpeter@users.sf.net> (ironpeter)
- Richard Hughes <hughsient@users.sf.net> (hughsient)
- Rudi Cilibrasi <cilibrar@users.sf.net> (cilibrar)
- Serge Martin
- Simon Raffeiner
- Stephane Loeuillet <leroutier@users.sf.net> (leroutier)
- Stephane Marchesin <stephane.marchesin@gmail.com> (marcheu)
- sturmflut <sturmflut@users.sf.net> (sturmflut)
- Sylvain Munaut <tnt@246tNt.com>
- Victor Stinner <victor.stinner@haypocalc.com> (haypo)
- Wladmir van der Laan <laanwj@gmail.com> (miathan6)
- Younes Manton <younes.m@gmail.com> (ymanton)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice (including the
next paragraph) shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/



#define NV31_MPEG_PITCH						0x00000160
#define NV31_MPEG_PITCH_PITCH__MASK				0x00001fff
#define NV31_MPEG_PITCH_PITCH__SHIFT				0
#define NV31_MPEG_PITCH_UNK					0x00010000

#define NV31_MPEG_SIZE						0x00000164
#define NV31_MPEG_SIZE_W__MASK					0x0000ffff
#define NV31_MPEG_SIZE_W__SHIFT					0
#define NV31_MPEG_SIZE_H__MASK					0xffff0000
#define NV31_MPEG_SIZE_H__SHIFT					16

#define NV31_MPEG_DMA_CMD					0x00000190

#define NV31_MPEG_DMA_DATA					0x000001a0

#define NV31_MPEG_DMA_IMAGE					0x000001b0

#define NV84_MPEG_DMA_QUERY					0x000001c0

#define NV31_MPEG_IMAGE_Y_OFFSET(i0)			       (0x00000200 + 0x8*(i0))
#define NV31_MPEG_IMAGE_Y_OFFSET__ESIZE				0x00000008
#define NV31_MPEG_IMAGE_Y_OFFSET__LEN				0x00000008

#define NV31_MPEG_IMAGE_C_OFFSET(i0)			       (0x00000204 + 0x8*(i0))
#define NV31_MPEG_IMAGE_C_OFFSET__ESIZE				0x00000008
#define NV31_MPEG_IMAGE_C_OFFSET__LEN				0x00000008

#define NV31_MPEG_FORMAT					0x00000310
#define NV31_MPEG_FORMAT_DATA_FORMAT__MASK			0x00000001
#define NV31_MPEG_FORMAT_DATA_FORMAT__SHIFT			0
#define NV31_MPEG_FORMAT_DATA_FORMAT_S16			0x00000000
#define NV31_MPEG_FORMAT_DATA_FORMAT_S8				0x00000001
#define NV31_MPEG_FORMAT_UNK8					0x00000100

#define NV31_MPEG_IDCT_ENABLE					0x00000314


#define NV84_MPEG_QUERY_OFFSET					0x0000031c

#define NV84_MPEG_QUERY_COUNTER					0x00000320

#define NV31_MPEG_CMD_OFFSET					0x00000380

#define NV31_MPEG_CMD_SIZE					0x00000384

#define NV31_MPEG_DATA_OFFSET					0x0000038c

#define NV31_MPEG_DATA_SIZE					0x00000390

#define NV31_MPEG_EXEC						0x00000394


#endif /* ___RNNDB_NV31_MPEG_XML */
