Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/uart/uart_bus.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
* UART class & instance (=softc) | * UART class & instance (=softc) | ||||
*/ | */ | ||||
struct uart_class { | struct uart_class { | ||||
KOBJ_CLASS_FIELDS; | KOBJ_CLASS_FIELDS; | ||||
struct uart_ops *uc_ops; /* Low-level console operations. */ | struct uart_ops *uc_ops; /* Low-level console operations. */ | ||||
u_int uc_range; /* Bus space address range. */ | u_int uc_range; /* Bus space address range. */ | ||||
u_int uc_rclk; /* Default rclk for this device. */ | u_int uc_rclk; /* Default rclk for this device. */ | ||||
u_int uc_rshift; /* Default regshift for this device. */ | u_int uc_rshift; /* Default regshift for this device. */ | ||||
u_int uc_riowidth; /* Default reg io width for this device. */ | |||||
}; | }; | ||||
struct uart_softc { | struct uart_softc { | ||||
KOBJ_FIELDS; | KOBJ_FIELDS; | ||||
struct uart_class *sc_class; | struct uart_class *sc_class; | ||||
struct uart_bas sc_bas; | struct uart_bas sc_bas; | ||||
device_t sc_dev; | device_t sc_dev; | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
extern devclass_t uart_devclass; | extern devclass_t uart_devclass; | ||||
extern const char uart_driver_name[]; | extern const char uart_driver_name[]; | ||||
int uart_bus_attach(device_t dev); | int uart_bus_attach(device_t dev); | ||||
int uart_bus_detach(device_t dev); | int uart_bus_detach(device_t dev); | ||||
int uart_bus_resume(device_t dev); | int uart_bus_resume(device_t dev); | ||||
serdev_intr_t *uart_bus_ihand(device_t dev, int ipend); | serdev_intr_t *uart_bus_ihand(device_t dev, int ipend); | ||||
int uart_bus_ipend(device_t dev); | int uart_bus_ipend(device_t dev); | ||||
int uart_bus_probe(device_t dev, int regshft, int rclk, int rid, int chan); | int uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan); | ||||
int uart_bus_sysdev(device_t dev); | int uart_bus_sysdev(device_t dev); | ||||
void uart_sched_softih(struct uart_softc *, uint32_t); | void uart_sched_softih(struct uart_softc *, uint32_t); | ||||
int uart_tty_attach(struct uart_softc *); | int uart_tty_attach(struct uart_softc *); | ||||
int uart_tty_detach(struct uart_softc *); | int uart_tty_detach(struct uart_softc *); | ||||
struct mtx *uart_tty_getlock(struct uart_softc *); | struct mtx *uart_tty_getlock(struct uart_softc *); | ||||
void uart_tty_intr(void *arg); | void uart_tty_intr(void *arg); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |