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