Lines Matching +full:ultra +full:- +full:low
1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
25 * 4. Neither the name of the author nor the names of any co-contributors
56 * DP83865 is an ultra low power version of the DP83861 and DP83891.
132 * NB: the PHY has the 10BASE-T BMSR bits hard-wired to 0, in nsgphy_attach()
133 * even though it supports 10BASE-T. in nsgphy_attach()
135 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | in nsgphy_attach()
136 BMSR_10TFDX | BMSR_10THDX) & sc->mii_capmask; in nsgphy_attach()
138 * Note that as documented manual 1000BASE-T modes of DP83865 only in nsgphy_attach()
141 if (sc->mii_capabilities & BMSR_EXTSTAT) in nsgphy_attach()
142 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in nsgphy_attach()
147 MIIBUS_MEDIAINIT(sc->mii_dev); in nsgphy_attach()
180 struct mii_data *mii = sc->mii_pdata; in nsgphy_status()
181 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in nsgphy_status()
184 mii->mii_media_status = IFM_AVALID; in nsgphy_status()
185 mii->mii_media_active = IFM_ETHER; in nsgphy_status()
192 mii->mii_media_status |= IFM_ACTIVE; in nsgphy_status()
196 mii->mii_media_active |= IFM_NONE; in nsgphy_status()
197 mii->mii_media_status = 0; in nsgphy_status()
202 mii->mii_media_active |= IFM_LOOP; in nsgphy_status()
211 mii->mii_media_active |= IFM_NONE; in nsgphy_status()
217 mii->mii_media_active |= IFM_1000_T; in nsgphy_status()
220 mii->mii_media_active |= IFM_ETH_MASTER; in nsgphy_status()
224 mii->mii_media_active |= IFM_100_TX; in nsgphy_status()
228 mii->mii_media_active |= IFM_10_T; in nsgphy_status()
232 mii->mii_media_active |= IFM_NONE; in nsgphy_status()
233 mii->mii_media_status = 0; in nsgphy_status()
238 mii->mii_media_active |= in nsgphy_status()
241 mii->mii_media_active |= IFM_HDX; in nsgphy_status()
243 mii->mii_media_active = ife->ifm_media; in nsgphy_status()