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