From 47fb20d3f1af57029620287ba13545c28f628e8a Mon Sep 17 00:00:00 2001 From: grehan Date: Mon, 24 Feb 2003 03:12:30 +0000 Subject: Catch up with ATAng changes --- sys/powerpc/powermac/ata_macio.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'sys/powerpc/powermac') diff --git a/sys/powerpc/powermac/ata_macio.c b/sys/powerpc/powermac/ata_macio.c index cc2e7fb..54eb8e0 100644 --- a/sys/powerpc/powermac/ata_macio.c +++ b/sys/powerpc/powermac/ata_macio.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -285,19 +286,18 @@ static driver_t ata_macio_sub_driver = { DRIVER_MODULE(ata, atamacio, ata_macio_sub_driver, ata_devclass, 0, 0); -static int -ata_macio_intrnoop(struct ata_channel *ch) -{ - - return (1); -} - static void ata_macio_locknoop(struct ata_channel *ch, int type) { /* XXX SMP ? */ } +static void +ata_macio_setmode(struct ata_device *atadev, int mode) +{ + atadev->mode = ATA_PIO; +} + static int ata_macio_sub_probe(device_t dev) { @@ -306,9 +306,13 @@ ata_macio_sub_probe(device_t dev) ch = device_get_softc(dev); ch->unit = 0; - ch->flags = ATA_USE_16BIT; - ch->intr_func = ata_macio_intrnoop; - ch->lock_func = ata_macio_locknoop; + ch->flags |= ATA_USE_16BIT; + ch->locking = ata_macio_locknoop; + ch->device[MASTER].setmode = ata_macio_setmode; + ch->device[SLAVE].setmode = ata_macio_setmode; return (ata_probe(dev)); } + + + -- cgit v1.1