coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
uart.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
4 #define __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
5 
6 #include <types.h>
7 
8 int uart_is_enabled(const size_t bus);
9 int uart_setup(const size_t bus, int baudrate);
10 
11 #endif /* __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H */
int uart_setup(const size_t bus, int baudrate)
Setup UART with desired BAUD rate in 8N1, no parity mode.
Definition: uart.c:141
int uart_is_enabled(const size_t bus)
Returns the UART state.
Definition: uart.c:120
Definition: device.h:76