]> 4ch.mooo.com Git - 16.git/blob - 16/tweak16/TWKUSER.H
refresh wwww
[16.git] / 16 / tweak16 / TWKUSER.H
1 #ifndef _TwkUser_h\r
2 #define _TwkUser_h\r
3 \r
4 /*\r
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
10                 SEQ                     -       Sequencer\r
11                 GRACON          -       Graphics Controller\r
12                 CRTC            -       Cathode Ray Tube Controller\r
13                 STATUS          -       Status Register\r
14 */\r
15 \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
23 \r
24 \r
25 /*\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
28 */\r
29 \r
30 typedef struct\r
31         {\r
32         unsigned port;\r
33         unsigned char index;\r
34         unsigned char value;\r
35         } Register;\r
36 \r
37 typedef Register *RegisterPtr;\r
38 \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
43 \r
44 #endif\r
45 \r