comparison src/video/fbcon/matrox_regs.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 74212992fb08
children
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
13 * Contributors: 13 * Contributors:
14 * Guy DESBIEF, Aix-en-provence, France 14 * Guy DESBIEF, Aix-en-provence, France
15 * g.desbief@aix.pacwan.net 15 * g.desbief@aix.pacwan.net
16 * MGA1064SG Mystique register file 16 * MGA1064SG Mystique register file
17 */ 17 */
18 18
19 19
20 #ifndef _MGA_REG_H_ 20 #ifndef _MGA_REG_H_
21 #define _MGA_REG_H_ 21 #define _MGA_REG_H_
22 22
23 #define MGAREG_DWGCTL 0x1c00 23 #define MGAREG_DWGCTL 0x1c00
151 #define MGADWG_LINEAR ( 0x01 << 7 ) 151 #define MGADWG_LINEAR ( 0x01 << 7 )
152 152
153 /* z drawing mode. use MGADWG_NOZCMP for always */ 153 /* z drawing mode. use MGADWG_NOZCMP for always */
154 154
155 #define MGADWG_NOZCMP ( 0x00 << 8 ) 155 #define MGADWG_NOZCMP ( 0x00 << 8 )
156 #define MGADWG_ZE ( 0x02 << 8 ) 156 #define MGADWG_ZE ( 0x02 << 8 )
157 #define MGADWG_ZNE ( 0x03 << 8 ) 157 #define MGADWG_ZNE ( 0x03 << 8 )
158 #define MGADWG_ZLT ( 0x04 << 8 ) 158 #define MGADWG_ZLT ( 0x04 << 8 )
159 #define MGADWG_ZLTE ( 0x05 << 8 ) 159 #define MGADWG_ZLTE ( 0x05 << 8 )
160 #define MGADWG_GT ( 0x06 << 8 ) 160 #define MGADWG_GT ( 0x06 << 8 )
161 #define MGADWG_GTE ( 0x07 << 8 ) 161 #define MGADWG_GTE ( 0x07 << 8 )
188 #define MGADWG_BU32BGR ( 0x03 << 25 ) 188 #define MGADWG_BU32BGR ( 0x03 << 25 )
189 #define MGADWG_BU32RGB ( 0x07 << 25 ) 189 #define MGADWG_BU32RGB ( 0x07 << 25 )
190 #define MGADWG_BU24BGR ( 0x0b << 25 ) 190 #define MGADWG_BU24BGR ( 0x0b << 25 )
191 #define MGADWG_BU24RGB ( 0x0f << 25 ) 191 #define MGADWG_BU24RGB ( 0x0f << 25 )
192 192
193 #define MGADWG_REPLACE 0x000C0000 /* From Linux kernel sources */ 193 #define MGADWG_REPLACE 0x000C0000 /* From Linux kernel sources */
194 #define MGADWG_PATTERN ( 0x01 << 29 ) 194 #define MGADWG_PATTERN ( 0x01 << 29 )
195 #define MGADWG_TRANSC ( 0x01 << 30 ) 195 #define MGADWG_TRANSC ( 0x01 << 30 )
196 #define MGADWG_NOCLIP ( 0x01 << 31 ) 196 #define MGADWG_NOCLIP ( 0x01 << 31 )
197 #define MGAREG_MISC_WRITE 0x3c2 197 #define MGAREG_MISC_WRITE 0x3c2
198 #define MGAREG_MISC_READ 0x3cc 198 #define MGAREG_MISC_READ 0x3cc
202 #define MGAREG_MISC_CLK_SEL_VGA28 (0x1 << 2) 202 #define MGAREG_MISC_CLK_SEL_VGA28 (0x1 << 2)
203 #define MGAREG_MISC_CLK_SEL_MGA_PIX (0x2 << 2) 203 #define MGAREG_MISC_CLK_SEL_MGA_PIX (0x2 << 2)
204 #define MGAREG_MISC_CLK_SEL_MGA_MSK (0x3 << 2) 204 #define MGAREG_MISC_CLK_SEL_MGA_MSK (0x3 << 2)
205 #define MGAREG_MISC_VIDEO_DIS (0x1 << 4) 205 #define MGAREG_MISC_VIDEO_DIS (0x1 << 4)
206 #define MGAREG_MISC_HIGH_PG_SEL (0x1 << 5) 206 #define MGAREG_MISC_HIGH_PG_SEL (0x1 << 5)
207 207
208 /* MMIO VGA registers */ 208 /* MMIO VGA registers */
209 #define MGAREG_CRTC_INDEX 0x1fd4 209 #define MGAREG_CRTC_INDEX 0x1fd4
210 #define MGAREG_CRTC_DATA 0x1fd5 210 #define MGAREG_CRTC_DATA 0x1fd5
211 #define MGAREG_CRTCEXT_INDEX 0x1fde 211 #define MGAREG_CRTCEXT_INDEX 0x1fde
212 #define MGAREG_CRTCEXT_DATA 0x1fdf 212 #define MGAREG_CRTCEXT_DATA 0x1fdf
371 #define MGA1064_PIX_PLLC_P 0x4e 371 #define MGA1064_PIX_PLLC_P 0x4e
372 372
373 #define MGA1064_PIX_PLL_STAT 0x4f 373 #define MGA1064_PIX_PLL_STAT 0x4f
374 374
375 #endif 375 #endif
376 376 /* vi: set ts=4 sw=4 expandtab: */