Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/algor/pci Hand off intr evcnt responsiblity in a re...



details:   https://anonhg.NetBSD.org/src/rev/1b327638e637
branches:  trunk
changeset: 510959:1b327638e637
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jun 10 09:28:26 2001 +0000

description:
Hand off intr evcnt responsiblity in a reasonable way on the 5064.

diffstat:

 sys/arch/algor/pci/pcib.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 797c1d3fe6d0 -r 1b327638e637 sys/arch/algor/pci/pcib.c
--- a/sys/arch/algor/pci/pcib.c Sun Jun 10 09:13:06 2001 +0000
+++ b/sys/arch/algor/pci/pcib.c Sun Jun 10 09:28:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.3 2001/06/10 09:13:07 thorpej Exp $ */
+/*     $NetBSD: pcib.c,v 1.4 2001/06/10 09:28:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.3 2001/06/10 09:13:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.4 2001/06/10 09:28:26 thorpej Exp $");
 
 #include "opt_algor_p5064.h" 
 #include "opt_algor_p6032.h"
@@ -391,6 +391,11 @@
 {
        struct pcib_softc *sc = v;
 
+#if defined(ALGOR_P5064)
+       if (sc->sc_reserved & (1 << irq))
+               return (isa_intr_evcnt(sc->sc_parent_ic, irq));
+#endif
+
        return (&sc->sc_intrtab[irq].intr_count);
 }
 



Home | Main Index | Thread Index | Old Index