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