summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-10-24 13:50:22 +0000
committersos <sos@FreeBSD.org>2000-10-24 13:50:22 +0000
commit4e93b6013f02da11ccd19fea1e1dd6662006d728 (patch)
tree4398562838e968b57d23568e702f915f7e6b48cd /sys/dev
parent14543975bd6e189d33dfe9eca12bc1cbae44c59b (diff)
downloadFreeBSD-src-4e93b6013f02da11ccd19fea1e1dd6662006d728.zip
FreeBSD-src-4e93b6013f02da11ccd19fea1e1dd6662006d728.tar.gz
Fix the problem with DMA mode not working on Aladdin chips.
Amasing in how many ways Acer has screwed up that chip.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/ata-all.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index a539725..947d820 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -1107,8 +1107,7 @@ out:
#endif
default:
if (scp->flags & ATA_DMA_ACTIVE) {
- if (((dmastat = ata_dmastatus(scp)) &
- (ATA_BMSTAT_ACTIVE|ATA_BMSTAT_INTERRUPT))!=ATA_BMSTAT_INTERRUPT)
+ if (!((dmastat = ata_dmastatus(scp)) & ATA_BMSTAT_INTERRUPT))
return;
outb(scp->bmaddr + ATA_BMSTAT_PORT, dmastat | ATA_BMSTAT_INTERRUPT);
}
OpenPOWER on IntegriCloud