Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/mips/alchemy/uart_bus_alchemy.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct uart_softc *sc; | struct uart_softc *sc; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); | sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); | ||||
sc->sc_class = &uart_ns8250_class; | sc->sc_class = &uart_ns8250_class; | ||||
bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); | bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); | ||||
return (uart_bus_probe(dev, 0, 0, 0, 0)); | return (uart_bus_probe(dev, 0, 0, 0, 0, 0, 0)); | ||||
} | } | ||||
DRIVER_MODULE(uart, obio, uart_alchemy_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, obio, uart_alchemy_driver, uart_devclass, 0, 0); |