summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rlreg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2008-12-08 02:34:13 +0000
committeryongari <yongari@FreeBSD.org>2008-12-08 02:34:13 +0000
commit4130873e132ccdc8e71a1431e270a5651a87288a (patch)
tree5e7b1602c96724656f25c3d4b049303eb9dd37e0 /sys/pci/if_rlreg.h
parent623cf6039005b8a9363f28326046cb8306e6915b (diff)
downloadFreeBSD-src-4130873e132ccdc8e71a1431e270a5651a87288a.zip
FreeBSD-src-4130873e132ccdc8e71a1431e270a5651a87288a.tar.gz
o Implemented miibus_statchg handler. It detects whether re(4)
established a valid link or not. In miibus_statchg handler add a check for established link is valid one for the controller(e.g. 1000baseT is not a valid link for fastethernet controllers.) o Added a flag RE_FLAG_FASTETHER to mark fastethernet controllers. o Added additional check to know whether we've really encountered watchdog timeouts or missed Tx completion interrupts. This change may help to track down the cause of watchdog timeouts. o In interrupt handler, removed a check for link state change interrupt. Not all controllers have the bit and re(4) did not rely on the event for a long time. In addition, re(4) didn't request the interrupt in RL_IMR register. Tested by: rpaulo
Diffstat (limited to 'sys/pci/if_rlreg.h')
-rw-r--r--sys/pci/if_rlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index 1acd7fc..6eb1ea9 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -882,6 +882,7 @@ struct rl_softc {
#define RL_FLAG_PAR 0x0020
#define RL_FLAG_DESCV2 0x0040
#define RL_FLAG_MACSTAT 0x0080
+#define RL_FLAG_FASTETHER 0x0100
#define RL_FLAG_LINK 0x8000
};
OpenPOWER on IntegriCloud