Esempio n. 1
0
static int
ata_cbuschannel_resume(device_t dev)
{
    struct ata_channel *ch = device_get_softc(dev);

    if (!ch->attached)
	return (0);

    return ata_resume(dev);
}
Esempio n. 2
0
static int
ata_macio_resume(device_t dev)
{
    struct ata_dbdma_channel *ch = device_get_softc(dev);
    int error;

    if (!ch->sc_ch.attached)
        return (0);

    dbdma_restore_state(ch->dbdma);
    error = ata_resume(dev);

    return (error);
}
Esempio n. 3
0
static int
ata_pcichannel_resume(device_t dev)
{
    struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
    struct ata_channel *ch = device_get_softc(dev);
    int error;

    if (!ch->attached)
	return (0);

    if (ctlr->ch_resume != NULL && (error = ctlr->ch_resume(dev)))
	return (error);

    return ata_resume(dev);
}