diff options
author | sos <sos@FreeBSD.org> | 2003-02-27 07:11:42 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2003-02-27 07:11:42 +0000 |
commit | f544845967577250708bccc777f944fa47dd73a3 (patch) | |
tree | c8b56e58c6f43fd01c69225b0de8bfbf36d31a9d | |
parent | 57c00309f9e21fdbfde78d9792ed848a0efbfa01 (diff) | |
download | FreeBSD-src-f544845967577250708bccc777f944fa47dd73a3.zip FreeBSD-src-f544845967577250708bccc777f944fa47dd73a3.tar.gz |
Fix UDMA modes setup on CMD chips.
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index 8b88de9..673ac55 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -1426,7 +1426,7 @@ ata_cmd_setmode(struct ata_device *atadev, int mode) u_int8_t umode = pci_read_config(parent, ureg, 1); umode &= ~(atadev->unit == ATA_MASTER ? 0x35 : 0xca); - umode |= udmatimings[ATA_DEV(atadev->unit)][mode & ATA_MODE_MASK]; + umode |= udmatimings[mode & ATA_MODE_MASK][ATA_DEV(atadev->unit)]; pci_write_config(parent, ureg, umode, 1); } else if (mode >= ATA_WDMA0) { |