diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2010-07-16 20:02:09 +0000 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2010-07-16 20:02:09 +0000 |
commit | 4aa93ccd3302d7db0eef00f5963bc991f3f233ff (patch) | |
tree | 20c2eafd1c6178df70682a6565e357314236d082 /src/arch/i386/lib | |
parent | 7fc9e291d7581845461efbdd74b56a8e0360f1e0 (diff) |
Add support for the console over Ethernet (through PCI NE2000).
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Cristian Magherusan-Stanciu <cristi.magherusan@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5666 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/lib')
-rw-r--r-- | src/arch/i386/lib/printk_init.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/arch/i386/lib/printk_init.c b/src/arch/i386/lib/printk_init.c index f29ba667f1..2f7f751832 100644 --- a/src/arch/i386/lib/printk_init.c +++ b/src/arch/i386/lib/printk_init.c @@ -21,8 +21,17 @@ #include <console/vtxprintf.h> #include <uart8250.h> +#if CONFIG_CONSOLE_NE2K +#include <console/ne2k.h> +#endif + static void console_tx_byte(unsigned char byte) { +#if CONFIG_CONSOLE_NE2K +#ifdef __PRE_RAM__ + ne2k_append_data(&byte, 1, CONFIG_CONSOLE_NE2K_IO_PORT); +#endif +#endif if (byte == '\n') uart8250_tx_byte(CONFIG_TTYS0_BASE, '\r'); @@ -41,6 +50,8 @@ int do_printk(int msg_level, const char *fmt, ...) va_start(args, fmt); i = vtxprintf(console_tx_byte, fmt, args); va_end(args); - +#if CONFIG_CONSOLE_NE2K + ne2k_transmit(CONFIG_CONSOLE_NE2K_IO_PORT); +#endif return i; } |