gentbi.c (213384) | gentbi.c (213893) |
---|---|
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 into 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 into 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 213384 2010-10-03 17:00:57Z marius $"); | 65__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 213893 2010-10-15 14:52:11Z 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> --- 87 unchanged lines hidden (view full) --- 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 | 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> --- 87 unchanged lines hidden (view full) --- 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_flags = miibus_get_flags(dev); |
|
169 sc->mii_inst = mii->mii_instance++; 170 sc->mii_phy = ma->mii_phyno; 171 sc->mii_service = gentbi_service; 172 sc->mii_pdata = mii; 173 174 mii_phy_reset(sc); 175 176 /* --- 98 unchanged lines hidden --- | 170 sc->mii_inst = mii->mii_instance++; 171 sc->mii_phy = ma->mii_phyno; 172 sc->mii_service = gentbi_service; 173 sc->mii_pdata = mii; 174 175 mii_phy_reset(sc); 176 177 /* --- 98 unchanged lines hidden --- |