summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/nsgphy.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-12-21 21:12:18 +0000
committermarius <marius@FreeBSD.org>2010-12-21 21:12:18 +0000
commitda7b28033fb65366c663d7d233d22539769ee451 (patch)
treef678ace2dbc6639be90fdf70a57983d28844d0e5 /sys/dev/mii/nsgphy.c
parenteb00352e45c46febb8e2b0df1a048451d79de792 (diff)
downloadFreeBSD-src-da7b28033fb65366c663d7d233d22539769ee451.zip
FreeBSD-src-da7b28033fb65366c663d7d233d22539769ee451.tar.gz
- Add a comment regarding the fact that as documented in the datasheet
manual 1000BASE-T modes of DP83865 only work together with other National Semiconductor PHYs. - Spell 10BASE-T correctly - Remove some redundant braces.
Diffstat (limited to 'sys/dev/mii/nsgphy.c')
-rw-r--r--sys/dev/mii/nsgphy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index 4177912..15fcebb 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -140,11 +140,15 @@ nsgphy_attach(device_t dev)
mii_phy_reset(sc);
/*
- * NB: the PHY has the 10baseT BMSR bits hard-wired to 0,
- * even though it supports 10baseT.
+ * NB: the PHY has the 10BASE-T BMSR bits hard-wired to 0,
+ * even though it supports 10BASE-T.
*/
sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) |
- (BMSR_10TFDX | BMSR_10THDX)) & ma->mii_capmask;
+ BMSR_10TFDX | BMSR_10THDX) & ma->mii_capmask;
+ /*
+ * Note that as documented manual 1000BASE-T modes of DP83865 only
+ * work together with other National Semiconductor PHYs.
+ */
if (sc->mii_capabilities & BMSR_EXTSTAT)
sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR);
OpenPOWER on IntegriCloud