*
* Benjamin Herrenschmidt <benh@kernel.crashing.org>
*
- * move to LinuxBIOS by LYH yhlu@tyan.com
+ * move to coreboot by LYH yhlu@tyan.com
*/
#if 0
#define cmapsz (16*96)
#endif
-static unsigned char vga_font[cmapsz];
+extern unsigned char vga_font[cmapsz];
u32 boot_text_mapped;
boot_infos_t disp_bi;
-#define BTEXT
-#define BTDATA
+#define BTEXT
+#define BTDATA
/* This function will enable the early boot text when doing OF booting. This
* changes.
*/
-void
+void
map_boot_text(void)
{
#if 0
return;
base = ((unsigned long) bi->dispDeviceBase) & 0xFFFFF000UL;
offset = ((unsigned long) bi->dispDeviceBase) - base;
- size = bi->dispDeviceRowBytes * bi->dispDeviceRect[3] + offset
+ size = bi->dispDeviceRowBytes * bi->dispDeviceRect[3] + offset
+ bi->dispDeviceRect[0];
- bi->logicalDisplayBase = ioremap(base,0x800000 );
+ bi->logicalDisplayBase = ioremap(base,0x800000 );
if (bi->logicalDisplayBase == 0)
return;
// bi->logicalDisplayBase += offset;
0x0000ffff,0xff00ffff,0x00ffffff,0xffffffff
#else
#error FIXME: No endianness??
-#endif
+#endif
};
#if 0
static const u32 expand_bits_16[4] BTDATA = {
btext_drawchar(data);
}
-static struct console_driver btext_console __console = {
+static const struct console_driver btext_console __console = {
.init = btext_init,
.tx_byte = btext_tx_byte,
.rx_byte = 0,