summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-31 21:57:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-31 21:57:50 +0000
commit0e2a2963d23da6d4cb9baa82fd9bb259b040d178 (patch)
tree0a5d4c15dbe7dfc29dd882f494f17dfcbfc2099a /sys
parent1313800d4c0dcef4e8df99ad06fc4d328406d5a8 (diff)
since byte order bugs are gone, interrupts work ok
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ubsec.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index 69f4603890b..9cd2eec4c28 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.18 2000/07/29 23:42:00 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.19 2000/07/31 21:57:49 deraadt Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -32,7 +32,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#define UBSEC_DEBUG
+#undef UBSEC_DEBUG
/*
@@ -210,14 +210,17 @@ ubsec_intr(arg)
WRITE_REG(sc, BS_STAT, stat); /* IACK */
-printf("ubsec intr %x\n", stat);
+#ifdef UBSEC_DEBUG
+ printf("ubsec intr %x\n", stat);
+#endif
if ((stat & BS_STAT_MCR1_DONE)) {
while (!SIMPLEQ_EMPTY(&sc->sc_qchip)) {
q = SIMPLEQ_FIRST(&sc->sc_qchip);
+#ifdef UBSEC_DEBUG
printf("mcr_flags %x %x %x\n", &q->q_mcr, q->q_mcr.mcr_flags,
READ_REG(sc, BS_ERR));
- if ((q->q_mcr.mcr_flags & UBS_MCR_DONE) == 0 &&
- READ_REG(sc, BS_ERR) != vtophys(&q->q_mcr))
+#endif
+ if ((q->q_mcr.mcr_flags & UBS_MCR_DONE) == 0)
break;
npkts++;
SIMPLEQ_REMOVE_HEAD(&sc->sc_qchip, q, q_next);