Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/uart_emul.h
| Show All 37 Lines | |||||
| typedef void (*uart_intr_func_t)(void *arg); | typedef void (*uart_intr_func_t)(void *arg); | ||||
| struct uart_softc *uart_init(uart_intr_func_t intr_assert, | struct uart_softc *uart_init(uart_intr_func_t intr_assert, | ||||
| uart_intr_func_t intr_deassert, void *arg); | uart_intr_func_t intr_deassert, void *arg); | ||||
| int uart_legacy_alloc(int unit, int *ioaddr, int *irq); | int uart_legacy_alloc(int unit, int *ioaddr, int *irq); | ||||
| uint8_t uart_read(struct uart_softc *sc, int offset); | uint8_t uart_read(struct uart_softc *sc, int offset); | ||||
| void uart_write(struct uart_softc *sc, int offset, uint8_t value); | void uart_write(struct uart_softc *sc, int offset, uint8_t value); | ||||
| int uart_set_backend(struct uart_softc *sc, const char *opt); | int uart_set_backend(struct uart_softc *sc, const char *device); | ||||
| #ifdef BHYVE_SNAPSHOT | #ifdef BHYVE_SNAPSHOT | ||||
| int uart_snapshot(struct uart_softc *sc, struct vm_snapshot_meta *meta); | int uart_snapshot(struct uart_softc *sc, struct vm_snapshot_meta *meta); | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||