X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Finclude%2Fconsole%2Fconsole.h;h=56e202d99be62d7df1fdfafd977619a3167402d4;hb=32da8bed197c5c7efc226dd9cfc3b75bad496f05;hp=8283f66e90bb9d4ee3dbb820926cea63fbb5acd2;hpb=bbd2f21184fdede46f7b6136bf0be47582236376;p=coreboot.git diff --git a/src/include/console/console.h b/src/include/console/console.h index 8283f66e9..56e202d99 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -24,15 +24,24 @@ #include #include +#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM +#include +#endif +#if CONFIG_USBDEBUG +#include +#endif +#if CONFIG_CONSOLE_NE2K +#include +#endif +#if CONFIG_CONSOLE_CBMEM +#include +#endif + #ifndef __PRE_RAM__ void console_tx_byte(unsigned char byte); void console_tx_flush(void); unsigned char console_rx_byte(void); int console_tst_byte(void); -#if CONFIG_USBDEBUG -#include -#endif - struct console_driver { void (*init)(void); void (*tx_byte)(unsigned char byte); @@ -55,9 +64,6 @@ extern int console_loglevel; * we could use the same code on all architectures. */ #define console_loglevel CONFIG_DEFAULT_CONSOLE_LOGLEVEL -#if CONFIG_CONSOLE_SERIAL8250 -#include -#endif #endif #ifndef __ROMCC__