Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/arm/xscale/i8134x/uart_bus_i81342.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | sc->sc_rres = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, | ||||
&sc->sc_rrid, uart_getrange(sc->sc_class), RF_ACTIVE); | &sc->sc_rrid, uart_getrange(sc->sc_class), RF_ACTIVE); | ||||
sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); | sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); | ||||
sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); | sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); | ||||
bus_space_write_4(sc->sc_bas.bst, sc->sc_bas.bsh, REG_IER << 2, | bus_space_write_4(sc->sc_bas.bst, sc->sc_bas.bsh, REG_IER << 2, | ||||
0x40 | 0x10); | 0x40 | 0x10); | ||||
bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres); | bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres); | ||||
err = uart_bus_probe(dev, 2, 33334000, 0, device_get_unit(dev)); | err = uart_bus_probe(dev, 2, 0, 33334000, 0, device_get_unit(dev), 0); | ||||
sc->sc_rxfifosz = sc->sc_txfifosz = 1; | sc->sc_rxfifosz = sc->sc_txfifosz = 1; | ||||
return (err); | return (err); | ||||
} | } | ||||
DRIVER_MODULE(uart, obio, uart_i81342_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, obio, uart_i81342_driver, uart_devclass, 0, 0); |