Deleted Added
full compact
gentbi.c (213188) gentbi.c (213229)
1/* $NetBSD: gentbi.c,v 1.15 2006/03/29 07:05:24 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999, 2000, 2001 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,

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

57/*
58 * Driver for generic ten-bit (1000BASE-SX) interfaces, built in to
59 * many Gigabit Ethernet chips.
60 *
61 * All we have to do here is correctly report speed and duplex.
62 */
63
64#include <sys/cdefs.h>
1/* $NetBSD: gentbi.c,v 1.15 2006/03/29 07:05:24 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999, 2000, 2001 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,

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

57/*
58 * Driver for generic ten-bit (1000BASE-SX) interfaces, built in to
59 * many Gigabit Ethernet chips.
60 *
61 * All we have to do here is correctly report speed and duplex.
62 */
63
64#include <sys/cdefs.h>
65__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 213188 2010-09-26 22:11:41Z marius $");
65__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 213229 2010-09-27 20:31:03Z marius $");
66
67/*
68 * Driver for generic unknown ten-bit interfaces(1000BASE-{LX,SX}
69 * fiber interfaces).
70 */
71
72#include <sys/param.h>
73#include <sys/systm.h>

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

153{
154 struct mii_softc *sc;
155 struct mii_attach_args *ma;
156 struct mii_data *mii;
157
158 sc = device_get_softc(dev);
159 ma = device_get_ivars(dev);
160 sc->mii_dev = device_get_parent(dev);
66
67/*
68 * Driver for generic unknown ten-bit interfaces(1000BASE-{LX,SX}
69 * fiber interfaces).
70 */
71
72#include <sys/param.h>
73#include <sys/systm.h>

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

153{
154 struct mii_softc *sc;
155 struct mii_attach_args *ma;
156 struct mii_data *mii;
157
158 sc = device_get_softc(dev);
159 ma = device_get_ivars(dev);
160 sc->mii_dev = device_get_parent(dev);
161 mii = device_get_softc(sc->mii_dev);
161 mii = ma->mii_data;
162 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
163
164 if (bootverbose)
165 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
166 MII_OUI(ma->mii_id1, ma->mii_id2),
167 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
168
169 sc->mii_inst = mii->mii_instance;

--- 129 unchanged lines hidden ---
162 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
163
164 if (bootverbose)
165 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
166 MII_OUI(ma->mii_id1, ma->mii_id2),
167 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
168
169 sc->mii_inst = mii->mii_instance;

--- 129 unchanged lines hidden ---