93 uart_data_ready (
struct uart *
uart ) {
105 uart_receive (
struct uart *
uart ) {
166 uart_nullify (
struct uart *
uart ) {
static __attribute__((always_inline)) void uart_transmit(struct uart *uart
Transmit byte.
int(* data_ready)(struct uart *uart)
Check if data is ready.
int(* init)(struct uart *uart)
Initialise UART.
A doubly-linked list entry (or list head)
struct list_head list
List of registered UARTs.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
unsigned int baud
Baud rate (if specified)
void(* transmit)(struct uart *uart, uint8_t byte)
Transmit byte.
struct uart * uart_find(const char *name)
Find named UART.
int uart_register_fixed(void)
Register fixed UARTs (when not provided by platform)
void(* flush)(struct uart *uart)
Flush transmitted data.
#define ref_get(refcnt)
Get additional reference to object.
void * priv
Driver-private data.
struct uart * alloc_uart(size_t priv_len)
Allocate UART.
void uart_unregister(struct uart *uart)
Unregister UART.
int uart_register(struct uart *uart)
Register UART.
struct uart_operations * op
UART operations.
struct refcnt refcnt
Reference count.
uint8_t(* receive)(struct uart *uart)
Receive byte.
struct uart_operations null_uart_operations
Null UART operations.
#define ref_put(refcnt)
Drop reference to object.