1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2025 SiFive, Inc 4 */ 5 #ifndef __DRIVERS_SIFIVE_UART_H 6 #define __DRIVERS_SIFIVE_UART_H 7 8 #include <drivers/serial.h> 9 #include <mm/core_memprot.h> 10 #include <types_ext.h> 11 12 #define SIFIVE_UART_REG_SIZE 0x1000 13 14 struct sifive_uart_data { 15 struct io_pa_va base; 16 struct serial_chip chip; 17 }; 18 19 void sifive_uart_init(struct sifive_uart_data *pd, paddr_t base, 20 uint32_t uart_clk, uint32_t baud_rate); 21 22 #endif /* __DRIVERS_SIFIVE_UART_H */ 23