annotate drivers/3dfx.h @ 34994:b6ac08b94fc3

Go without pointless variable hWnd/hwnd. It will be saved later in the gui_t structure anyway, so save it early and use the struct member instead.
author ib
date Wed, 15 Aug 2012 12:33:45 +0000
parents 29dc134ae9b3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26003
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
1 /*
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
2 * Copyright (C) Colin Cross Apr 2000
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
3 * changed by zsteva Aug/Sep 2001, see vo_3dfx.c
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 *
26003
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
5 * This file is part of MPlayer.
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
6 *
26003
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
7 * MPlayer is free software; you can redistribute it and/or modify
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
8 * it under the terms of the GNU General Public License as published by
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
10 * (at your option) any later version.
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
11 *
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
12 * MPlayer is distributed in the hope that it will be useful,
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
15 * GNU General Public License for more details.
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
16 *
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
17 * You should have received a copy of the GNU General Public License along
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
18 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
a506a6ab14e1 Add standard license header and make copyright notices consistent.
diego
parents: 25553
diff changeset
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 21977
diff changeset
22 #ifndef MPLAYER_3DFX_H
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 21977
diff changeset
23 #define MPLAYER_3DFX_H
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24
32358
29dc134ae9b3 Add necessary #includes to make headers compile standalone.
diego
parents: 30990
diff changeset
25 #include <linux/types.h>
29dc134ae9b3 Add necessary #includes to make headers compile standalone.
diego
parents: 30990
diff changeset
26
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 #define VOODOO_IO_REG_OFFSET ((unsigned long int)0x0000000)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 #define VOODOO_YUV_REG_OFFSET ((unsigned long int)0x0080100)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 #define VOODOO_AGP_REG_OFFSET ((unsigned long int)0x0080000)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 #define VOODOO_2D_REG_OFFSET ((unsigned long int)0x0100000)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 #define VOODOO_YUV_PLANE_OFFSET ((unsigned long int)0x0C00000)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 #define VOODOO_BLT_FORMAT_YUYV (8<<16)
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
34 #define VOODOO_BLT_FORMAT_UYVY (9<<16)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 #define VOODOO_BLT_FORMAT_16 (3<<16)
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
36 #define VOODOO_BLT_FORMAT_24 (4<<16)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
37 #define VOODOO_BLT_FORMAT_32 (5<<16)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 #define VOODOO_YUV_STRIDE (1024>>2)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 struct voodoo_yuv_fb_t {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 uint32_t Y[0x0040000];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 uint32_t U[0x0040000];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 uint32_t V[0x0040000];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 struct voodoo_yuv_reg_t {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 uint32_t yuvBaseAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 uint32_t yuvStride;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 struct voodoo_2d_reg_t {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 uint32_t status;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 uint32_t intCtrl;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 uint32_t clip0Min;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 uint32_t clip0Max;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 uint32_t dstBaseAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 uint32_t dstFormat;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 uint32_t srcColorkeyMin;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 uint32_t srcColorkeyMax;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 uint32_t dstColorkeyMin;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 uint32_t dstColorkeyMax;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 signed long bresError0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 signed long bresError1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 uint32_t rop;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 uint32_t srcBaseAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 uint32_t commandExtra;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 uint32_t lineStipple;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 uint32_t lineStyle;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 uint32_t pattern0Alias;
28576
a6b506faeb34 Replace double semicolon by single semicolon.
diego
parents: 27092
diff changeset
71 uint32_t pattern1Alias;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 uint32_t clip1Min;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 uint32_t clip1Max;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 uint32_t srcFormat;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 uint32_t srcSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 uint32_t srcXY;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 uint32_t colorBack;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 uint32_t colorFore;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 uint32_t dstSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 uint32_t dstXY;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 uint32_t command;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 uint32_t RESERVED1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 uint32_t RESERVED2;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 uint32_t RESERVED3;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 uint8_t launchArea[128];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 struct voodoo_io_reg_t {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 uint32_t status;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 uint32_t pciInit0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 uint32_t sipMonitor;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 uint32_t lfbMemoryConfig;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 uint32_t miscInit0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 uint32_t miscInit1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 uint32_t dramInit0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 uint32_t dramInit1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 uint32_t agpInit;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 uint32_t tmuGbeInit;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 uint32_t vgaInit0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 uint32_t vgaInit1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 uint32_t dramCommand;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 uint32_t dramData;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 uint32_t RESERVED1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 uint32_t RESERVED2;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 uint32_t pllCtrl0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 uint32_t pllCtrl1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 uint32_t pllCtrl2;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 uint32_t dacMode;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 uint32_t dacAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 uint32_t dacData;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 uint32_t rgbMaxDelta;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 uint32_t vidProcCfg;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 uint32_t hwCurPatAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117 uint32_t hwCurLoc;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118 uint32_t hwCurC0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119 uint32_t hwCurC1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120 uint32_t vidInFormat;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121 uint32_t vidInStatus;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 uint32_t vidSerialParallelPort;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 uint32_t vidInXDecimDeltas;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124 uint32_t vidInDecimInitErrs;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 uint32_t vidInYDecimDeltas;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 uint32_t vidPixelBufThold;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127 uint32_t vidChromaMin;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 uint32_t vidChromaMax;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 uint32_t vidCurrentLine;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 uint32_t vidScreenSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 uint32_t vidOverlayStartCoords;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 uint32_t vidOverlayEndScreenCoord;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 uint32_t vidOverlayDudx;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134 uint32_t vidOverlayDudxOffsetSrcWidth;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 uint32_t vidOverlayDvdy;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137 uint32_t vga_registers_not_mem_mapped[12];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 uint32_t vidOverlayDvdyOffset;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 uint32_t vidDesktopStartAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 uint32_t vidDesktopOverlayStride;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 uint32_t vidInAddr0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 uint32_t vidInAddr1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 uint32_t vidInAddr2;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 uint32_t vidInStride;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145 uint32_t vidCurrOverlayStartAddr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 struct pioData_t {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 short port;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 short size;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 int device;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 void *value;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 typedef struct pioData_t pioData;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 typedef struct voodoo_2d_reg_t voodoo_2d_reg;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
158 typedef struct voodoo_io_reg_t voodoo_io_reg;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159 typedef struct voodoo_yuv_reg_t voodoo_yuv_reg;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160 typedef struct voodoo_yuv_fb_t voodoo_yuv_fb;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
162
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
163 /* from linux/driver/video/tdfxfb.c, definition for 3dfx registers.
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
164 *
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
165 * author: Hannu Mallat <hmallat@cc.hut.fi>
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
166 */
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
167
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
168 #ifndef PCI_DEVICE_ID_3DFX_VOODOO5
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
169 #define PCI_DEVICE_ID_3DFX_VOODOO5 0x0009
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
170 #endif
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
171
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
172 /* membase0 register offsets */
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
173 #define STATUS 0x00
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
174 #define PCIINIT0 0x04
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
175 #define SIPMONITOR 0x08
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
176 #define LFBMEMORYCONFIG 0x0c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
177 #define MISCINIT0 0x10
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
178 #define MISCINIT1 0x14
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
179 #define DRAMINIT0 0x18
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
180 #define DRAMINIT1 0x1c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
181 #define AGPINIT 0x20
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
182 #define TMUGBEINIT 0x24
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
183 #define VGAINIT0 0x28
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
184 #define VGAINIT1 0x2c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
185 #define DRAMCOMMAND 0x30
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
186 #define DRAMDATA 0x34
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
187 /* reserved 0x38 */
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
188 /* reserved 0x3c */
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
189 #define PLLCTRL0 0x40
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
190 #define PLLCTRL1 0x44
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
191 #define PLLCTRL2 0x48
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
192 #define DACMODE 0x4c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
193 #define DACADDR 0x50
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
194 #define DACDATA 0x54
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
195 #define RGBMAXDELTA 0x58
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
196 #define VIDPROCCFG 0x5c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
197 #define HWCURPATADDR 0x60
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
198 #define HWCURLOC 0x64
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
199 #define HWCURC0 0x68
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
200 #define HWCURC1 0x6c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
201 #define VIDINFORMAT 0x70
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
202 #define VIDINSTATUS 0x74
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
203 #define VIDSERPARPORT 0x78
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
204 #define VIDINXDELTA 0x7c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
205 #define VIDININITERR 0x80
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
206 #define VIDINYDELTA 0x84
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
207 #define VIDPIXBUFTHOLD 0x88
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
208 #define VIDCHRMIN 0x8c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
209 #define VIDCHRMAX 0x90
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
210 #define VIDCURLIN 0x94
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
211 #define VIDSCREENSIZE 0x98
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
212 #define VIDOVRSTARTCRD 0x9c
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
213 #define VIDOVRENDCRD 0xa0
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
214 #define VIDOVRDUDX 0xa4
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
215 #define VIDOVRDUDXOFF 0xa8
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
216 #define VIDOVRDVDY 0xac
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
217 /* ... */
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
218 #define VIDOVRDVDYOFF 0xe0
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
219 #define VIDDESKSTART 0xe4
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
220 #define VIDDESKSTRIDE 0xe8
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
221 #define VIDINADDR0 0xec
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
222 #define VIDINADDR1 0xf0
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
223 #define VIDINADDR2 0xf4
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
224 #define VIDINSTRIDE 0xf8
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
225 #define VIDCUROVRSTART 0xfc
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
226
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
227 #define INTCTRL (0x00100000 + 0x04)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
228 #define CLIP0MIN (0x00100000 + 0x08)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
229 #define CLIP0MAX (0x00100000 + 0x0c)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
230 #define DSTBASE (0x00100000 + 0x10)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
231 #define DSTFORMAT (0x00100000 + 0x14)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
232 #define SRCCOLORKEYMIN (0x00100000 + 0x18)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
233 #define SRCCOLORKEYMAX (0x00100000 + 0x1c)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
234 #define DSTCOLORKEYMIN (0x00100000 + 0x20)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
235 #define DSTCOLORKEYMAX (0x00100000 + 0x24)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
236 #define ROP123 (0x00100000 + 0x30)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
237 #define SRCBASE (0x00100000 + 0x34)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
238 #define COMMANDEXTRA_2D (0x00100000 + 0x38)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
239 #define CLIP1MIN (0x00100000 + 0x4c)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
240 #define CLIP1MAX (0x00100000 + 0x50)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
241 #define SRCFORMAT (0x00100000 + 0x54)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
242 #define SRCSIZE (0x00100000 + 0x58)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
243 #define SRCXY (0x00100000 + 0x5c)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
244 #define COLORBACK (0x00100000 + 0x60)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
245 #define COLORFORE (0x00100000 + 0x64)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
246 #define DSTSIZE (0x00100000 + 0x68)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
247 #define DSTXY (0x00100000 + 0x6c)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
248 #define COMMAND_2D (0x00100000 + 0x70)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
249 #define LAUNCH_2D (0x00100000 + 0x80)
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
250
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
251 #define COMMAND_3D (0x00200000 + 0x120)
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
252
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
253 #define SWAPBUFCMD (0x00200000 + 0x128)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
254 #define SWAPPENDING (0x00200000 + 0x24C)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
255 #define LEFTOVBUF (0x00200000 + 0x250)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
256 #define RIGHTOVBUF (0x00200000 + 0x254)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
257 #define FBISWAPBUFHIST (0x00200000 + 0x258)
9566
015b404023f5 Overlay support (now vo_xtdfx is possible :) and yet another way to
albeu
parents: 9557
diff changeset
258
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
259 /* register bitfields (not all, only as needed) */
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
260
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
261 #define BIT(x) (1UL << (x))
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
262
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
263 /* COMMAND_2D reg. values */
27092
0b4d8e4d4ed7 Rename some definitions to avoid clashing with system headers, fixes:
diego
parents: 26003
diff changeset
264 #define TDFXFB_ROP_COPY 0xcc // src
0b4d8e4d4ed7 Rename some definitions to avoid clashing with system headers, fixes:
diego
parents: 26003
diff changeset
265 #define TDFXFB_ROP_INVERT 0x55 // NOT dst
0b4d8e4d4ed7 Rename some definitions to avoid clashing with system headers, fixes:
diego
parents: 26003
diff changeset
266 #define TDFXFB_ROP_XOR 0x66 // src XOR dst
0b4d8e4d4ed7 Rename some definitions to avoid clashing with system headers, fixes:
diego
parents: 26003
diff changeset
267 #define TDFXFB_ROP_OR 0xee // src | dst
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
268
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
269 #define AUTOINC_DSTX BIT(10)
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
270 #define AUTOINC_DSTY BIT(11)
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
271
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
272
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
273 #define COMMAND_2D_S2S_BITBLT 0x01 // screen to screen
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
274 #define COMMAND_2D_S2S_STRECH_BLT 0x02 // BLT + Strech
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
275 #define COMMAND_2D_H2S_BITBLT 0x03 // host to screen
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
276 #define COMMAND_2D_FILLRECT 0x05
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
277
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
278 #define COMMAND_2D_DO_IMMED BIT(8) // Do it immediatly
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
279
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
280
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
281
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
282 #define COMMAND_3D_NOP 0x00
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
283 #define STATUS_RETRACE BIT(6)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
284 #define STATUS_BUSY BIT(9)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
285 #define MISCINIT1_CLUT_INV BIT(0)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
286 #define MISCINIT1_2DBLOCK_DIS BIT(15)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
287 #define DRAMINIT0_SGRAM_NUM BIT(26)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
288 #define DRAMINIT0_SGRAM_TYPE BIT(27)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
289 #define DRAMINIT1_MEM_SDRAM BIT(30)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
290 #define VGAINIT0_VGA_DISABLE BIT(0)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
291 #define VGAINIT0_EXT_TIMING BIT(1)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
292 #define VGAINIT0_8BIT_DAC BIT(2)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
293 #define VGAINIT0_EXT_ENABLE BIT(6)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
294 #define VGAINIT0_WAKEUP_3C3 BIT(8)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
295 #define VGAINIT0_LEGACY_DISABLE BIT(9)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
296 #define VGAINIT0_ALT_READBACK BIT(10)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
297 #define VGAINIT0_FAST_BLINK BIT(11)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
298 #define VGAINIT0_EXTSHIFTOUT BIT(12)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
299 #define VGAINIT0_DECODE_3C6 BIT(13)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
300 #define VGAINIT0_SGRAM_HBLANK_DISABLE BIT(22)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
301 #define VGAINIT1_MASK 0x1fffff
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
302 #define VIDCFG_VIDPROC_ENABLE BIT(0)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
303 #define VIDCFG_CURS_X11 BIT(1)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
304 #define VIDCFG_HALF_MODE BIT(4)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
305 #define VIDCFG_DESK_ENABLE BIT(7)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
306 #define VIDCFG_CLUT_BYPASS BIT(10)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
307 #define VIDCFG_2X BIT(26)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
308 #define VIDCFG_HWCURSOR_ENABLE BIT(27)
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
309 #define VIDCFG_PIXFMT_SHIFT 18
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
310 #define DACMODE_2X BIT(0)
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
311
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
312 /* AGP registers */
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
313 #define AGPREQSIZE (0x0080000 + 0x00)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
314 #define AGPHOSTADDRESSLOW (0x0080000 + 0x04)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
315 #define AGPHOSTADDRESSHIGH (0x0080000 + 0x08)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
316 #define AGPGRAPHICSADDRESS (0x0080000 + 0x0C)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
317 #define AGPGRAPHICSSTRIDE (0x0080000 + 0x10)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
318 #define AGPMOVECMD (0x0080000 + 0x14)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
319
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
320 /* FIFO registers */
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
321 #define CMDBASEADDR0 (0x0080000 + 0x20)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
322 #define CMDBASESIZE0 (0x0080000 + 0x24)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
323 #define CMDBUMP0 (0x0080000 + 0x28)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
324 #define CMDRDPTRL0 (0x0080000 + 0x2C)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
325 #define CMDRDPTRH0 (0x0080000 + 0x30)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
326 #define CMDAMIN0 (0x0080000 + 0x34)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
327 #define CMDAMAX0 (0x0080000 + 0x38)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
328 #define CMDFIFODEPTH0 (0x0080000 + 0x44)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
329 #define CMDHOLECNT0 (0x0080000 + 0x48)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
330
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
331
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
332 /* YUV reisters */
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
333 #define YUVBASEADDRESS (0x0080000 + 0x100)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
334 #define YUVSTRIDE (0x0080000 + 0x104)
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
335
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
336 /* VGA rubbish, need to change this for multihead support */
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
337 #define MISC_W 0x3c2
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
338 #define MISC_R 0x3cc
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
339 #define SEQ_I 0x3c4
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
340 #define SEQ_D 0x3c5
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
341 #define CRT_I 0x3d4
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
342 #define CRT_D 0x3d5
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
343 #define ATT_IW 0x3c0
9557
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
344 #define RAMDAC_R 0x3c7
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
345 #define RAMDAC_W 0x3c8
261209467b41 I forgot to commit this file
albeu
parents: 9210
diff changeset
346 #define RAMDAC_D 0x3c9
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
347 #define IS1_R 0x3da
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
348 #define GRA_I 0x3ce
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
349 #define GRA_D 0x3cf
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
350
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28576
diff changeset
351 #ifndef FB_ACCEL_3DFX_BANSHEE
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
352 #define FB_ACCEL_3DFX_BANSHEE 31
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
353 #endif
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
354
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
355 #define TDFXF_HSYNC_ACT_HIGH 0x01
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
356 #define TDFXF_HSYNC_ACT_LOW 0x02
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
357 #define TDFXF_VSYNC_ACT_HIGH 0x04
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
358 #define TDFXF_VSYNC_ACT_LOW 0x08
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
359 #define TDFXF_LINE_DOUBLE 0x10
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
360 #define TDFXF_VIDEO_ENABLE 0x20
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
361
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
362 #define TDFXF_HSYNC_MASK 0x03
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
363 #define TDFXF_VSYNC_MASK 0x0c
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
364
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29263
diff changeset
365 #define XYREG(x,y) (((((unsigned long)y) & 0x1FFF) << 16) | (((unsigned long)x) & 0x1FFF))
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
366
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28576
diff changeset
367 //#define TDFXFB_DEBUG
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
368 #ifdef TDFXFB_DEBUG
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
369 #define DPRINTK(a,b...) printk(KERN_DEBUG "fb: %s: " a, __FUNCTION__ , ## b)
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
370 #else
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
371 #define DPRINTK(a,b...)
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28576
diff changeset
372 #endif
1980
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
373
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
374 /* ------------------------------------------------------------------------- */
4a08e7ac3f59 tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents: 1
diff changeset
375
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 21977
diff changeset
376 #endif /* MPLAYER_3DFX_H */