Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_dev_ns8250.h
Show All 35 Lines | struct ns8250_softc { | ||||
struct uart_softc base; | struct uart_softc base; | ||||
uint8_t fcr; | uint8_t fcr; | ||||
uint8_t ier; | uint8_t ier; | ||||
uint8_t mcr; | uint8_t mcr; | ||||
uint8_t ier_mask; | uint8_t ier_mask; | ||||
uint8_t ier_rxbits; | uint8_t ier_rxbits; | ||||
uint8_t busy_detect; | uint8_t busy_detect; | ||||
/* | |||||
* Error bits from LSR register are cleared on read. They must | |||||
* be saved whenever the register is read but not immediately used. | |||||
* LSR_SAVE_FLAGS is a bit mask used to store only the needed bits from LSR. | |||||
*/ | |||||
#define LSR_SAVE_FLAGS 0x1E | |||||
uint8_t lsr_saved_flags; | |||||
}; | }; | ||||
extern struct uart_ops uart_ns8250_ops; | extern struct uart_ops uart_ns8250_ops; | ||||
int ns8250_bus_attach(struct uart_softc *); | int ns8250_bus_attach(struct uart_softc *); | ||||
int ns8250_bus_detach(struct uart_softc *); | int ns8250_bus_detach(struct uart_softc *); | ||||
int ns8250_bus_flush(struct uart_softc *, int); | int ns8250_bus_flush(struct uart_softc *, int); | ||||
int ns8250_bus_getsig(struct uart_softc *); | int ns8250_bus_getsig(struct uart_softc *); | ||||
Show All 11 Lines |