diff options
author | Michael Brown | 2013-11-28 06:41:45 +0100 |
---|---|---|
committer | Michael Brown | 2013-11-28 06:54:53 +0100 |
commit | b2251743d80f94445f40f64b75b63d33fe1d8725 (patch) | |
tree | 9c1424242dc2a1a6508bf3e7a723cadf4632f1de /src/arch | |
parent | [mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen (diff) | |
download | ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.tar.gz ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.tar.xz ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.zip |
[console] Allow console input and output to be disabled independently
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/core/video_subr.c | 2 | ||||
-rw-r--r-- | src/arch/i386/interface/vmware/vmconsole.c | 2 | ||||
-rw-r--r-- | src/arch/x86/core/debugcon.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/i386/core/video_subr.c b/src/arch/i386/core/video_subr.c index 306c6d56..3f701bd9 100644 --- a/src/arch/i386/core/video_subr.c +++ b/src/arch/i386/core/video_subr.c @@ -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, }; diff --git a/src/arch/i386/interface/vmware/vmconsole.c b/src/arch/i386/interface/vmware/vmconsole.c index 48510520..c6b9fff1 100644 --- a/src/arch/i386/interface/vmware/vmconsole.c +++ b/src/arch/i386/interface/vmware/vmconsole.c @@ -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, }; diff --git a/src/arch/x86/core/debugcon.c b/src/arch/x86/core/debugcon.c index b89480aa..263cb4af 100644 --- a/src/arch/x86/core/debugcon.c +++ b/src/arch/x86/core/debugcon.c @@ -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; } } |