1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19*/
20//
21// vregset.h: header file for video register-setting interpreter
22//
23
24//
25// registers & subregisters
26//
27#define MISC_OUTPUT	0x3C2
28
29#define SC_INDEX		0x3C4
30#define SC_DATA			0x3C5
31#define SYNC_RESET		0
32#define MAP_MASK		2
33#define MEMORY_MODE		4
34
35#define GC_INDEX		0x3CE
36#define GC_DATA			0x3CF
37#define READ_MAP		4
38#define GRAPHICS_MODE	5
39#define MISCELLANOUS	6
40
41#define CRTC_INDEX		0x3D4
42#define CRTC_DATA		0x3D5
43#define MAX_SCAN_LINE	9
44#define UNDERLINE		0x14
45#define	MODE_CONTROL	0x17
46
47//
48// register-set commands
49//
50#define VRS_END			0
51#define VRS_BYTE_OUT	1
52#define VRS_BYTE_RMW	2
53#define VRS_WORD_OUT	3
54
55void VideoRegisterSet (int *pregset);
56
57