diff options
author | grehan <grehan@FreeBSD.org> | 2003-02-24 03:12:30 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2003-02-24 03:12:30 +0000 |
commit | 47fb20d3f1af57029620287ba13545c28f628e8a (patch) | |
tree | fab0f26ba5dcb539865afce0948287c2e033eb96 /sys/powerpc/psim | |
parent | 9590f548c31736b4af7fcb7aec15be91a9626295 (diff) | |
download | FreeBSD-src-47fb20d3f1af57029620287ba13545c28f628e8a.zip FreeBSD-src-47fb20d3f1af57029620287ba13545c28f628e8a.tar.gz |
Catch up with ATAng changes
Diffstat (limited to 'sys/powerpc/psim')
-rw-r--r-- | sys/powerpc/psim/ata_iobus.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c index 737aae8..1fdbc44 100644 --- a/sys/powerpc/psim/ata_iobus.c +++ b/sys/powerpc/psim/ata_iobus.c @@ -41,6 +41,7 @@ #include <machine/resource.h> #include <machine/bus.h> #include <sys/rman.h> +#include <sys/ata.h> #include <dev/ata/ata-all.h> #include <dev/ofw/openfirm.h> @@ -228,16 +229,15 @@ static driver_t ata_iobus_sub_driver = { DRIVER_MODULE(ata, ataiobus, ata_iobus_sub_driver, ata_devclass, 0, 0); -static int -ata_iobus_intrnoop(struct ata_channel *ch) +static void +ata_iobus_locknoop(struct ata_channel *ch, int type) { - - return (1); } - + static void -ata_iobus_locknoop(struct ata_channel *ch, int type) +ata_iobus_setmode(struct ata_device *atadev, int mode) { + atadev->mode = ATA_PIO; } static int @@ -248,8 +248,9 @@ 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->intr_func = ata_iobus_intrnoop; - ch->lock_func = ata_iobus_locknoop; + ch->locking = ata_iobus_locknoop; + ch->device[MASTER].setmode = ata_iobus_setmode; + ch->device[SLAVE].setmode = ata_iobus_setmode; return ata_probe(dev); } |