[console] Allow console input and output to be disabled independently

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-11-28 05:41:45 +00:00
parent 7271b50890
commit b2251743d8
8 changed files with 64 additions and 65 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ static void vga_putc(int byte)
struct console_driver vga_console __console_driver = {
.putchar = vga_putc,
.disabled = 1,
.disabled = CONSOLE_DISABLED,
.usage = CONSOLE_DIRECT_VGA,
};
+1 -1
View File
@@ -102,7 +102,7 @@ static void vmconsole_putchar ( int character ) {
/** VMware logfile console driver */
struct console_driver vmconsole __console_driver = {
.putchar = vmconsole_putchar,
.disabled = 1,
.disabled = CONSOLE_DISABLED,
.usage = CONSOLE_VMWARE,
};
+1 -1
View File
@@ -74,7 +74,7 @@ static void debugcon_init ( void ) {
check = inb ( DEBUG_PORT );
if ( check != DEBUG_PORT_CHECK ) {
DBG ( "Debug port not present; disabling console\n" );
debugcon_console.disabled = 1;
debugcon_console.disabled = CONSOLE_DISABLED;
}
}