mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
71 lines
1.6 KiB
C
71 lines
1.6 KiB
C
#ifndef _BOOTVID_PCH_
|
|
#define _BOOTVID_PCH_
|
|
|
|
#include <ntifs.h>
|
|
#include <ndk/halfuncs.h>
|
|
#include <drivers/bootvid/bootvid.h>
|
|
|
|
/* Define if FontData has upside down characters */
|
|
#undef CHAR_GEN_UPSIDE_DOWN
|
|
|
|
#define BOOTCHAR_HEIGHT 13
|
|
#define BOOTCHAR_WIDTH 8 // Each character line is encoded in a UCHAR.
|
|
|
|
/*
|
|
* Screen resolution (for default VGA)
|
|
*/
|
|
#define SCREEN_WIDTH 640
|
|
#define SCREEN_HEIGHT 480
|
|
|
|
#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_ */
|