1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2015, Linaro Limited
4  */
5 #ifndef SERIAL8250_UART_H
6 #define SERIAL8250_UART_H
7 
8 #include <types_ext.h>
9 #include <drivers/serial.h>
10 
11 #define SERIAL8250_UART_REG_SIZE 0x20
12 
13 struct serial8250_uart_data {
14 	struct io_pa_va base;
15 	struct serial_chip chip;
16 };
17 
18 void serial8250_uart_init(struct serial8250_uart_data *pd, paddr_t base,
19 			  uint32_t uart_clk, uint32_t baud_rate);
20 
21 #endif /* SERIAL8250_UART_H */
22 
23