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