Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/asmc/asmcmmio.c
| Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | |||||
| asmc_mmio_detach(device_t dev, struct asmc_softc *sc) | asmc_mmio_detach(device_t dev, struct asmc_softc *sc) | ||||
| { | { | ||||
| if (sc->sc_iomem != NULL) { | if (sc->sc_iomem != NULL) { | ||||
| bus_release_resource(dev, SYS_RES_MEMORY, sc->sc_rid_mem, | bus_release_resource(dev, SYS_RES_MEMORY, sc->sc_rid_mem, | ||||
| sc->sc_iomem); | sc->sc_iomem); | ||||
| sc->sc_iomem = NULL; | sc->sc_iomem = NULL; | ||||
| } | } | ||||
| sc->sc_is_mmio = 0; | sc->sc_is_mmio = false; | ||||
| sc->sc_is_t2 = 0; | sc->sc_is_t2 = 0; | ||||
| } | } | ||||
| /* | /* | ||||
| * Convert IEEE 754 float (as u32) to unsigned integer. | * Convert IEEE 754 float (as u32) to unsigned integer. | ||||
| * Kernel soft-float: extract integer part only. | * Kernel soft-float: extract integer part only. | ||||
| * Used for T2 fan RPM values (always positive, reasonable range). | * Used for T2 fan RPM values (always positive, reasonable range). | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||