libpayload: Add video console framework
Add a framework for multiple video console drivers. This is to prepare for the Geode driver. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -219,9 +219,10 @@ WINDOW *initscr(void)
|
||||
// def_prog_mode();
|
||||
|
||||
if (curses_flags & F_ENABLE_CONSOLE) {
|
||||
/* Clear the screen and kill the cursor. */
|
||||
vga_clear();
|
||||
vga_cursor_enable(0);
|
||||
/* Clear the screen and kill the cursor */
|
||||
|
||||
video_console_clear();
|
||||
video_console_cursor_enable(0);
|
||||
}
|
||||
|
||||
// Speaker init?
|
||||
@ -586,7 +587,7 @@ int wnoutrefresh(WINDOW *win)
|
||||
* but this will break wide characters!
|
||||
*/
|
||||
c |= (chtype) (win->_line[y].text[x].chars[0] & 0xff);
|
||||
vga_putc(y, x, c);
|
||||
video_console_putc(y, x, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user