Deleted Added
full compact
ukphy.c (213188) ukphy.c (213229)
1/* $NetBSD: ukphy.c,v 1.2 1999/04/23 04:24:32 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999 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: ukphy.c,v 1.2 1999/04/23 04:24:32 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999 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/ukphy.c 213188 2010-09-26 22:11:41Z marius $");
58__FBSDID("$FreeBSD: head/sys/dev/mii/ukphy.c 213229 2010-09-27 20:31:03Z marius $");
59
60/*
61 * driver for generic unknown PHYs
62 */
63
64#include <sys/param.h>
65#include <sys/systm.h>
66#include <sys/kernel.h>

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

117{
118 struct mii_softc *sc;
119 struct mii_attach_args *ma;
120 struct mii_data *mii;
121
122 sc = device_get_softc(dev);
123 ma = device_get_ivars(dev);
124 sc->mii_dev = device_get_parent(dev);
59
60/*
61 * driver for generic unknown PHYs
62 */
63
64#include <sys/param.h>
65#include <sys/systm.h>
66#include <sys/kernel.h>

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

117{
118 struct mii_softc *sc;
119 struct mii_attach_args *ma;
120 struct mii_data *mii;
121
122 sc = device_get_softc(dev);
123 ma = device_get_ivars(dev);
124 sc->mii_dev = device_get_parent(dev);
125 mii = device_get_softc(sc->mii_dev);
125 mii = ma->mii_data;
126 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
127
128 if (bootverbose)
129 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
130 MII_OUI(ma->mii_id1, ma->mii_id2),
131 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
132
133 sc->mii_inst = mii->mii_instance;

--- 75 unchanged lines hidden ---
126 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
127
128 if (bootverbose)
129 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
130 MII_OUI(ma->mii_id1, ma->mii_id2),
131 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
132
133 sc->mii_inst = mii->mii_instance;

--- 75 unchanged lines hidden ---