Deleted Added
full compact
axphy.c (190558) axphy.c (213229)
1/*-
2 * Copyright (c) 2009, M. Warner Losh
3 * 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

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009, M. Warner Losh
3 * 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

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/mii/axphy.c 190558 2009-03-30 16:01:09Z imp $");
28__FBSDID("$FreeBSD: head/sys/dev/mii/axphy.c 213229 2010-09-27 20:31:03Z marius $");
29
30/*
31 * driver for internal phy in the AX88x9x chips.
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

91{
92 struct mii_softc *sc;
93 struct mii_attach_args *ma;
94 struct mii_data *mii;
95
96 sc = device_get_softc(dev);
97 ma = device_get_ivars(dev);
98 sc->mii_dev = device_get_parent(dev);
29
30/*
31 * driver for internal phy in the AX88x9x chips.
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

91{
92 struct mii_softc *sc;
93 struct mii_attach_args *ma;
94 struct mii_data *mii;
95
96 sc = device_get_softc(dev);
97 ma = device_get_ivars(dev);
98 sc->mii_dev = device_get_parent(dev);
99 mii = device_get_softc(sc->mii_dev);
99 mii = ma->mii_data;
100 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
101
102 sc->mii_inst = mii->mii_instance;
103 sc->mii_phy = ma->mii_phyno;
104 sc->mii_service = axphy_service;
105 sc->mii_pdata = mii;
106 sc->mii_flags |= MIIF_NOISOLATE;
107 mii->mii_instance++;

--- 100 unchanged lines hidden ---
100 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
101
102 sc->mii_inst = mii->mii_instance;
103 sc->mii_phy = ma->mii_phyno;
104 sc->mii_service = axphy_service;
105 sc->mii_pdata = mii;
106 sc->mii_flags |= MIIF_NOISOLATE;
107 mii->mii_instance++;

--- 100 unchanged lines hidden ---