Implemented basic VGA routines
[reactos.git] / reactos / drivers / dd / vga / display / vgavideo / vgavideo.h
1 #define VGA_NORMAL 0
2 #define VGA_AND 8
3 #define VGA_OR 16
4 #define VGA_XOR 24
5
6 typedef struct { int quot, rem; } div_t;
7
8 int maskbit[640], y80[480], xconv[640], bit8[640], startmasks[8], endmasks[8];
9
10 char* vidmem;
11
12 #define MISC 0x3c2
13 #define SEQ 0x3c4
14 #define CRTC 0x3d4
15 #define GRAPHICS 0x3ce
16 #define FEATURE 0x3da
17 #define ATTRIB 0x3c0
18 #define STATUS 0x3da
19
20 typedef struct _VideoMode {
21 unsigned short VidSeg;
22 unsigned char Misc;
23 unsigned char Feature;
24 unsigned char Seq[5];
25 unsigned char Crtc[25];
26 unsigned char Gfx[9];
27 unsigned char Attrib[21];
28 } VideoMode;
29
30 VOID vgaPreCalc();