Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/oce/oce_hw.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
if (IS_BE(sc) || IS_SH(sc)) | if (IS_BE(sc) || IS_SH(sc)) | ||||
sc->devcfg_res = bus_alloc_resource_any(sc->dev, | sc->devcfg_res = bus_alloc_resource_any(sc->dev, | ||||
SYS_RES_MEMORY, &rr, | SYS_RES_MEMORY, &rr, | ||||
RF_ACTIVE|RF_SHAREABLE); | RF_ACTIVE|RF_SHAREABLE); | ||||
else | else | ||||
sc->devcfg_res = bus_alloc_resource(sc->dev, | sc->devcfg_res = bus_alloc_resource(sc->dev, | ||||
SYS_RES_MEMORY, &rr, | SYS_RES_MEMORY, &rr, | ||||
0ul, ~0ul, 32768, | 0, ~0, 32768, | ||||
RF_ACTIVE|RF_SHAREABLE); | RF_ACTIVE|RF_SHAREABLE); | ||||
if (!sc->devcfg_res) | if (!sc->devcfg_res) | ||||
goto error; | goto error; | ||||
sc->devcfg_btag = rman_get_bustag(sc->devcfg_res); | sc->devcfg_btag = rman_get_bustag(sc->devcfg_res); | ||||
sc->devcfg_bhandle = rman_get_bushandle(sc->devcfg_res); | sc->devcfg_bhandle = rman_get_bushandle(sc->devcfg_res); | ||||
sc->devcfg_vhandle = rman_get_virtual(sc->devcfg_res); | sc->devcfg_vhandle = rman_get_virtual(sc->devcfg_res); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |