From 8907e816265d9821e39bb21333f6212b97e80504 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 10 May 2011 10:46:41 -0700 Subject: move console includes to central console/console.h Because it's included everywhere anyways. Change-Id: I99a9e6edac08df57c50ef3a706fdbd395cad0abc Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/691 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/console/console.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'src/console') 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 #include -#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM -#include -#endif - -#if CONFIG_CONSOLE_NE2K -#include -#endif - -#if CONFIG_USBDEBUG -#include -#endif - #ifndef __PRE_RAM__ #include #include @@ -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); } } -- cgit v1.2.3