Go to the source code of this file.
◆ COLOR_BLACK
◆ COLOR_BLUE
◆ COLOR_BROWN
◆ COLOR_CYAN
◆ COLOR_DARKGRAY
◆ COLOR_GREEN
◆ COLOR_LIGHTBLUE
#define COLOR_LIGHTBLUE 3 |
◆ COLOR_LIGHTCYAN
#define COLOR_LIGHTCYAN 11 |
◆ COLOR_LIGHTGREEN
#define COLOR_LIGHTGREEN 10 |
◆ COLOR_LIGHTGREY
#define COLOR_LIGHTGREY 13 |
◆ COLOR_LIGHTMAGENTA
#define COLOR_LIGHTMAGENTA 7 |
◆ COLOR_LIGHTRED
◆ COLOR_MAGENTA
◆ COLOR_RED
◆ COLOR_WHITE
◆ COLOR_YELLOW
◆ MAX_SCREENS
◆ SCREEN_CONSOLE
◆ SCREEN_EXTRA
◆ SCREEN_KDEBUG
◆ SCREEN_KLOG
◆ Panic()
void Panic |
( |
const char * |
str | ) |
|
Definition at line 164 of file vgacons.c.
165{
167 __asm__("int3");
168 while (1)
169 {
170 __asm__("hlt");
171 }
172}
void VGA_Puts(const char *str)
◆ VGA_ClearDisplay()
void VGA_ClearDisplay |
( |
void |
| ) |
|
◆ VGA_Init()
Definition at line 75 of file vgacons.c.
76{
77 int i = 0;
78
80 {
82 }
83
86
87
88
89
90
91
92}
static short * VideoBuffer
static unsigned char TextAttribute
◆ VGA_LateInit()
void VGA_LateInit |
( |
void |
| ) |
|
◆ VGA_LoadFont()
void VGA_LoadFont |
( |
void * |
fontBuffer, |
|
|
int |
maxLength |
|
) |
| |
◆ VGA_Putc()
void VGA_Putc |
( |
short |
ch | ) |
|
Definition at line 115 of file vgacons.c.
116{
118 switch (c & 0xFF)
119 {
120 case '\b':
124 }
125 break;
126 case '\n':
129 } else {
131 }
133 break;
134 case '\r':
135 break;
136 case '\t':
141 break;
142 default:
148 } else {
150 }
152 }
153 break;
154 }
155}
void VGA_ScrollDisplay(void)
◆ VGA_Puts()
void VGA_Puts |
( |
const char * |
str | ) |
|
Definition at line 157 of file vgacons.c.
158{
159 const char *p = str;
160 while (*p != '\0')
162}
◆ VGA_SaveFont()
void VGA_SaveFont |
( |
void * |
fontBuffer, |
|
|
int |
maxLength |
|
) |
| |
◆ VGA_ScollDisplay()
void VGA_ScollDisplay |
( |
void |
| ) |
|
◆ VGA_SwitchTo()
void VGA_SwitchTo |
( |
int |
screen | ) |
|