summaryrefslogtreecommitdiff
path: root/core/include/drivers/s5p6818_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/include/drivers/s5p6818_uart.h')
-rw-r--r--core/include/drivers/s5p6818_uart.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/include/drivers/s5p6818_uart.h b/core/include/drivers/s5p6818_uart.h
index 6ec928b..e4a4442 100644
--- a/core/include/drivers/s5p6818_uart.h
+++ b/core/include/drivers/s5p6818_uart.h
@@ -30,16 +30,15 @@
#define __S5P6818_UART_H__
#include <types_ext.h>
+#include <drivers/serial.h>
-void s5p6818_uart_init(vaddr_t base, uint32_t uart_clk, uint32_t baud_rate);
+struct s5p6818_uart_data {
+ struct io_pa_va base;
+ struct serial_chip chip;
+};
-void s5p6818_uart_putc(int ch, vaddr_t base);
-
-void s5p6818_uart_flush(vaddr_t base);
-
-bool s5p6818_uart_have_rx_data(vaddr_t base);
-
-int s5p6818_uart_getchar(vaddr_t base);
+void s5p6818_uart_init(struct s5p6818_uart_data *pd, paddr_t base,
+ uint32_t uart_clk, uint32_t baud_rate);
#endif /* __S5P6818_UART_H__ */