11#include <machine/amd64.h>
12#include <machine/pmap.h>
25#define VGA_ATC_INDEX 0x00 + VGA_BASE
26#define VGA_ATC_DATA 0x01 + VGA_BASE
27#define VGA_SEQ_INDEX 0x02 + VGA_BASE
28#define VGA_SEQ_DATA 0x05 + VGA_BASE
29#define VGA_PAL_RADDR 0x07 + VGA_BASE
30#define VGA_PAL_WADDR 0x08 + VGA_BASE
31#define VGA_PAL_DATA 0x09 + VGA_BASE
32#define VGA_GDC_INDEX 0x0E + VGA_BASE
33#define VGA_GDC_DATA 0x0F + VGA_BASE
103 for (i = 1; i <
SizeY; i++)
105 for (j = 0; j <
SizeX; j++)
110 for (j = 0; j <
SizeX; j++)
static INLINE uint8_t inb(uint16_t port)
static INLINE void outb(uint16_t port, uint8_t data)
#define MEM_DIRECTMAP_BASE
void VGA_Puts(const char *str)
static short * VideoBuffer
void VGA_ScrollDisplay(void)
static uint8_t ModeBuffer[6]
static unsigned char TextAttribute
void Panic(const char *str)