Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_cpu.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | struct uart_devinfo { | ||||
int baudrate; | int baudrate; | ||||
int databits; | int databits; | ||||
int stopbits; | int stopbits; | ||||
int parity; | int parity; | ||||
int type; | int type; | ||||
#define UART_DEV_CONSOLE 0 | #define UART_DEV_CONSOLE 0 | ||||
#define UART_DEV_DBGPORT 1 | #define UART_DEV_DBGPORT 1 | ||||
#define UART_DEV_KEYBOARD 2 | #define UART_DEV_KEYBOARD 2 | ||||
int unit; | |||||
int (*attach)(struct uart_softc*); | int (*attach)(struct uart_softc*); | ||||
int (*detach)(struct uart_softc*); | int (*detach)(struct uart_softc*); | ||||
void *cookie; /* Type dependent use. */ | void *cookie; /* Type dependent use. */ | ||||
struct mtx *hwmtx; | struct mtx *hwmtx; | ||||
struct uart_softc *sc; /* valid only from start of attach */ | struct uart_softc *sc; /* valid only from start of attach */ | ||||
}; | }; | ||||
int uart_cpu_eqres(struct uart_bas *, struct uart_bas *); | int uart_cpu_eqres(struct uart_bas *, struct uart_bas *); | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |