summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-08-27 12:54:58 +0000
committersos <sos@FreeBSD.org>2004-08-27 12:54:58 +0000
commitf73c7c1c5874737fd1d560bd76dd37accc181d8c (patch)
treebb80d263c2a6a15eb252b94e44c2f16f335910ed /sys/dev/ata
parent42e5c7d37651b1a28fd126b1cfe4384e5a4716e7 (diff)
downloadFreeBSD-src-f73c7c1c5874737fd1d560bd76dd37accc181d8c.zip
FreeBSD-src-f73c7c1c5874737fd1d560bd76dd37accc181d8c.tar.gz
Set and reset the right bit for UDMA enable/disable on the ICH* chips.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-chipset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c
index 395e6f6..a608353 100644
--- a/sys/dev/ata/ata-chipset.c
+++ b/sys/dev/ata/ata-chipset.c
@@ -979,9 +979,9 @@ ata_intel_new_setmode(struct ata_device *atadev, int mode)
pci_write_config(parent, 0x54, reg54 & ~(0x1 << devno), 2);
if (mode >= ATA_UDMA5)
- pci_write_config(parent, 0x54, reg54 | (0x10000 << devno), 2);
+ pci_write_config(parent, 0x54, reg54 | (0x1000 << devno), 2);
else
- pci_write_config(parent, 0x54, reg54 & ~(0x10000 << devno), 2);
+ pci_write_config(parent, 0x54, reg54 & ~(0x1000 << devno), 2);
reg40 &= ~0x00ff00ff;
reg40 |= 0x40774077;
OpenPOWER on IntegriCloud