diff options
author | marius <marius@FreeBSD.org> | 2007-01-12 22:27:46 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-01-12 22:27:46 +0000 |
commit | bbbb7ec1ef33af60587c23e73ed39e2989ea5d3d (patch) | |
tree | 10adfa7b7ef76b44ab6e5c2e019236a95140058d /sys/dev/mii/nsphy.c | |
parent | f96ba0731cb8677b7dcc00622f59de9cf96b912c (diff) | |
download | FreeBSD-src-bbbb7ec1ef33af60587c23e73ed39e2989ea5d3d.zip FreeBSD-src-bbbb7ec1ef33af60587c23e73ed39e2989ea5d3d.tar.gz |
Use mii_phy_add_media()/mii_phy_setmedia()-compatible media table
indices when manually adding media. Some of these I've missed while
converting drivers to take advantage of said fuctions recently,
others where longstanding bugs.
Diffstat (limited to 'sys/dev/mii/nsphy.c')
-rw-r--r-- | sys/dev/mii/nsphy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c index 49796e8..01429ab 100644 --- a/sys/dev/mii/nsphy.c +++ b/sys/dev/mii/nsphy.c @@ -178,7 +178,7 @@ nsphy_attach(device_t dev) if (strcmp(nic, "pcn") != 0) #if 1 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_TX, IFM_LOOP, - sc->mii_inst), BMCR_LOOP|BMCR_S100); + sc->mii_inst), MII_MEDIA_100_TX); #else if (strcmp(nic, "pcn") == 0) sc->mii_flags |= MIIF_NOLOOP; |