static void slugled_shutdown(void *arg) { struct slugled_softc *sc = arg; uint32_t reg; int s; ixp425_intr_disestablish(sc->sc_usb0_ih); ixp425_intr_disestablish(sc->sc_usb1_ih); ixp425_intr_disestablish(sc->sc_tmr_ih); /* Cancel the callouts */ s = splsoftclock(); callout_stop(&sc->sc_usb0); callout_stop(&sc->sc_usb1); splx(s); /* Turn off the disk LEDs, and set Ready/Status to amber */ s = splhigh(); reg = GPIO_CONF_READ_4(ixp425_softc,IXP425_GPIO_GPOUTR); reg |= LEDBITS_USB0 | LEDBITS_USB1 | LEDBITS_STATUS | LEDBITS_READY; GPIO_CONF_WRITE_4(ixp425_softc,IXP425_GPIO_GPOUTR, reg); splx(s); }
static void nslu2_pci_intr_disestablish(void *v, void *cookie) { ixp425_intr_disestablish(cookie); }