2 * ReactOS Boot video driver
4 * Copyright (C) 2003 Casper S. Hornstroup
5 * Copyright (C) 2004 Filip Navara
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 #define PALETTE_FADE_STEPS 20
28 #define PALETTE_FADE_TIME 20 * 10000 /* 20ms */
31 * Windows Bitmap structures
36 typedef struct tagRGBQUAD
38 unsigned char rgbBlue
;
39 unsigned char rgbGreen
;
41 unsigned char rgbReserved
;
44 typedef long FXPT2DOT30
;
46 typedef struct tagCIEXYZ
53 typedef struct tagCIEXYZTRIPLE
58 } CIEXYZTRIPLE
, *LPCIEXYZTRIPLE
;
68 LONG bV5XPelsPerMeter
;
69 LONG bV5YPelsPerMeter
;
71 DWORD bV5ClrImportant
;
77 CIEXYZTRIPLE bV5Endpoints
;
85 } BITMAPV5HEADER
, *PBITMAPV5HEADER
;
88 * Private driver structures
95 } FADER_PALETTE_ENTRY
;
97 typedef struct _VGA_REGISTERS
104 } VGA_REGISTERS
, *PVGA_REGISTERS
;
107 #define MISC (PUCHAR)0x3c2
108 #define SEQ (PUCHAR)0x3c4
109 #define SEQDATA (PUCHAR)0x3c5
110 #define CRTC (PUCHAR)0x3d4
111 #define CRTCDATA (PUCHAR)0x3d5
112 #define GRAPHICS (PUCHAR)0x3ce
113 #define GRAPHICSDATA (PUCHAR)0x3cf
114 #define ATTRIB (PUCHAR)0x3c0
115 #define STATUS (PUCHAR)0x3da
116 #define PELMASK (PUCHAR)0x3c6
117 #define PELINDEX (PUCHAR)0x3c8
118 #define PELDATA (PUCHAR)0x3c9
122 InbvPutPixels(int x
, int y
, unsigned long c
);
124 #endif /* _BOOTVID_H */