UART driver for the QEMU simple UART.
More...
UART driver for the QEMU simple UART.
The port has no line settings: any baud rate is accepted. While reception is disabled, QEMU holds the incoming bytes back.
◆ pbl_uart_qemu
| Data Fields |
|
uintptr_t |
base |
Register base address. |
|
pbl_irq_t |
irqn |
Interrupt line. |
|
struct pbl_uart |
uart |
Serial port. |
◆ PBL_UART_QEMU_DEFINE
| #define PBL_UART_QEMU_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_irq, |
|
|
|
_baudrate |
|
) |
| |
Value:
.uart =
PBL_UART_INIT(sym, _name,
nullptr, &pbl_uart_qemu_ops, _baudrate), \
.base = (_base), \
.irqn = (_irq), \
}; \
QEMU serial port.
Definition qemu.h:22
void pbl_uart_qemu_irq_handler(const struct pbl_uart_qemu *uart)
Interrupt handler, connected by PBL_UART_QEMU_DEFINE().
A serial port.
Definition uart.h:135
#define PBL_UART_STATE_DEFINE(sym)
Define the class state of port sym, for the PBL_UART_*_DEFINE() macro of a driver.
Definition uart.h:151
#define PBL_UART_INIT(sym, _name, _parent, _ops, _baudrate)
Initializer for the struct pbl_uart of port sym.
Definition uart.h:164
Define a QEMU serial port.
- Parameters
-
| sym | Symbol of the port. |
| _name | Name. |
| _base | Register base address. |
| _irq | Interrupt line. |
| _baudrate | Initial baud rate, in bits per second. |
◆ pbl_uart_qemu_irq_handler()
| void pbl_uart_qemu_irq_handler |
( |
const struct pbl_uart_qemu * |
uart | ) |
|