gentbi.c (160636) | gentbi.c (164703) |
---|---|
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, --- 60 unchanged lines hidden (view full) --- 69/* 70 * Driver for generic ten-bit (1000BASE-SX) interfaces, built in to 71 * many Gigabit Ethernet chips. 72 * 73 * All we have to do here is correctly report speed and duplex. 74 */ 75 76#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, --- 60 unchanged lines hidden (view full) --- 69/* 70 * Driver for generic ten-bit (1000BASE-SX) interfaces, built in to 71 * many Gigabit Ethernet chips. 72 * 73 * All we have to do here is correctly report speed and duplex. 74 */ 75 76#include <sys/cdefs.h> |
77__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 160636 2006-07-25 00:08:32Z yongari $"); | 77__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 164703 2006-11-27 23:50:19Z marius $"); |
78 79/* 80 * Driver for generic unknown ten-bit interfaces(1000BASE-{LX,SX} 81 * fiber interfaces). 82 */ 83 84#include <sys/param.h> 85#include <sys/systm.h> --- 107 unchanged lines hidden (view full) --- 193 * in "auto". 194 */ 195 sc->mii_capabilities = 196 PHY_READ(sc, MII_BMSR) & ma->mii_capmask & ~BMSR_MEDIAMASK; 197 if (sc->mii_capabilities & BMSR_EXTSTAT) 198 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); 199 200 device_printf(dev, " "); | 78 79/* 80 * Driver for generic unknown ten-bit interfaces(1000BASE-{LX,SX} 81 * fiber interfaces). 82 */ 83 84#include <sys/param.h> 85#include <sys/systm.h> --- 107 unchanged lines hidden (view full) --- 193 * in "auto". 194 */ 195 sc->mii_capabilities = 196 PHY_READ(sc, MII_BMSR) & ma->mii_capmask & ~BMSR_MEDIAMASK; 197 if (sc->mii_capabilities & BMSR_EXTSTAT) 198 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); 199 200 device_printf(dev, " "); |
201 if ((sc->mii_capabilities & BMSR_MEDIAMASK) == 0 && 202 (sc->mii_extcapabilities & EXTSR_MEDIAMASK) == 0) 203 printf("no media present"); 204 else 205 mii_phy_add_media(sc); | 201 mii_phy_add_media(sc); |
206 printf("\n"); 207 208 return (0); 209} 210 211static int 212gentbi_service(struct mii_softc *sc, struct mii_data *mii, int cmd) 213{ --- 101 unchanged lines hidden --- | 202 printf("\n"); 203 204 return (0); 205} 206 207static int 208gentbi_service(struct mii_softc *sc, struct mii_data *mii, int cmd) 209{ --- 101 unchanged lines hidden --- |