Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Fix for when EMAC_EVENT_COUNTERS...



details:   https://anonhg.NetBSD.org/src/rev/a6b14289b3d6
branches:  trunk
changeset: 535065:a6b14289b3d6
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Aug 09 14:10:30 2002 +0000

description:
Fix for when EMAC_EVENT_COUNTERS isn't defined.  Problem reported by
Allen Briggs.

diffstat:

 sys/arch/powerpc/ibm4xx/dev/if_emac.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 1a83297b9d42 -r a6b14289b3d6 sys/arch/powerpc/ibm4xx/dev/if_emac.c
--- a/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Fri Aug 09 11:06:43 2002 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Fri Aug 09 14:10:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_emac.c,v 1.3 2002/08/09 04:17:26 simonb Exp $       */
+/*     $NetBSD: if_emac.c,v 1.4 2002/08/09 14:10:30 simonb Exp $       */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -1070,7 +1070,9 @@
 static int
 emac_serr_intr(void *arg)
 {
+#ifdef EMAC_EVENT_COUNTERS
        struct emac_softc *sc = arg;
+#endif
        u_int32_t esr;
 
        EMAC_EVCNT_INCR(&sc->sc_ev_serr);
@@ -1088,7 +1090,9 @@
 static int
 emac_txeob_intr(void *arg)
 {
+#ifdef EMAC_EVENT_COUNTERS
        struct emac_softc *sc = arg;
+#endif
 
        EMAC_EVCNT_INCR(&sc->sc_ev_txintr);
        emac_txreap(arg);



Home | Main Index | Thread Index | Old Index