diff options
| author | Michael Brown | 2015-06-29 09:43:16 +0200 |
|---|---|---|
| committer | Michael Brown | 2015-06-29 12:04:10 +0200 |
| commit | 2a696ab963fe71296d9495caed1b748f6f7d8971 (patch) | |
| tree | bb6b45746dcb160819dc075d052b24bd77f958ac /src/core/serial_console.c | |
| parent | [gdb] Use new UART abstraction in GDB serial transport (diff) | |
| download | ipxe-2a696ab963fe71296d9495caed1b748f6f7d8971.tar.gz ipxe-2a696ab963fe71296d9495caed1b748f6f7d8971.tar.xz ipxe-2a696ab963fe71296d9495caed1b748f6f7d8971.zip | |
[serial] Use new UART abstraction in serial console driver
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/serial_console.c')
| -rw-r--r-- | src/core/serial_console.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/core/serial_console.c b/src/core/serial_console.c deleted file mode 100644 index de9b84ca7..000000000 --- a/src/core/serial_console.c +++ /dev/null @@ -1,42 +0,0 @@ -#include <ipxe/init.h> -#include <ipxe/serial.h> -#include <ipxe/console.h> -#include <config/console.h> - -/** @file - * - * Serial console - * - */ - -/* Set default console usage if applicable */ -#if ! ( defined ( CONSOLE_SERIAL ) && CONSOLE_EXPLICIT ( CONSOLE_SERIAL ) ) -#undef CONSOLE_SERIAL -#define CONSOLE_SERIAL ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG ) -#endif - -struct console_driver serial_console __console_driver; - -static void serial_console_init ( void ) { - /* - * Check if serial driver initialization is done. - * If so, it's time to enable the serial console. - */ - if ( serial_initialized ) - serial_console.disabled = 0; -} - -struct console_driver serial_console __console_driver = { - .putchar = serial_putc, - .getchar = serial_getc, - .iskey = serial_ischar, - .disabled = CONSOLE_DISABLED, - .usage = CONSOLE_SERIAL, -}; - -/** - * Serial console initialisation function - */ -struct init_fn serial_console_init_fn __init_fn ( INIT_CONSOLE ) = { - .initialise = serial_console_init, -}; |
