diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2005-03-31 01:57:51 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2005-03-31 01:57:51 +0000 |
| commit | 05a016a3e1b9afe92ccff9bb244890b77fd17c03 (patch) | |
| tree | 9a3b681907ad25659724e450e2cb61077e11bac9 /sys/powerpc/psim | |
| parent | 58aa36f31e4b009ad7d12d8367fab83cbb7651b9 (diff) | |
Notes
Diffstat (limited to 'sys/powerpc/psim')
| -rw-r--r-- | sys/powerpc/psim/ata_iobus.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c index c71e48eb612b..60d0410550be 100644 --- a/sys/powerpc/psim/ata_iobus.c +++ b/sys/powerpc/psim/ata_iobus.c @@ -91,7 +91,7 @@ static driver_t ata_iobus_driver = { static devclass_t ata_iobus_devclass; DRIVER_MODULE(ataiobus, iobus, ata_iobus_driver, ata_iobus_devclass, 0, 0); - +MODULE_DEPEND(ata, ata, 1, 1, 1); static int ata_iobus_probe(device_t dev) @@ -231,19 +231,6 @@ static driver_t ata_iobus_sub_driver = { DRIVER_MODULE(ata, ataiobus, ata_iobus_sub_driver, ata_devclass, 0, 0); static int -ata_iobus_locknoop(struct ata_channel *ch, int type) -{ - - return (ch->unit); -} - -static void -ata_iobus_setmode(struct ata_device *atadev, int mode) -{ - atadev->mode = ATA_PIO; -} - -static int ata_iobus_sub_probe(device_t dev) { struct ata_channel *ch = device_get_softc(dev); @@ -251,9 +238,7 @@ ata_iobus_sub_probe(device_t dev) /* Only a single unit per controller thus far */ ch->unit = 0; ch->flags = (ATA_USE_16BIT|ATA_NO_SLAVE); - ch->locking = ata_iobus_locknoop; - ch->device[MASTER].setmode = ata_iobus_setmode; - ch->device[SLAVE].setmode = ata_iobus_setmode; + ata_generic_hw(ch); return ata_probe(dev); } |
