Initialize iobase, bsh and bst.
This commit is contained in:
parent
82df4f3134
commit
b8759afc2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120380
@ -325,6 +325,10 @@ uart_bus_attach(device_t dev)
|
||||
if (sc->sc_rres == NULL)
|
||||
return (ENXIO);
|
||||
|
||||
sc->sc_bas.iobase = rman_get_start(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_irid = 0;
|
||||
sc->sc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->sc_irid,
|
||||
0, ~0, 1, RF_ACTIVE);
|
||||
|
Loading…
Reference in New Issue
Block a user