Deleted Added
full compact
inphy.c (165985) inphy.c (213229)
1/*-
2 * Copyright (c) 2001 Jonathan Lemon
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

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Jonathan Lemon
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

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/mii/inphy.c 165985 2007-01-12 22:27:46Z marius $");
32__FBSDID("$FreeBSD: head/sys/dev/mii/inphy.c 213229 2010-09-27 20:31:03Z marius $");
33
34/*
35 * driver for Intel 82553 and 82555 PHYs
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>

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

99{
100 struct mii_softc *sc;
101 struct mii_attach_args *ma;
102 struct mii_data *mii;
103
104 sc = device_get_softc(dev);
105 ma = device_get_ivars(dev);
106 sc->mii_dev = device_get_parent(dev);
33
34/*
35 * driver for Intel 82553 and 82555 PHYs
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>

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

99{
100 struct mii_softc *sc;
101 struct mii_attach_args *ma;
102 struct mii_data *mii;
103
104 sc = device_get_softc(dev);
105 ma = device_get_ivars(dev);
106 sc->mii_dev = device_get_parent(dev);
107 mii = device_get_softc(sc->mii_dev);
107 mii = ma->mii_data;
108 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
109
110 sc->mii_inst = mii->mii_instance;
111 sc->mii_phy = ma->mii_phyno;
112 sc->mii_service = inphy_service;
113 sc->mii_pdata = mii;
114 mii->mii_instance++;
115

--- 100 unchanged lines hidden ---
108 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
109
110 sc->mii_inst = mii->mii_instance;
111 sc->mii_phy = ma->mii_phyno;
112 sc->mii_service = inphy_service;
113 sc->mii_pdata = mii;
114 mii->mii_instance++;
115

--- 100 unchanged lines hidden ---