diff --git a/sys/arch/macppc/dev/am79c950.c b/sys/arch/macppc/dev/am79c950.c index 83efe7c64c2e..edcdf80b57a9 100644 --- a/sys/arch/macppc/dev/am79c950.c +++ b/sys/arch/macppc/dev/am79c950.c @@ -1,4 +1,4 @@ -/* $NetBSD: am79c950.c,v 1.5 1998/07/05 06:49:06 jonathan Exp $ */ +/* $NetBSD: am79c950.c,v 1.6 1998/09/03 14:06:06 tsubai Exp $ */ /*- * Copyright (c) 1997 David Huang @@ -502,7 +502,7 @@ maceput(sc, m) return (totlen); } -void +int mcintr(arg) void *arg; { @@ -510,6 +510,9 @@ mcintr(arg) u_int8_t ir; ir = NIC_GET(sc, MACE_IR) & ~NIC_GET(sc, MACE_IMR); + if (ir == 0) + return 0; + if (ir & JAB) { #ifdef MCDEBUG printf("%s: jabber error\n", sc->sc_dev.dv_xname); @@ -540,6 +543,8 @@ mcintr(arg) if (ir & RCVINT) mc_rint(sc); + + return 1; } integrate void diff --git a/sys/arch/macppc/dev/if_mcvar.h b/sys/arch/macppc/dev/if_mcvar.h index 53b443f5e858..c95dda6c1965 100644 --- a/sys/arch/macppc/dev/if_mcvar.h +++ b/sys/arch/macppc/dev/if_mcvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_mcvar.h,v 1.2 1998/07/04 22:18:29 jonathan Exp $ */ +/* $NetBSD: if_mcvar.h,v 1.3 1998/09/03 14:06:07 tsubai Exp $ */ /*- * Copyright (c) 1997 David Huang @@ -99,5 +99,5 @@ struct mc_softc { }; int mcsetup __P((struct mc_softc *, u_int8_t *)); -void mcintr __P((void *arg)); +int mcintr __P((void *arg)); void mc_rint __P((struct mc_softc *sc));