summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-dma.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2001-01-07 17:00:09 +0000
committersos <sos@FreeBSD.org>2001-01-07 17:00:09 +0000
commit6efbd08cc63fcb333342cd2717b75888a4bc636b (patch)
tree06c33e4e162f98327a2eec03336d99fc00018db5 /sys/dev/ata/ata-dma.c
parentd30bf90c254868b4810b5f2c10103bda9e421f3d (diff)
downloadFreeBSD-src-6efbd08cc63fcb333342cd2717b75888a4bc636b.zip
FreeBSD-src-6efbd08cc63fcb333342cd2717b75888a4bc636b.tar.gz
Try better this time at a patch that properly backspeeds on the Acer chips.
Diffstat (limited to 'sys/dev/ata/ata-dma.c')
-rw-r--r--sys/dev/ata/ata-dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c
index 01860a8..cde0c6e 100644
--- a/sys/dev/ata/ata-dma.c
+++ b/sys/dev/ata/ata-dma.c
@@ -313,8 +313,8 @@ ata_dmainit(struct ata_softc *scp, int device,
}
/* make sure eventual UDMA mode from the BIOS is disabled */
- pci_write_config(parent, 0x54,
- pci_read_config(parent, 0x54, 4) & ~0x88880000, 4);
+ pci_write_config(parent, 0x56, pci_read_config(parent, 0x56, 2) &
+ ~(0x0008 << (devno << 2)), 2);
if (wdmamode >= 2 && apiomode >= 4) {
error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0,
OpenPOWER on IntegriCloud