Deleted Added
full compact
mlphy.c (182067) mlphy.c (213229)
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 18 unchanged lines hidden (view full) ---

27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 18 unchanged lines hidden (view full) ---

27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/mii/mlphy.c 182067 2008-08-23 15:50:18Z imp $");
35__FBSDID("$FreeBSD: head/sys/dev/mii/mlphy.c 213229 2010-09-27 20:31:03Z marius $");
36
37/*
38 * driver for Micro Linear 6692 PHYs
39 *
40 * The Micro Linear 6692 is a strange beast, and dealing with it using
41 * this code framework is tricky. The 6692 is actually a 100Mbps-only
42 * device, which means that a second PHY is required to support 10Mbps
43 * modes. However, even though the 6692 does not support 10Mbps modes,

--- 94 unchanged lines hidden (view full) ---

138 struct mii_softc *sc;
139 struct mii_attach_args *ma;
140 struct mii_data *mii;
141
142 msc = device_get_softc(dev);
143 sc = &msc->ml_mii;
144 ma = device_get_ivars(dev);
145 sc->mii_dev = device_get_parent(dev);
36
37/*
38 * driver for Micro Linear 6692 PHYs
39 *
40 * The Micro Linear 6692 is a strange beast, and dealing with it using
41 * this code framework is tricky. The 6692 is actually a 100Mbps-only
42 * device, which means that a second PHY is required to support 10Mbps
43 * modes. However, even though the 6692 does not support 10Mbps modes,

--- 94 unchanged lines hidden (view full) ---

138 struct mii_softc *sc;
139 struct mii_attach_args *ma;
140 struct mii_data *mii;
141
142 msc = device_get_softc(dev);
143 sc = &msc->ml_mii;
144 ma = device_get_ivars(dev);
145 sc->mii_dev = device_get_parent(dev);
146 mii = device_get_softc(sc->mii_dev);
146 mii = ma->mii_data;
147 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
148
149 sc->mii_inst = mii->mii_instance;
150 sc->mii_phy = ma->mii_phyno;
151 sc->mii_service = mlphy_service;
152 sc->mii_pdata = mii;
153
154 mii->mii_instance++;

--- 277 unchanged lines hidden ---
147 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
148
149 sc->mii_inst = mii->mii_instance;
150 sc->mii_phy = ma->mii_phyno;
151 sc->mii_service = mlphy_service;
152 sc->mii_pdata = mii;
153
154 mii->mii_instance++;

--- 277 unchanged lines hidden ---