Add support for the console over Ethernet (through PCI NE2000).
[coreboot.git] / src / console / console.c
index ee7fffe6df90df9c9fc546c924e2f78cd9c6e572..833d287c6ccf4ac1ffe889957bf6f41df3639b30 100644 (file)
@@ -7,11 +7,14 @@
 #include <arch/hlt.h>
 #include <arch/io.h>
 
+#if CONFIG_CONSOLE_NE2K
+#include <console/ne2k.h>
+#endif
+
 #ifndef __PRE_RAM__
 #include <string.h>
 #include <pc80/mc146818rtc.h>
 
-
 /* initialize the console */
 void console_init(void)
 {
@@ -99,6 +102,10 @@ void __attribute__((noreturn)) die(const char *msg)
 
 void console_init(void)
 {
+
+#if CONFIG_CONSOLE_NE2K
+       ne2k_init(CONFIG_CONSOLE_NE2K_IO_PORT);
+#endif
        static const char console_test[] =
                "\n\ncoreboot-"
                COREBOOT_VERSION