Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci PR/31364: Douglas Fraser: cmd680 IDE controller ...
details: https://anonhg.NetBSD.org/src/rev/16c0fac8e7b1
branches: trunk
changeset: 584503:16c0fac8e7b1
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 21 14:32:46 2005 +0000
description:
PR/31364: Douglas Fraser: cmd680 IDE controller not configured properly.
diffstat:
sys/dev/pci/cmdide.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 53824ab0ad05 -r 16c0fac8e7b1 sys/dev/pci/cmdide.c
--- a/sys/dev/pci/cmdide.c Wed Sep 21 14:25:09 2005 +0000
+++ b/sys/dev/pci/cmdide.c Wed Sep 21 14:32:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmdide.c,v 1.19 2005/05/24 05:25:15 lukem Exp $ */
+/* $NetBSD: cmdide.c,v 1.20 2005/09/21 14:32:46 christos Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.19 2005/05/24 05:25:15 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.20 2005/09/21 14:32:46 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -604,14 +604,14 @@
off = 0xa8 + chp->ch_channel * 16 + drive * 2;
val = dma_tbl[drvp->DMA_mode];
pciide_pci_write(pc, pa, off, val & 0xff);
- pciide_pci_write(pc, pa, off, val >> 8);
+ pciide_pci_write(pc, pa, off+1, val >> 8);
idedma_ctl |= IDEDMA_CTL_DRV_DMA(drive);
} else {
mode |= 0x01 << (drive * 4);
off = 0xa4 + chp->ch_channel * 16 + drive * 2;
val = pio_tbl[drvp->PIO_mode];
pciide_pci_write(pc, pa, off, val & 0xff);
- pciide_pci_write(pc, pa, off, val >> 8);
+ pciide_pci_write(pc, pa, off+1, val >> 8);
}
}
Home |
Main Index |
Thread Index |
Old Index