diff options
author | marius <marius@FreeBSD.org> | 2010-12-21 21:12:18 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-12-21 21:12:18 +0000 |
commit | da7b28033fb65366c663d7d233d22539769ee451 (patch) | |
tree | f678ace2dbc6639be90fdf70a57983d28844d0e5 | |
parent | eb00352e45c46febb8e2b0df1a048451d79de792 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/dev/mii/nsgphy.c | 10 |
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); |