2014-01-26 20:24:59 +00:00
|
|
|
#include <wdm.h>
|
|
|
|
#include <drivers/bootvid/bootvid.h>
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
/* Define if FontData has upside down characters */
|
|
|
|
#undef CHAR_GEN_UPSIDE_DOWN
|
|
|
|
|
|
|
|
#define BOOTCHAR_HEIGHT 13
|
|
|
|
|
2014-01-26 20:24:59 +00:00
|
|
|
/* Command Stream Definitions */
|
2009-10-12 03:35:35 +00:00
|
|
|
#define CMD_STREAM_WRITE 0x0
|
|
|
|
#define CMD_STREAM_WRITE_ARRAY 0x2
|
|
|
|
#define CMD_STREAM_USHORT 0x4
|
|
|
|
#define CMD_STREAM_READ 0x8
|
|
|
|
|
2014-01-26 20:24:59 +00:00
|
|
|
/* Bitmap Header */
|
2009-10-12 03:35:35 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
InitializePalette(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2014-01-26 20:24:59 +00:00
|
|
|
/* Globals */
|
2009-10-12 03:35:35 +00:00
|
|
|
extern USHORT AT_Initialization[];
|
|
|
|
extern ULONG curr_x;
|
|
|
|
extern ULONG curr_y;
|
|
|
|
extern ULONG_PTR VgaRegisterBase;
|
|
|
|
extern ULONG_PTR VgaBase;
|
|
|
|
extern UCHAR FontData[256 * BOOTCHAR_HEIGHT];
|