summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-01-06 03:06:52 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-01-06 03:06:52 +0000
commitda1defd62409fb32385c9242bfe30f9bfaf4a4bb (patch)
treef34cf901dcc6ad7903963c2c76fb01f14257112e /sys
parente37cb394b454237903b95f6290919c0e7fe93e40 (diff)
o let if_dc match macronix and pnic-II
o apply patch from Joff Thyer <jsthyer@uncg.edu> that helps with watchdog resets in mx & dm chips
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_dc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_dc.c b/sys/dev/pci/if_dc.c
index e046b2af791..dd2d3e42ad7 100644
--- a/sys/dev/pci/if_dc.c
+++ b/sys/dev/pci/if_dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc.c,v 1.5 2000/01/03 01:22:53 aaron Exp $ */
+/* $OpenBSD: if_dc.c,v 1.6 2000/01/06 03:06:51 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -165,15 +165,11 @@ struct dc_type dc_devs[] = {
{ PCI_VENDOR_ADMTEK, PCI_PRODUCT_ADMTEK_AL981 },
{ PCI_VENDOR_ADMTEK, PCI_PRODUCT_ADMTEK_AN985 },
{ PCI_VENDOR_ASIX, PCI_PRODUCT_ASIX_AX88140A },
-#if 0
{ PCI_VENDOR_MACRONIX, PCI_PRODUCT_MACRONIX_MX98713 },
{ PCI_VENDOR_MACRONIX, PCI_PRODUCT_MACRONIX_MX98715 },
{ PCI_VENDOR_COMPEX, PCI_PRODUCT_COMPEX_98713 },
-#endif
{ PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNIC },
-#if 0
{ PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNICII },
-#endif
{ 0, 0 }
};
@@ -2111,6 +2107,10 @@ int dc_intr(arg)
while((status = CSR_READ_4(sc, DC_ISR)) & DC_INTRS) {
CSR_WRITE_4(sc, DC_ISR, status);
+ if ((status & DC_INTRS) == 0) {
+ claimed = 0;
+ break;
+ }
if (status & DC_ISR_RX_OK)
dc_rxeof(sc);