diff options
Diffstat (limited to 'src/console/console.c')
-rw-r--r-- | src/console/console.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/console/console.c b/src/console/console.c index 325170d060..d93366852a 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -22,18 +22,6 @@ #include <arch/hlt.h> #include <arch/io.h> -#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM -#include <uart8250.h> -#endif - -#if CONFIG_CONSOLE_NE2K -#include <console/ne2k.h> -#endif - -#if CONFIG_USBDEBUG -#include <usbdebug.h> -#endif - #ifndef __PRE_RAM__ #include <string.h> #include <pc80/mc146818rtc.h> @@ -52,21 +40,21 @@ void console_init(void) } } -static void __console_tx_byte(unsigned char byte) +void console_tx_flush(void) { struct console_driver *driver; for(driver = console_drivers; driver < econsole_drivers; driver++) { - driver->tx_byte(byte); + if (!driver->tx_flush) + continue; + driver->tx_flush(); } } -void console_tx_flush(void) +static void __console_tx_byte(unsigned char byte) { struct console_driver *driver; for(driver = console_drivers; driver < econsole_drivers; driver++) { - if (!driver->tx_flush) - continue; - driver->tx_flush(); + driver->tx_byte(byte); } } |