From 3b2e959dfc2a77579969c63e2d03e6073114b15c Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 11 May 2002 20:53:52 +0000 Subject: [PATCH] Supress RX_MAC interrupts regarding the FRAME_COUNT register. --- sys/dev/ic/gem.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 3438f8d91c73..36574349300e 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $NetBSD: gem.c,v 1.15 2002/05/11 00:36:02 matt Exp $ */ +/* $NetBSD: gem.c,v 1.16 2002/05/11 20:53:52 matt Exp $ */ /* * @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.15 2002/05/11 00:36:02 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.16 2002/05/11 20:53:52 matt Exp $"); #include "bpfilter.h" @@ -792,7 +792,8 @@ gem_init(struct ifnet *ifp) GEM_INTR_RX_TAG_ERR|GEM_INTR_PCS| GEM_INTR_MAC_CONTROL|GEM_INTR_MIF| GEM_INTR_BERR)); - bus_space_write_4(t, h, GEM_MAC_RX_MASK, 0); /* XXXX */ + bus_space_write_4(t, h, GEM_MAC_RX_MASK, + ~(GEM_MAC_RX_DONE|GEM_MAC_RX_FRAME_CNT)); bus_space_write_4(t, h, GEM_MAC_TX_MASK, 0xffff); /* XXXX */ bus_space_write_4(t, h, GEM_MAC_CONTROL_MASK, 0); /* XXXX */