46,6 → 46,7 |
#include <console/chardev.h> |
#include <console/console.h> |
#include <sysinfo/sysinfo.h> |
#include <ddi/ddi.h> |
|
/* |
* The EGA driver. |
52,6 → 53,8 |
* Simple and short. Function for displaying characters and "scrolling". |
*/ |
|
static parea_t ega_parea; /**< Physical memory area for EGA video RAM. */ |
|
SPINLOCK_INITIALIZE(egalock); |
static uint32_t ega_cursor; |
static uint8_t *videoram; |
79,11 → 82,19 |
chardev_initialize("ega_out", &ega_console, &ega_ops); |
stdout = &ega_console; |
|
ega_parea.pbase = VIDEORAM; |
ega_parea.vbase = (uintptr_t) videoram; |
ega_parea.frames = 1; |
ega_parea.cacheable = false; |
ddi_parea_register(&ega_parea); |
|
sysinfo_set_item_val("fb", NULL, true); |
sysinfo_set_item_val("fb.kind", NULL, 2); |
sysinfo_set_item_val("fb.width", NULL, ROW); |
sysinfo_set_item_val("fb.height", NULL, ROWS); |
sysinfo_set_item_val("fb.address.physical", NULL, VIDEORAM); |
sysinfo_set_item_val("fb.address.color", NULL, PAGE_COLOR((uintptr_t) |
videoram)); |
|
#ifndef CONFIG_FB |
putchar('\n'); |