1/*- 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 1997, 1998, 1999, 2001 4 * Bill Paul <wpaul@windriver.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 182874 2008-09-08 18:10:15Z oleg $"); |
36 37/* 38 * Broadcom BCM570x family gigabit ethernet driver for FreeBSD. 39 * 40 * The Broadcom BCM5700 is based on technology originally developed by 41 * Alteon Networks as part of the Tigon I and Tigon II gigabit ethernet 42 * MAC chips. The BCM5700, sometimes refered to as the Tigon III, has 43 * two on-board MIPS R4000 CPUs and can have as much as 16MB of external --- 3338 unchanged lines hidden (view full) --- 3382 3383 if (BGE_IS_5705_PLUS(sc)) 3384 bge_stats_update_regs(sc); 3385 else 3386 bge_stats_update(sc); 3387 3388 if ((sc->bge_flags & BGE_FLAG_TBI) == 0) { 3389 mii = device_get_softc(sc->bge_miibus); |
3390 /* 3391 * Do not touch PHY if we have link up. This could break 3392 * IPMI/ASF mode or produce extra input errors 3393 * (extra errors was reported for bcm5701 & bcm5704). 3394 */ 3395 if (!sc->bge_link) |
3396 mii_tick(mii); 3397 } else { 3398 /* 3399 * Since in TBI mode auto-polling can't be used we should poll 3400 * link status manually. Here we register pending link event 3401 * and trigger interrupt. 3402 */ 3403#ifdef DEVICE_POLLING --- 1384 unchanged lines hidden --- |