bmtphy.c (213188) | bmtphy.c (213229) |
---|---|
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 213188 2010-09-26 22:11:41Z marius $"); | 59__FBSDID("$FreeBSD: head/sys/dev/mii/bmtphy.c 213229 2010-09-27 20:31:03Z 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> --- 71 unchanged lines hidden (view full) --- 139{ 140 struct mii_softc *sc; 141 struct mii_attach_args *ma; 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); | 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> --- 71 unchanged lines hidden (view full) --- 139{ 140 struct mii_softc *sc; 141 struct mii_attach_args *ma; 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 = device_get_softc(sc->mii_dev); | 147 mii = ma->mii_data; |
148 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 149 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); --- 120 unchanged lines hidden --- | 148 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 149 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); --- 120 unchanged lines hidden --- |