int scsi_low_deactivate_pisa(struct scsi_low_softc *sc) { if (scsi_low_deactivate(sc) != 0) return EBUSY; return 0; }
static void ncv_card_unload(device_t devi) { struct ncv_softc *sc = device_get_softc(devi); scsi_low_deactivate(&sc->sc_sclow); scsi_low_detach(&sc->sc_sclow); }
static void ncv_card_unload(DEVPORT_PDEVICE devi) { struct ncv_softc *sc = DEVPORT_PDEVGET_SOFTC(devi); printf("%s: unload\n", sc->sc_sclow.sl_xname); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); }
int stg_detach(device_t dev) { struct stg_softc *sc = device_get_softc(dev); scsi_low_deactivate(&sc->sc_sclow); scsi_low_detach(&sc->sc_sclow); stg_release_resource(dev); return (0); }
static void nsp_card_unload(device_t devi) { struct nsp_softc *sc = device_get_softc(devi); intrmask_t s; s = splcam(); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); splx(s); }
static void nsp_card_unload(DEVPORT_PDEVICE devi) { struct nsp_softc *sc = DEVPORT_PDEVGET_SOFTC(devi); intrmask_t s; s = splcam(); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); splx(s); }
static void stg_card_unload(DEVPORT_PDEVICE devi) { struct stg_softc *sc = DEVPORT_PDEVGET_SOFTC(devi); kprintf("%s: unload\n",sc->sc_sclow.sl_xname); crit_enter(); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); crit_exit(); }
static void stg_isa_unload(device_t devi) { struct stg_softc *sc = device_get_softc(devi); intrmask_t s; printf("%s: unload\n",sc->sc_sclow.sl_xname); s = splcam(); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); splx(s); }
int stg_detach (device_t dev) { struct stg_softc *sc = device_get_softc(dev); intrmask_t s; s = splcam(); scsi_low_deactivate((struct scsi_low_softc *)sc); scsi_low_dettach(&sc->sc_sclow); splx(s); stg_release_resource(dev); return (0); }