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