diff options
author | jchandra <jchandra@FreeBSD.org> | 2013-01-24 14:42:58 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2013-01-24 14:42:58 +0000 |
commit | ada55007d771831648c36ecf9a8cba4a4f26a25b (patch) | |
tree | 484f1177cd772682f065677f079479273b295319 /sys/mips/nlm/dev/net/xlpge.c | |
parent | 6fe65a877ece9d2793ca4f75cbb71bfe83f69535 (diff) | |
download | FreeBSD-src-ada55007d771831648c36ecf9a8cba4a4f26a25b.zip FreeBSD-src-ada55007d771831648c36ecf9a8cba4a4f26a25b.tar.gz |
Minor updates to the Broadcom XLP NAE driver
Remove unnecessary SGMII initialization code from nae.c. While there
clean up some prints and whitespace.
Diffstat (limited to 'sys/mips/nlm/dev/net/xlpge.c')
-rw-r--r-- | sys/mips/nlm/dev/net/xlpge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/mips/nlm/dev/net/xlpge.c b/sys/mips/nlm/dev/net/xlpge.c index 0e41559..f94dcd5 100644 --- a/sys/mips/nlm/dev/net/xlpge.c +++ b/sys/mips/nlm/dev/net/xlpge.c @@ -1364,13 +1364,13 @@ nlm_xlpge_mii_statchg(device_t dev) if (mii->mii_media_status & IFM_ACTIVE) { if (IFM_SUBTYPE(mii->mii_media_active) == IFM_10_T) { sc->speed = NLM_SGMII_SPEED_10; - speed = "10-Mbps"; + speed = "10Mbps"; } else if (IFM_SUBTYPE(mii->mii_media_active) == IFM_100_TX) { sc->speed = NLM_SGMII_SPEED_100; - speed = "100-Mbps"; + speed = "100Mbps"; } else { /* default to 1G */ sc->speed = NLM_SGMII_SPEED_1000; - speed = "1-Gbps"; + speed = "1Gbps"; } if ((mii->mii_media_active & IFM_GMASK) == IFM_FDX) { @@ -1381,7 +1381,7 @@ nlm_xlpge_mii_statchg(device_t dev) duplexity = "half"; } - printf("Setup [complex=%d, port=%d] with speed=%s duplex=%s\n", + printf("Port [%d, %d] setup with speed=%s duplex=%s\n", sc->block, sc->port, speed, duplexity); nlm_nae_setup_mac(sc->base_addr, sc->block, sc->port, 0, 1, 1, |