Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/cores/chipc/chipc.c
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | chipc_detach(device_t dev) | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
if ((error = bus_generic_detach(dev))) | if ((error = bus_generic_detach(dev))) | ||||
return (error); | return (error); | ||||
chipc_release_region(sc, sc->core_region, RF_ALLOCATED|RF_ACTIVE); | chipc_release_region(sc, sc->core_region, RF_ALLOCATED|RF_ACTIVE); | ||||
chipc_free_rman(sc); | chipc_free_rman(sc); | ||||
bhnd_sprom_fini(&sc->sprom); | |||||
CHIPC_LOCK_DESTROY(sc); | CHIPC_LOCK_DESTROY(sc); | ||||
return (0); | return (0); | ||||
} | } | ||||
/* Read and parse chipc capabilities */ | /* Read and parse chipc capabilities */ | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 1,010 Lines • Show Last 20 Lines |