Searched refs:uart_softc (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | uart_backend.h | 37 struct uart_softc; 40 void uart_rxfifo_drain(struct uart_softc *sc, bool loopback); 42 void uart_rxfifo_sock_drain(struct uart_softc *sc, bool loopback); 44 int uart_rxfifo_getchar(struct uart_softc *sc); 45 int uart_rxfifo_numchars(struct uart_softc *sc); 46 int uart_rxfifo_putchar(struct uart_softc *sc, uint8_t ch, bool loopback); 47 void uart_rxfifo_reset(struct uart_softc *sc, int size); 48 int uart_rxfifo_size(struct uart_softc *sc); 50 struct uart_softc *uart_init(void); 51 int uart_tty_open(struct uart_softc *sc, const char *path, [all …]
|
H A D | uart_backend.c | 85 struct uart_softc { struct 140 sockwrite(struct uart_softc *sc, unsigned char wb) in sockwrite() 147 rxfifo_available(struct uart_softc *sc) in rxfifo_available() 153 uart_rxfifo_getchar(struct uart_softc *sc) in uart_rxfifo_getchar() 184 uart_rxfifo_numchars(struct uart_softc *sc) in uart_rxfifo_numchars() 190 rxfifo_putchar(struct uart_softc *sc, uint8_t ch) in rxfifo_putchar() 225 uart_rxfifo_drain(struct uart_softc *sc, bool loopback) in uart_rxfifo_drain() 240 uart_rxfifo_sock_drain(struct uart_softc *sc, bool loopback) in uart_rxfifo_sock_drain() 278 uart_rxfifo_putchar(struct uart_softc *sc, uint8_t ch, bool loopback) in uart_rxfifo_putchar() 297 uart_rxfifo_reset(struct uart_softc *sc, int size) in uart_rxfifo_reset() [all …]
|
H A D | uart_emul.c | 82 struct uart_softc *backend;
|
/illumos-gate/usr/src/cmd/bhyve/amd64/ |
H A D | pci_lpc.c | 76 struct uart_ns16550_softc *uart_softc; member 226 *eax = uart_ns16550_read(sc->uart_softc, offset); in lpc_uart_io_handler() 228 uart_ns16550_write(sc->uart_softc, offset, *eax); in lpc_uart_io_handler() 232 *eax = uart_ns16550_read(sc->uart_softc, offset); in lpc_uart_io_handler() 234 uart_ns16550_read(sc->uart_softc, offset + 1) << 8; in lpc_uart_io_handler() 236 uart_ns16550_write(sc->uart_softc, offset, *eax); in lpc_uart_io_handler() 237 uart_ns16550_write(sc->uart_softc, offset + 1, in lpc_uart_io_handler() 244 *eax = uart_ns16550_read(sc->uart_softc, offset); in lpc_uart_io_handler() 245 *eax |= uart_ns16550_read(sc->uart_softc, in lpc_uart_io_handler() 247 *eax |= uart_ns16550_read(sc->uart_softc, in lpc_uart_io_handler() [all …]
|