diff options
Diffstat (limited to 'core/include/drivers/pl011.h')
-rw-r--r-- | core/include/drivers/pl011.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/include/drivers/pl011.h b/core/include/drivers/pl011.h index b83f2b2..872b7d1 100644 --- a/core/include/drivers/pl011.h +++ b/core/include/drivers/pl011.h @@ -28,18 +28,16 @@ #define PL011_H #include <types_ext.h> +#include <drivers/serial.h> #define PL011_REG_SIZE 0x1000 -void pl011_init(vaddr_t base, uint32_t uart_clk, uint32_t baud_rate); +struct pl011_data { + struct io_pa_va base; + struct serial_chip chip; +}; -void pl011_putc(int ch, vaddr_t base); - -void pl011_flush(vaddr_t base); - -bool pl011_have_rx_data(vaddr_t base); - -int pl011_getchar(vaddr_t base); +void pl011_init(struct pl011_data *pd, paddr_t base, uint32_t uart_clk, + uint32_t baud_rate); #endif /* PL011_H */ - |