5 xxxxADDR defines the base port number used to access VGA component xxxx,
\r
6 and is defined for xxxx =
\r
7 ATTRCON - Attribute Controller
\r
8 MISC - Miscellaneous Register
\r
9 VGAENABLE - VGA Enable Register
\r
11 GRACON - Graphics Controller
\r
12 CRTC - Cathode Ray Tube Controller
\r
13 STATUS - Status Register
\r
16 #define ATTRCON_ADDR 0x3c0
\r
17 #define MISC_ADDR 0x3c2
\r
18 #define VGAENABLE_ADDR 0x3c3
\r
19 #define SEQ_ADDR 0x3c4
\r
20 #define GRACON_ADDR 0x3ce
\r
21 #define CRTC_ADDR 0x3d4
\r
22 #define STATUS_ADDR 0x3da
\r
26 Note that the following C definition of Register is not compatible
\r
27 with the C++ definition used in the source code of TWEAK itself!
\r
33 unsigned char index;
\r
34 unsigned char value;
\r
37 typedef Register *RegisterPtr;
\r
39 void readyVgaRegs(void);
\r
40 void outRegArray(Register *r, int n);
\r
41 void outReg(Register r);
\r
42 int loadRegArray(char *fpath, RegisterPtr *array);
\r