Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ata/ata-card.c
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | ch->r_io[ATA_CONTROL].offset = 0; | ||||
funce = 0; /* Default to sane setting of FUNCE */ | funce = 0; /* Default to sane setting of FUNCE */ | ||||
pccard_get_funce_disk(dev, &funce); | pccard_get_funce_disk(dev, &funce); | ||||
if (!(funce & PFD_I_D)) | if (!(funce & PFD_I_D)) | ||||
ch-> flags |= ATA_NO_SLAVE; | ch-> flags |= ATA_NO_SLAVE; | ||||
ata_generic_hw(dev); | ata_generic_hw(dev); | ||||
err = ata_probe(dev); | err = ata_probe(dev); | ||||
if (err > 0) | if (err > 0) | ||||
return (err); | return (err); | ||||
gone_in_dev(dev, 13, "pccard removed"); | |||||
return (ata_attach(dev)); | return (ata_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
ata_pccard_detach(device_t dev) | ata_pccard_detach(device_t dev) | ||||
{ | { | ||||
struct ata_channel *ch = device_get_softc(dev); | struct ata_channel *ch = device_get_softc(dev); | ||||
int i; | int i; | ||||
Show All 34 Lines |