diff options
author | se <se@FreeBSD.org> | 1995-03-16 17:41:20 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1995-03-16 17:41:20 +0000 |
commit | 4c4945abee9eabe3a2be340ba973ae861c21a3c6 (patch) | |
tree | 35182f7d3bd9e5dcc363d58796111e0cf9c9fe25 /sys/pci | |
parent | 8882d76eda0f65db86b70a8641d460198eb851a8 (diff) | |
download | FreeBSD-src-4c4945abee9eabe3a2be340ba973ae861c21a3c6.zip FreeBSD-src-4c4945abee9eabe3a2be340ba973ae861c21a3c6.tar.gz |
Prepare for shared interrupts (required by the new PCI code that adds
support for PCI PCI bridges, e.g. found on 4ch. Ethernet cards).
Submitted by: Wolfgang Stanglmeier <wolf@kintaro.cologne.de>
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_de.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index 1c332dc..d413c94 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_de.c,v 1.15 1995/02/02 13:12:13 davidg Exp $ + * $Id: if_de.c,v 1.16 1995/02/10 06:06:42 davidg Exp $ * */ @@ -35,6 +35,7 @@ * board which support DC21040. */ +#define IF_DE_C_PATCHLEVEL "pl1 95/03/09" #include "de.h" #if NDE > 0 @@ -47,6 +48,7 @@ #include <sys/errno.h> #include <sys/malloc.h> #include <sys/kernel.h> +#include <sys/proc.h> /* only for declaration of wakeup() used by vm.h */ #include <machine/clock.h> #include <net/if.h> @@ -661,8 +663,10 @@ tulip_intr( tulip_softc_t *sc) { tulip_uint32_t csr; + int active=0; while ((csr = *sc->tulip_csrs.csr_status) & (TULIP_STS_NORMALINTR|TULIP_STS_ABNRMLINTR)) { + active=1; *sc->tulip_csrs.csr_status = csr & sc->tulip_intrmask; if (csr & TULIP_STS_SYSERROR) { @@ -684,7 +688,7 @@ tulip_intr( tulip_start(&sc->tulip_if); } } - return 1; + return (active); } /* |