From 51c2f28717cdd4766aad20bf962562e4a6771114 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 4 Feb 2006 10:32:57 +0000 Subject: handle link state change interrupts but do nothing for now --- sys/dev/pci/if_nfe.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 @@ -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); -- cgit v1.2.3