gentbi.c (213893) | gentbi.c (215298) |
---|---|
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 213893 2010-10-15 14:52:11Z marius $"); | 65__FBSDID("$FreeBSD: head/sys/dev/mii/gentbi.c 215298 2010-11-14 13:31:01Z 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> --- 188 unchanged lines hidden (view full) --- 262 /* 263 * The media is always 1000baseSX. Check the ANLPAR to 264 * see if we're doing full-duplex. 265 */ 266 mii->mii_media_active |= IFM_1000_SX; 267 anlpar = PHY_READ(sc, MII_ANLPAR); 268 if ((sc->mii_extcapabilities & EXTSR_1000XFDX) != 0 && 269 (anlpar & ANLPAR_X_FD) != 0) | 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> --- 188 unchanged lines hidden (view full) --- 262 /* 263 * The media is always 1000baseSX. Check the ANLPAR to 264 * see if we're doing full-duplex. 265 */ 266 mii->mii_media_active |= IFM_1000_SX; 267 anlpar = PHY_READ(sc, MII_ANLPAR); 268 if ((sc->mii_extcapabilities & EXTSR_1000XFDX) != 0 && 269 (anlpar & ANLPAR_X_FD) != 0) |
270 mii->mii_media_active |= IFM_FDX; | 270 mii->mii_media_active |= 271 IFM_FDX | mii_phy_flowstatus(sc); |
271 else 272 mii->mii_media_active |= IFM_HDX; 273 } else 274 mii->mii_media_active = ife->ifm_media; 275} | 272 else 273 mii->mii_media_active |= IFM_HDX; 274 } else 275 mii->mii_media_active = ife->ifm_media; 276} |