diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/console/console.h | 4 | ||||
-rw-r--r-- | src/include/uart8250.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h index ffb17d4c9b..aeb5895587 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -7,6 +7,8 @@ void console_init(void); void console_tx_byte(unsigned char byte); void console_tx_flush(void); +unsigned char console_rx_byte(void); +int console_tst_byte(void); void post_code(uint8_t value); void die(char *msg); @@ -14,6 +16,8 @@ struct console_driver { void (*init)(void); void (*tx_byte)(unsigned char byte); void (*tx_flush)(void); + unsigned char (*rx_byte)(void); + int (*tst_byte)(void); }; #define __console __attribute__((unused, __section__ (".rodata.console_drivers"))) diff --git a/src/include/uart8250.h b/src/include/uart8250.h index f610026614..dc09315dea 100644 --- a/src/include/uart8250.h +++ b/src/include/uart8250.h @@ -6,6 +6,8 @@ struct uart8250 { /* Do I need an lcs parameter here? */ }; +unsigned char uart8250_rx_byte(unsigned base_port); +int uart8250_can_rx_byte(unsigned base_port); void uart8250_tx_byte(unsigned base_port, unsigned char data); void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs); void init_uart8250(unsigned base_port, struct uart8250 *uart); |