diff options
author | grehan <grehan@FreeBSD.org> | 2005-03-31 01:57:51 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2005-03-31 01:57:51 +0000 |
commit | c68e3ffea65a5f0f259d8c7600671518cf66ad61 (patch) | |
tree | 9a3b681907ad25659724e450e2cb61077e11bac9 /sys/powerpc/psim | |
parent | 1de10da09d0a6219c108d74a10aa9cf1ef6a7eeb (diff) | |
download | FreeBSD-src-c68e3ffea65a5f0f259d8c7600671518cf66ad61.zip FreeBSD-src-c68e3ffea65a5f0f259d8c7600671518cf66ad61.tar.gz |
Catch up with ATA-mkIII
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 c71e48e..60d0410 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); } |