summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-31 00:06:12 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-31 00:06:12 +0000
commitb8ac05d187c6cc4e777c96d39e075c5d97d93ffc (patch)
treefc1504a1fb38b7542ba27a9d619ef528b22a6b40 /src/include
parentf2b7a43f9d0806417847a16e24a55d07af972e10 (diff)
downloadcoreboot-b8ac05d187c6cc4e777c96d39e075c5d97d93ffc.tar.xz
mini part of the patch on the mailing list to fix the boards again
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5340 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include')
-rw-r--r--src/include/console/console.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index 2396336095..851505138d 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <console/loglevel.h>
+#ifndef __PRE_RAM__
void console_init(void);
void console_tx_byte(unsigned char byte);
void console_tx_flush(void);
@@ -11,6 +12,9 @@ unsigned char console_rx_byte(void);
int console_tst_byte(void);
void post_code(uint8_t value);
void __attribute__ ((noreturn)) die(const char *msg);
+#if CONFIG_CONSOLE_VGA == 1
+void vga_console_init(void);
+#endif
struct console_driver {
void (*init)(void);
@@ -27,6 +31,8 @@ extern struct console_driver console_drivers[];
extern struct console_driver econsole_drivers[];
extern int console_loglevel;
+#endif /* !__PRE_RAM__ */
+
int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
#undef WE_CLEANED_UP_ALL_SIDE_EFFECTS
@@ -110,8 +116,4 @@ int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf,
#define print_debug_hex32(HEX) printk(BIOS_DEBUG, "%08x", (HEX))
#define print_spew_hex32(HEX) printk(BIOS_SPEW, "%08x", (HEX))
-#if CONFIG_CONSOLE_VGA == 1
-void vga_console_init(void);
-#endif
-
#endif /* CONSOLE_CONSOLE_H_ */