icsphy.c (213188) | icsphy.c (213229) |
---|---|
1/* $NetBSD: icsphy.c,v 1.41 2006/11/16 21:24:07 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 41 unchanged lines hidden (view full) --- 50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> | 1/* $NetBSD: icsphy.c,v 1.41 2006/11/16 21:24:07 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 41 unchanged lines hidden (view full) --- 50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> |
58__FBSDID("$FreeBSD: head/sys/dev/mii/icsphy.c 213188 2010-09-26 22:11:41Z marius $"); | 58__FBSDID("$FreeBSD: head/sys/dev/mii/icsphy.c 213229 2010-09-27 20:31:03Z marius $"); |
59 60/* 61 * driver for Integrated Circuit Systems' ICS1889-1893 ethernet 10/100 PHY 62 * datasheet from www.icst.com 63 */ 64 65#include <sys/param.h> 66#include <sys/systm.h> --- 66 unchanged lines hidden (view full) --- 133 struct mii_softc *sc; 134 struct mii_attach_args *ma; 135 struct mii_data *mii; 136 137 isc = device_get_softc(dev); 138 sc = &isc->mii_sc; 139 ma = device_get_ivars(dev); 140 sc->mii_dev = device_get_parent(dev); | 59 60/* 61 * driver for Integrated Circuit Systems' ICS1889-1893 ethernet 10/100 PHY 62 * datasheet from www.icst.com 63 */ 64 65#include <sys/param.h> 66#include <sys/systm.h> --- 66 unchanged lines hidden (view full) --- 133 struct mii_softc *sc; 134 struct mii_attach_args *ma; 135 struct mii_data *mii; 136 137 isc = device_get_softc(dev); 138 sc = &isc->mii_sc; 139 ma = device_get_ivars(dev); 140 sc->mii_dev = device_get_parent(dev); |
141 mii = device_get_softc(sc->mii_dev); | 141 mii = ma->mii_data; |
142 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 143 144 sc->mii_inst = mii->mii_instance; 145 sc->mii_phy = ma->mii_phyno; 146 sc->mii_service = icsphy_service; 147 sc->mii_pdata = mii; 148 sc->mii_anegticks = MII_ANEGTICKS; 149 sc->mii_flags |= MIIF_NOISOLATE; --- 141 unchanged lines hidden --- | 142 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 143 144 sc->mii_inst = mii->mii_instance; 145 sc->mii_phy = ma->mii_phyno; 146 sc->mii_service = icsphy_service; 147 sc->mii_pdata = mii; 148 sc->mii_anegticks = MII_ANEGTICKS; 149 sc->mii_flags |= MIIF_NOISOLATE; --- 141 unchanged lines hidden --- |