#ifndef _BOOTVID_PCH_ #define _BOOTVID_PCH_ #include #include #include /* Define if FontData has upside down characters */ #undef CHAR_GEN_UPSIDE_DOWN #define BOOTCHAR_HEIGHT 13 #ifndef _M_ARM #include "vga.h" #endif /* _M_ARM */ /* Bitmap Header */ typedef struct tagBITMAPINFOHEADER { ULONG biSize; LONG biWidth; LONG biHeight; USHORT biPlanes; USHORT biBitCount; ULONG biCompression; ULONG biSizeImage; LONG biXPelsPerMeter; LONG biYPelsPerMeter; ULONG biClrUsed; ULONG biClrImportant; } BITMAPINFOHEADER, *PBITMAPINFOHEADER; /* Supported bitmap compression formats */ #define BI_RGB 0 #define BI_RLE4 2 VOID NTAPI InitializePalette(VOID); /* Globals */ #ifndef _M_ARM extern ULONG curr_x; extern ULONG curr_y; extern ULONG_PTR VgaRegisterBase; extern ULONG_PTR VgaBase; extern USHORT AT_Initialization[]; extern USHORT VGA_640x480[]; #endif /* _M_ARM */ extern UCHAR FontData[256 * BOOTCHAR_HEIGHT]; #define __inpb(Port) \ READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port))) #define __inpw(Port) \ READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port))) #define __outpb(Port, Value) \ WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value)) #define __outpw(Port, Value) \ WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value)) #endif /* _BOOTVID_PCH_ */