ReactOS  0.4.14-dev-1314-gacf135d
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 #define BOOTCHAR_WIDTH 8 // Each character line is encoded in a UCHAR.
13 
14 /*
15  * Screen resolution (for default VGA)
16  */
17 #define SCREEN_WIDTH 640
18 #define SCREEN_HEIGHT 480
19 
20 #ifndef _M_ARM
21 #include "vga.h"
22 #endif /* _M_ARM */
23 
24 /* Bitmap Header */
25 typedef struct tagBITMAPINFOHEADER
26 {
39 
40 /* Supported bitmap compression formats */
41 #define BI_RGB 0
42 #define BI_RLE4 2
43 
44 VOID
45 NTAPI
47 
48 /* Globals */
49 #ifndef _M_ARM
50 extern ULONG curr_x;
51 extern ULONG curr_y;
53 extern ULONG_PTR VgaBase;
54 extern USHORT AT_Initialization[];
55 extern USHORT VGA_640x480[];
56 #endif /* _M_ARM */
57 extern UCHAR FontData[256 * BOOTCHAR_HEIGHT];
58 
59 #define __inpb(Port) \
60  READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)))
61 
62 #define __inpw(Port) \
63  READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)))
64 
65 #define __outpb(Port, Value) \
66  WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value))
67 
68 #define __outpw(Port, Value) \
69  WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value))
70 
71 #endif /* _BOOTVID_PCH_ */
ULONG curr_y
Definition: vga.c:68
ULONG curr_x
Definition: vga.c:67
USHORT biBitCount
Definition: precomp.h:31
LONG biXPelsPerMeter
Definition: precomp.h:34
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
ULONG biCompression
Definition: precomp.h:32
uint32_t ULONG_PTR
Definition: typedefs.h:64
#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:37
USHORT AT_Initialization[]
Definition: bootdata.c:7
VOID NTAPI InitializePalette(VOID)
Definition: vga.c:291
ULONG_PTR VgaRegisterBase
Definition: vga.c:65
unsigned char UCHAR
Definition: xmlstorage.h:181
ULONG_PTR VgaBase
Definition: vga.c:66
LONG biYPelsPerMeter
Definition: precomp.h:35
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