diff options
Diffstat (limited to 'sys/dev/mii/mii.c')
-rw-r--r-- | sys/dev/mii/mii.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 078ce4d..9a63276 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -363,3 +363,15 @@ mii_pollstat(mii) LIST_FOREACH(child, &mii->mii_phys, mii_list) (void) (*child->mii_service)(child, mii, MII_POLLSTAT); } + +/* + * Inform the PHYs that the interface is down. + */ +void +mii_down(struct mii_data *mii) +{ + struct mii_softc *child; + + LIST_FOREACH(child, &mii->mii_phys, mii_list) + mii_phy_down(child); +} |