projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for the console over Ethernet (through PCI NE2000).
[coreboot.git]
/
src
/
console
/
console.c
diff --git
a/src/console/console.c
b/src/console/console.c
index ee7fffe6df90df9c9fc546c924e2f78cd9c6e572..833d287c6ccf4ac1ffe889957bf6f41df3639b30 100644
(file)
--- a/
src/console/console.c
+++ b/
src/console/console.c
@@
-7,11
+7,14
@@
#include <arch/hlt.h>
#include <arch/io.h>
#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>
#ifndef __PRE_RAM__
#include <string.h>
#include <pc80/mc146818rtc.h>
-
/* initialize the console */
void console_init(void)
{
/* initialize the console */
void console_init(void)
{
@@
-99,6
+102,10
@@
void __attribute__((noreturn)) die(const char *msg)
void console_init(void)
{
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
static const char console_test[] =
"\n\ncoreboot-"
COREBOOT_VERSION