diff options
author | sos <sos@FreeBSD.org> | 2001-10-03 11:36:25 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-10-03 11:36:25 +0000 |
commit | 174605ab568334f3c04545db6687e3eed90f5674 (patch) | |
tree | f564c2825ba1e8f04f4cfee6175fd987eac624ab /sys/dev/ata/ata-dma.c | |
parent | 11010dfe79b067e7c06ceb047d8063844c8ff282 (diff) | |
download | FreeBSD-src-174605ab568334f3c04545db6687e3eed90f5674.zip FreeBSD-src-174605ab568334f3c04545db6687e3eed90f5674.tar.gz |
Doh! committed from the wrong tree, this is the right "stuff"...
Diffstat (limited to 'sys/dev/ata/ata-dma.c')
-rw-r--r-- | sys/dev/ata/ata-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index 4062f29..a578ea9 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -726,7 +726,7 @@ via_82c586: case 0x4d68105a: /* Promise TX2 ATA100 controllers */ case 0x6268105a: /* Promise TX2v2 ATA100 controllers */ ATA_OUTB(scp->r_bmio, ATA_BMDEVSPEC_0, 0x0b); - if (udmamode >= 4 && (ATA_INB(scp->r_bmio, ATA_BDDEVSPEC_1) & 0x20)) { + if (udmamode >= 4 && !(ATA_INB(scp->r_bmio, ATA_BMDEVSPEC_1) & 0x04)) { error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0, ATA_UDMA + max(udmamode, 5), ATA_C_F_SETXFER, ATA_WAIT_READY); |