Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Make sure that we don't blow away the enables in ...
details: https://anonhg.NetBSD.org/src/rev/53a15683cd63
branches: trunk
changeset: 552692:53a15683cd63
user: briggs <briggs%NetBSD.org@localhost>
date: Tue Sep 30 12:34:16 2003 +0000
description:
Make sure that we don't blow away the enables in ahd_reset() on PCI-X.
diffstat:
sys/dev/ic/aic79xx.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r faa6d340840c -r 53a15683cd63 sys/dev/ic/aic79xx.c
--- a/sys/dev/ic/aic79xx.c Tue Sep 30 09:49:29 2003 +0000
+++ b/sys/dev/ic/aic79xx.c Tue Sep 30 12:34:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx.c,v 1.22 2003/09/02 21:02:56 fvdl Exp $ */
+/* $NetBSD: aic79xx.c,v 1.23 2003/09/30 12:34:16 briggs Exp $ */
/*
* Core routines and tables shareable across OS platforms.
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.22 2003/09/02 21:02:56 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.23 2003/09/30 12:34:16 briggs Exp $");
#include <dev/ic/aic79xx_osm.h>
#include <dev/ic/aic79xx_inline.h>
@@ -5305,9 +5305,8 @@
* Clear any latched PCI error status and restore
* previous SERR and PERR response enables.
*/
- pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, 0x000000FF);
- pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG,
- PCI_COMMAND_SERR_ENABLE|PCI_COMMAND_PARITY_ENABLE);
+ pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, 0xFF);
+ pci_conf_write(bd->pc, bd->tag, PCI_COMMAND_STATUS_REG, cmd);
}
/*
Home |
Main Index |
Thread Index |
Old Index