Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/mips/cavium/uart_bus_octeonusart.c
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | uart_octeon_probe(device_t dev) | ||||
sc->sc_bas.bst = uart_bus_space_mem; | sc->sc_bas.bst = uart_bus_space_mem; | ||||
/* | /* | ||||
* XXX | * XXX | ||||
* RBR isn't really a great base address. | * RBR isn't really a great base address. | ||||
*/ | */ | ||||
if (bus_space_map(sc->sc_bas.bst, CVMX_MIO_UARTX_RBR(0), | if (bus_space_map(sc->sc_bas.bst, CVMX_MIO_UARTX_RBR(0), | ||||
uart_getrange(sc->sc_class), 0, &sc->sc_bas.bsh) != 0) | uart_getrange(sc->sc_class), 0, &sc->sc_bas.bsh) != 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
return (uart_bus_probe(dev, sc->sc_bas.regshft, 0, 0, unit)); | return (uart_bus_probe(dev, sc->sc_bas.regshft, 0, 0, 0, unit, 0)); | ||||
} | } | ||||
DRIVER_MODULE(uart, obio, uart_octeon_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, obio, uart_octeon_driver, uart_devclass, 0, 0); |