ReactOS  0.4.14-dev-554-g2f8d847
precomp.h
Go to the documentation of this file.
1 #ifndef _BOOTVID_PCH_
2 #define _BOOTVID_PCH_
3 
4 #include <ntifs.h>
5 #include <ndk/halfuncs.h>
7 
8 /* Define if FontData has upside down characters */
9 #undef CHAR_GEN_UPSIDE_DOWN
10 
11 #define BOOTCHAR_HEIGHT 13
12 
13 #ifndef _M_ARM
14 #include "vga.h"
15 #endif /* _M_ARM */
16 
17 /* Bitmap Header */
18 typedef struct tagBITMAPINFOHEADER
19 {
32 
33 /* Supported bitmap compression formats */
34 #define BI_RGB 0
35 #define BI_RLE4 2
36 
37 VOID
38 NTAPI
40 
41 /* Globals */
42 #ifndef _M_ARM
43 extern ULONG curr_x;
44 extern ULONG curr_y;
46 extern ULONG_PTR VgaBase;
47 extern USHORT AT_Initialization[];
48 extern USHORT VGA_640x480[];
49 #endif /* _M_ARM */
50 extern UCHAR FontData[256 * BOOTCHAR_HEIGHT];
51 
52 #define __inpb(Port) \
53  READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)))
54 
55 #define __inpw(Port) \
56  READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)))
57 
58 #define __outpb(Port, Value) \
59  WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value))
60 
61 #define __outpw(Port, Value) \
62  WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value))
63 
64 #endif /* _BOOTVID_PCH_ */
ULONG curr_y
Definition: vga.c:69
ULONG curr_x
Definition: vga.c:68
USHORT biBitCount
Definition: precomp.h:24
LONG biXPelsPerMeter
Definition: precomp.h:27
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
ULONG biCompression
Definition: precomp.h:25
uint32_t ULONG_PTR
Definition: typedefs.h:63
#define BOOTCHAR_HEIGHT
Definition: precomp.h:11
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
struct tagBITMAPINFOHEADER * PBITMAPINFOHEADER
long LONG
Definition: pedump.c:60
ULONG biClrImportant
Definition: precomp.h:30
USHORT AT_Initialization[]
Definition: bootdata.c:7
VOID NTAPI InitializePalette(VOID)
Definition: vga.c:295
ULONG_PTR VgaRegisterBase
Definition: vga.c:66
unsigned char UCHAR
Definition: xmlstorage.h:181
ULONG_PTR VgaBase
Definition: vga.c:67
LONG biYPelsPerMeter
Definition: precomp.h:28
unsigned short USHORT
Definition: pedump.c:61
USHORT VGA_640x480[]
Definition: bootdata.c:38
unsigned int ULONG
Definition: retypes.h:1
UCHAR FontData[256 *BOOTCHAR_HEIGHT]
Definition: fontdata.c:9