:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / 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 //This is in mingw standard headers
10 //typedef struct { int quot, rem; } div_t;
11
12 int maskbit[640], y80[480], xconv[640], bit8[640], startmasks[8], endmasks[8];
13
14 char* vidmem;
15
16 #define MISC     0x3c2
17 #define SEQ      0x3c4
18 #define CRTC     0x3d4
19 #define GRAPHICS 0x3ce
20 #define FEATURE  0x3da
21 #define ATTRIB   0x3c0
22 #define STATUS   0x3da
23
24 typedef struct _VideoMode {
25   unsigned short VidSeg;
26   unsigned char  Misc;
27   unsigned char  Feature;
28   unsigned short Seq[6];
29   unsigned short Crtc[25];
30   unsigned short Gfx[9];
31   unsigned char  Attrib[21];
32 } VideoMode;
33
34 VOID vgaPreCalc();