move console includes to central console/console.h
Because it's included everywhere anyways. Change-Id: I99a9e6edac08df57c50ef3a706fdbd395cad0abc Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/691 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
a6087d155d
commit
8907e81626
@ -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,14 +40,6 @@ void console_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void __console_tx_byte(unsigned char byte)
|
||||
{
|
||||
struct console_driver *driver;
|
||||
for(driver = console_drivers; driver < econsole_drivers; driver++) {
|
||||
driver->tx_byte(byte);
|
||||
}
|
||||
}
|
||||
|
||||
void console_tx_flush(void)
|
||||
{
|
||||
struct console_driver *driver;
|
||||
@ -70,6 +50,14 @@ 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++) {
|
||||
driver->tx_byte(byte);
|
||||
}
|
||||
}
|
||||
|
||||
void console_tx_byte(unsigned char byte)
|
||||
{
|
||||
if (byte == '\n')
|
||||
|
Reference in New Issue
Block a user