|
iPXE
|
Generic UARTs. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| LIST_HEAD (uarts) | |
| List of registered UARTs. More... | |
| static void | null_uart_transmit (struct uart *uart __unused, uint8_t byte __unused) |
| static int | null_uart_data_ready (struct uart *uart __unused) |
| static uint8_t | null_uart_receive (struct uart *uart __unused) |
| static int | null_uart_init (struct uart *uart __unused) |
| static void | null_uart_flush (struct uart *uart __unused) |
| struct uart * | alloc_uart (size_t priv_len) |
| Allocate UART. More... | |
| __weak int | uart_register_fixed (void) |
| Register fixed UARTs (when not provided by platform) More... | |
| int | uart_register (struct uart *uart) |
| Register UART. More... | |
| void | uart_unregister (struct uart *uart) |
| Unregister UART. More... | |
| struct uart * | uart_find (const char *name) |
| Find named UART. More... | |
Variables | |
| struct uart_operations | null_uart_operations |
| Null UART operations. More... | |
Generic UARTs.
Definition in file uart.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| LIST_HEAD | ( | uarts | ) |
List of registered UARTs.
Allocate UART.
| priv_len | Length of private data |
| uart | UART, or NULL on error |
Definition at line 74 of file uart.c.
References NULL, uart::priv, and zalloc().
Referenced by dwuart_probe().
| __weak int uart_register_fixed | ( | void | ) |
Register fixed UARTs (when not provided by platform)
| rc | Return status code |
Definition at line 91 of file uart.c.
Referenced by uart_find().
| int uart_register | ( | struct uart * | uart | ) |
Register UART.
| uart | UART |
| rc | Return status code |
Definition at line 102 of file uart.c.
References DBGC, uart::list, list_add_tail, uart::name, and uarts.
Referenced by dwuart_probe(), and uart_register_fixed().
| void uart_unregister | ( | struct uart * | uart | ) |
Unregister UART.
| uart | UART |
Definition at line 117 of file uart.c.
References uart::list, and list_del.
Referenced by dwuart_probe(), and dwuart_remove().
| struct uart* uart_find | ( | const char * | name | ) |
Find named UART.
| name | UART name |
| uart | UART, or NULL if not found |
Definition at line 130 of file uart.c.
References DBGC, index, uart::list, list_empty, list_for_each_entry, uart::name, name, NULL, rc, strcasecmp(), strerror(), strtoul(), uart_register_fixed(), and uarts.
Referenced by gdbserial_configure().
| struct uart_operations null_uart_operations |
Null UART operations.
1.8.15