static int tegra_ahci_detach(device_t dev) { ahci_detach(dev); return (0); }
static int ahci_gen_detach(device_t dev) { ahci_detach(dev); return (0); }
static int imx6_ahcisata_detach(device_t self, int flags) { struct imx_ahci_softc *sc; struct ahci_softc *ahci_sc; int rv; sc = device_private(self); ahci_sc = &sc->sc_ahcisc; rv = ahci_detach(ahci_sc, flags); if (rv) return rv; if (sc->sc_ih) { intr_disestablish(sc->sc_ih); sc->sc_ih = NULL; } if (ahci_sc->sc_ahcis) { bus_space_unmap(ahci_sc->sc_ahcit, ahci_sc->sc_ahcih, ahci_sc->sc_ahcis); ahci_sc->sc_ahcis = 0; ahci_sc->sc_ahcit = 0; ahci_sc->sc_ahcih = 0; } return 0; }
int imxahci_detach(struct device *self, int flags) { struct imxahci_softc *imxsc = (struct imxahci_softc *) self; struct ahci_softc *sc = &imxsc->sc; ahci_detach(sc, flags); bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_ios); return 0; }
int ahci_pci_detach(struct device *self, int flags) { struct ahci_pci_softc *psc = (struct ahci_pci_softc *)self; struct ahci_softc *sc = &psc->psc_ahci; ahci_detach(sc, flags); ahci_unmap_intr(psc); ahci_unmap_regs(psc); return (0); }
static int jmahci_detach(device_t dv, int flags) { struct ahci_softc *sc; sc = device_private(dv); int rv; if ((rv = ahci_detach(sc, flags))) return rv; return 0; }
static int ahci_pci_detach(device_t dv, int flags) { struct ahci_pci_softc *psc; struct ahci_softc *sc; int rv; psc = device_private(dv); sc = &psc->ah_sc; if ((rv = ahci_detach(sc, flags))) return rv; pmf_device_deregister(dv); if (psc->sc_ih != NULL) pci_intr_disestablish(psc->sc_pc, psc->sc_ih); bus_space_unmap(sc->sc_ahcit, sc->sc_ahcih, sc->sc_ahcis); return 0; }
static int imx6_ahci_detach(device_t dev) { return (ahci_detach(dev)); }
static int ahci_a10_detach(device_t dev) { return (ahci_detach(dev)); }