139 DBGC ( &
uarts,
"UART could not register fixed UARTs: " 156 if ( ( *endp ==
'\0' ) && (
index-- == 0 ) )
struct arbelprm_rc_send_wqe rc
LIST_HEAD(uarts)
List of registered UARTs.
unsigned long strtoul(const char *string, char **endp, int base)
Convert string to numeric value.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static int null_uart_init(struct uart *uart __unused)
int strcasecmp(const char *first, const char *second)
Compare case-insensitive strings.
int uart_register(struct uart *uart)
Register UART.
static void null_uart_flush(struct uart *uart __unused)
struct list_head list
List of registered UARTs.
#define list_empty(list)
Test whether a list is empty.
#define list_del(list)
Delete an entry from a list.
void(* transmit)(struct uart *uart, uint8_t byte)
Transmit byte.
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
#define __unused
Declare a variable or data structure as unused.
#define list_add_tail(new, head)
Add a new entry to the tail of a list.
__weak int uart_register_fixed(void)
Register fixed UARTs (when not provided by platform)
char * strerror(int errno)
Retrieve string representation of error number.
void * zalloc(size_t size)
Allocate cleared memory.
struct uart_operations null_uart_operations
Null UART operations.
void * priv
Driver-private data.
static int null_uart_data_ready(struct uart *uart __unused)
struct uart * uart_find(const char *name)
Find named UART.
static void null_uart_transmit(struct uart *uart __unused, uint8_t byte __unused)
#define __weak
Declare a function as weak (use before the definition)
struct uart * alloc_uart(size_t priv_len)
Allocate UART.
void uart_unregister(struct uart *uart)
Unregister UART.
#define NULL
NULL pointer (VOID *)
static uint8_t null_uart_receive(struct uart *uart __unused)