Deleted Added
full compact
axphy.c (213385) axphy.c (213893)
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 213385 2010-10-03 17:05:25Z marius $");
28__FBSDID("$FreeBSD: head/sys/dev/mii/axphy.c 213893 2010-10-15 14:52:11Z 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>

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

92 struct mii_data *mii;
93
94 sc = device_get_softc(dev);
95 ma = device_get_ivars(dev);
96 sc->mii_dev = device_get_parent(dev);
97 mii = ma->mii_data;
98 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
99
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>

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

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

--- 88 unchanged lines hidden ---
101 sc->mii_inst = mii->mii_instance++;
102 sc->mii_phy = ma->mii_phyno;
103 sc->mii_service = axphy_service;
104 sc->mii_pdata = mii;
105
106 sc->mii_flags |= MIIF_NOISOLATE;
107
108 mii_phy_reset(sc);

--- 88 unchanged lines hidden ---