bmtphy.c (213384) | bmtphy.c (213893) |
---|---|
1/*- 2 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 7 * NASA Ames Research Center. 8 * --- 42 unchanged lines hidden (view full) --- 51 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 52 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53 * 54 * from: NetBSD: bmtphy.c,v 1.8 2002/07/03 06:25:50 simonb Exp 55 * 56 */ 57 58#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 7 * NASA Ames Research Center. 8 * --- 42 unchanged lines hidden (view full) --- 51 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 52 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53 * 54 * from: NetBSD: bmtphy.c,v 1.8 2002/07/03 06:25:50 simonb Exp 55 * 56 */ 57 58#include <sys/cdefs.h> |
59__FBSDID("$FreeBSD: head/sys/dev/mii/bmtphy.c 213384 2010-10-03 17:00:57Z marius $"); | 59__FBSDID("$FreeBSD: head/sys/dev/mii/bmtphy.c 213893 2010-10-15 14:52:11Z marius $"); |
60 61/* 62 * Driver for the Broadcom BCM5201/BCM5202 "Mini-Theta" PHYs. This also 63 * drives the PHY on the 3Com 3c905C. The 3c905C's PHY is described in 64 * the 3c905C data sheet. 65 */ 66 67#include <sys/param.h> --- 74 unchanged lines hidden (view full) --- 142 struct mii_data *mii; 143 144 sc = device_get_softc(dev); 145 ma = device_get_ivars(dev); 146 sc->mii_dev = device_get_parent(dev); 147 mii = ma->mii_data; 148 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 149 | 60 61/* 62 * Driver for the Broadcom BCM5201/BCM5202 "Mini-Theta" PHYs. This also 63 * drives the PHY on the 3Com 3c905C. The 3c905C's PHY is described in 64 * the 3c905C data sheet. 65 */ 66 67#include <sys/param.h> --- 74 unchanged lines hidden (view full) --- 142 struct mii_data *mii; 143 144 sc = device_get_softc(dev); 145 ma = device_get_ivars(dev); 146 sc->mii_dev = device_get_parent(dev); 147 mii = ma->mii_data; 148 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 149 |
150 sc->mii_flags = miibus_get_flags(dev); |
|
150 sc->mii_inst = mii->mii_instance++; 151 sc->mii_phy = ma->mii_phyno; 152 sc->mii_service = bmtphy_service; 153 sc->mii_pdata = mii; 154 155 mii_phy_reset(sc); 156 157 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; --- 93 unchanged lines hidden --- | 151 sc->mii_inst = mii->mii_instance++; 152 sc->mii_phy = ma->mii_phyno; 153 sc->mii_service = bmtphy_service; 154 sc->mii_pdata = mii; 155 156 mii_phy_reset(sc); 157 158 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; --- 93 unchanged lines hidden --- |