diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/console/console.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h index b5de7d7f44..b0971e5323 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -26,6 +26,20 @@ #include <console/loglevel.h> #ifndef __ROMCC__ +struct console_driver { + void (*init)(int); + void (*tx_byte)(int, unsigned char byte); + void (*tx_flush)(int); + unsigned char (*rx_byte)(int); + int (*tst_byte)(void); +}; + +#define __console __attribute__((used, __section__ (".rodata.console_drivers"))) + +/* Defined by the linker... */ +extern struct console_driver console_drivers[]; +extern struct console_driver econsole_drivers[]; + void post_code(u8 value); #if CONFIG_CMOS_POST_EXTRA void post_log_extra(u32 value); |