diff options
author | phk <phk@FreeBSD.org> | 2002-04-29 06:48:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-29 06:48:20 +0000 |
commit | b8edad4923164ceeaa0858c3084c662787e4450c (patch) | |
tree | 2110ab56f4ee9ed02ae0f8912f507c8d9a4a81fd /sys/dev/mii | |
parent | 27437e6a2afe8a7a44a4e953b44f3ffcb667d446 (diff) | |
download | FreeBSD-src-b8edad4923164ceeaa0858c3084c662787e4450c.zip FreeBSD-src-b8edad4923164ceeaa0858c3084c662787e4450c.tar.gz |
Edging ever closer to NetBSD...
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 8 | ||||
-rw-r--r-- | sys/dev/mii/miivar.h | 11 | ||||
-rw-r--r-- | sys/dev/mii/mlphy.c | 4 |
3 files changed, 11 insertions, 12 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 1fc46c9..1add691 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -222,13 +222,13 @@ mii_phy_update(sc, cmd) { struct mii_data *mii = sc->mii_pdata; - if (sc->mii_active != mii->mii_media_active || cmd == MII_MEDIACHG) { + if (sc->mii_media_active != mii->mii_media_active || cmd == MII_MEDIACHG) { MIIBUS_STATCHG(sc->mii_dev); - sc->mii_active = mii->mii_media_active; + sc->mii_media_active = mii->mii_media_active; } - if (sc->mii_status != mii->mii_media_status) { + if (sc->mii_media_status != mii->mii_media_status) { MIIBUS_LINKCHG(sc->mii_dev); - sc->mii_status = mii->mii_media_status; + sc->mii_media_status = mii->mii_media_status; } } diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index d890f46..3b56146 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -45,10 +45,7 @@ #include <sys/queue.h> /* - * Media Independent Interface autoconfiguration defintions. - * - * This file exports an interface which attempts to be compatible - * with the BSD/OS 3.0 interface. + * Media Independent Interface configuration defintions. */ struct mii_softc; @@ -124,9 +121,11 @@ struct mii_softc { int mii_flags; /* misc. flags; see below */ int mii_capabilities; /* capabilities from BMSR */ + int mii_extcapabilities; /* extended capabilities */ int mii_ticks; /* MII_TICK counter */ - int mii_active; /* last active media */ - int mii_status; /* last active status */ + int mii_anegticks; /* ticks before retrying aneg */ + int mii_media_active; /* last active media */ + int mii_media_status; /* last active status */ }; typedef struct mii_softc mii_softc_t; diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c index e5c4195..c983b71 100644 --- a/sys/dev/mii/mlphy.c +++ b/sys/dev/mii/mlphy.c @@ -375,8 +375,8 @@ mlphy_service(xsc, mii, cmd) other->mii_inst = sc->mii_inst; (void) (*other->mii_service)(other, mii, MII_POLLSTAT); other->mii_inst = other_inst; - sc->mii_active = other->mii_active; - sc->mii_status = other->mii_status; + sc->mii_media_active = other->mii_media_active; + sc->mii_media_status = other->mii_media_status; } else ukphy_status(sc); |