summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-04-05 13:13:56 +0000
committersos <sos@FreeBSD.org>2002-04-05 13:13:56 +0000
commit0d2605253ba8117d7ff63e3ce2e1889003253d59 (patch)
treeaf8c692a5d9e26fb4d42b3a66b85e3fa5b44ca14 /sys/dev/ata/ata-all.c
parent51ccaee275d7c6f909f812b4ca45c2732a221f6d (diff)
downloadFreeBSD-src-0d2605253ba8117d7ff63e3ce2e1889003253d59.zip
FreeBSD-src-0d2605253ba8117d7ff63e3ce2e1889003253d59.tar.gz
Make the ATA driver compile & work on the sparc64 platform.
Initial work & code by tmm. Lots of changes and rearrangements by yours truely to make busdma be a little less a PITA (but I still dont like it).
Diffstat (limited to 'sys/dev/ata/ata-all.c')
-rw-r--r--sys/dev/ata/ata-all.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 9d4d1e9..067cf1c 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -249,6 +249,7 @@ ata_detach(device_t dev)
ch->device[MASTER].mode = ATA_PIO;
ch->device[SLAVE].mode = ATA_PIO;
ch->devices = 0;
+ ata_dmafreetags(ch);
bus_teardown_intr(dev, ch->r_irq, ch->ih);
bus_release_resource(dev, SYS_RES_IRQ, ATA_IRQ_RID, ch->r_irq);
@@ -1251,7 +1252,7 @@ ata_change_mode(struct ata_device *atadev, int mode)
}
ATA_SLEEPLOCK_CH(atadev->channel, ATA_ACTIVE);
- ata_dmainit(atadev->channel, atadev->unit, pmode, wmode, umode);
+ ata_dmainit(atadev, pmode, wmode, umode);
ATA_UNLOCK_CH(atadev->channel);
ata_start(atadev->channel); /* XXX SOS */
}
OpenPOWER on IntegriCloud