summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/nv31_mpeg.xml.h
blob: a8c1e324474adec5304f0f4101a18608a27ef194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#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 */