diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-04 10:32:57 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-04 10:32:57 +0000 |
commit | 51c2f28717cdd4766aad20bf962562e4a6771114 (patch) | |
tree | 00ca61bb4b14195296a93b763c60cff56b8a1e8c | |
parent | da190386daf5d09429fb46a90444c1a0947bfbd6 (diff) |
handle link state change interrupts but do nothing for now
-rw-r--r-- | sys/dev/pci/if_nfe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 5939d28a047..789e69e5caa 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.10 2006/02/04 09:46:48 damien Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.11 2006/02/04 10:32:56 damien Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -388,6 +388,12 @@ nfe_intr(void *arg) return 0; } + if (r & NFE_IRQ_LINK) { + NFE_READ(sc, NFE_PHY_STATUS); + NFE_WRITE(sc, NFE_PHY_STATUS, 0xf); + DPRINTF(("link state changed\n")); + } + if (ifp->if_flags & IFF_RUNNING) { /* check Rx ring */ nfe_rxeof(sc); |