uart_softc
*eax = uart_ns16550_read(sc->uart_softc, offset);
uart_ns16550_write(sc->uart_softc, offset, *eax);
*eax = uart_ns16550_read(sc->uart_softc, offset);
uart_ns16550_read(sc->uart_softc, offset + 1) << 8;
uart_ns16550_write(sc->uart_softc, offset, *eax);
uart_ns16550_write(sc->uart_softc, offset + 1,
*eax = uart_ns16550_read(sc->uart_softc, offset);
*eax |= uart_ns16550_read(sc->uart_softc,
*eax |= uart_ns16550_read(sc->uart_softc,
*eax |= uart_ns16550_read(sc->uart_softc,
uart_ns16550_write(sc->uart_softc, offset, *eax);
uart_ns16550_write(sc->uart_softc,
uart_ns16550_write(sc->uart_softc,
uart_ns16550_write(sc->uart_softc,
sc->uart_softc = uart_ns16550_init(lpc_uart_intr_assert,
uart_ns16550_tty_open(sc->uart_softc, backend) != 0) {
struct uart_ns16550_softc *uart_softc;
sockwrite(struct uart_softc *sc, unsigned char wb)
rxfifo_available(struct uart_softc *sc)
uart_rxfifo_getchar(struct uart_softc *sc)
uart_rxfifo_numchars(struct uart_softc *sc)
rxfifo_putchar(struct uart_softc *sc, uint8_t ch)
uart_rxfifo_drain(struct uart_softc *sc, bool loopback)
uart_rxfifo_sock_drain(struct uart_softc *sc, bool loopback)
uart_rxfifo_putchar(struct uart_softc *sc, uint8_t ch, bool loopback)
uart_rxfifo_reset(struct uart_softc *sc, int size)
uart_rxfifo_size(struct uart_softc *sc __unused)
uart_rxfifo_snapshot(struct uart_softc *sc, struct vm_snapshot_meta *meta)
uart_stdio_backend(struct uart_softc *sc)
uart_tty_backend(struct uart_softc *sc, const char *path)
struct uart_softc *sc = arg;
uart_sock_backend(struct uart_softc *sc, const char *inopts,
struct uart_softc *
struct uart_softc *sc = calloc(1, sizeof(struct uart_softc));
uart_tty_open(struct uart_softc *sc, const char *path,
uart_softc_lock(struct uart_softc *sc)
uart_softc_unlock(struct uart_softc *sc)
struct uart_softc;
void uart_rxfifo_drain(struct uart_softc *sc, bool loopback);
void uart_rxfifo_sock_drain(struct uart_softc *sc, bool loopback);
int uart_rxfifo_getchar(struct uart_softc *sc);
int uart_rxfifo_numchars(struct uart_softc *sc);
int uart_rxfifo_putchar(struct uart_softc *sc, uint8_t ch, bool loopback);
void uart_rxfifo_reset(struct uart_softc *sc, int size);
int uart_rxfifo_size(struct uart_softc *sc);
struct uart_softc *uart_init(void);
int uart_tty_open(struct uart_softc *sc, const char *path,
void uart_softc_lock(struct uart_softc *sc);
void uart_softc_unlock(struct uart_softc *sc);
struct uart_softc *backend;