diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-03-16 14:17:02 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-03-16 14:17:02 +0000 |
commit | 0a2333e2ea8cf9131b2dbceb3a6a587585aa5859 (patch) | |
tree | 5ed44d39f1d8d2a33e61654066346341404ad812 | |
parent | 97b1481159ea7816c903896e2131f1d8eb725fb8 (diff) | |
download | FreeBSD-src-0a2333e2ea8cf9131b2dbceb3a6a587585aa5859.zip FreeBSD-src-0a2333e2ea8cf9131b2dbceb3a6a587585aa5859.tar.gz |
Enable some undocumented bits in the DP83840 PHY, which is needed
when using it with the Intel fxp driver.
Tested by: peter, Ollivier Robert <roberto@eurocontrol.fr>,
Peter Schultz <pete@jocose.org>
-rw-r--r-- | sys/dev/mii/nsphy.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c index f686624..37f3e9c 100644 --- a/sys/dev/mii/nsphy.c +++ b/sys/dev/mii/nsphy.c @@ -264,17 +264,20 @@ nsphy_service(sc, mii, cmd) */ reg |= PCR_FLINK100; -#if 0 /* * Mystery bits which are supposedly `reserved', * but we seem to need to set them when the PHY - * is connected to some interfaces! + * is connected to some interfaces: + * + * 0x0400 is needed for fxp + * (Intel EtherExpress Pro 10+/100B, 82557 chip) + * (nsphy with a DP83840 chip) + * 0x0100 may be needed for some other card */ reg |= 0x0100 | 0x0400; -#endif -/* + PHY_WRITE(sc, MII_NSPHY_PCR, reg); -*/ + switch (IFM_SUBTYPE(ife->ifm_media)) { case IFM_AUTO: /* |