Deleted Added
full compact
if_bge.c (214216) if_bge.c (214219)
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>
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 214216 2010-10-22 18:31:44Z yongari $");
35__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 214219 2010-10-22 19:30:56Z yongari $");
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

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

1688 rcb->bge_maxlen_flags =
1689 BGE_RCB_MAXLEN_FLAGS(0, BGE_RCB_FLAG_RING_DISABLED);
1690 CSR_WRITE_4(sc, BGE_RX_MINI_RCB_MAXLEN_FLAGS,
1691 rcb->bge_maxlen_flags);
1692 /* Reset the mini receive producer ring producer index. */
1693 bge_writembx(sc, BGE_MBX_RX_MINI_PROD_LO, 0);
1694 }
1695
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

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

1688 rcb->bge_maxlen_flags =
1689 BGE_RCB_MAXLEN_FLAGS(0, BGE_RCB_FLAG_RING_DISABLED);
1690 CSR_WRITE_4(sc, BGE_RX_MINI_RCB_MAXLEN_FLAGS,
1691 rcb->bge_maxlen_flags);
1692 /* Reset the mini receive producer ring producer index. */
1693 bge_writembx(sc, BGE_MBX_RX_MINI_PROD_LO, 0);
1694 }
1695
1696 /* Choose de-pipeline mode for BCM5906 A1. */
1697 if (sc->bge_asicrev == BGE_ASICREV_BCM5906 &&
1698 sc->bge_chiprev == BGE_CHIPID_BCM5906_A1)
1699 CSR_WRITE_4(sc, BGE_ISO_PKT_TX,
1700 (CSR_READ_4(sc, BGE_ISO_PKT_TX) & ~3) | 2);
1696 /*
1697 * The BD ring replenish thresholds control how often the
1698 * hardware fetches new BD's from the producer rings in host
1699 * memory. Setting the value too low on a busy system can
1700 * starve the hardware and recue the throughpout.
1701 *
1702 * Set the BD ring replentish thresholds. The recommended
1703 * values are 1/8th the number of descriptors allocated to

--- 3948 unchanged lines hidden ---
1701 /*
1702 * The BD ring replenish thresholds control how often the
1703 * hardware fetches new BD's from the producer rings in host
1704 * memory. Setting the value too low on a busy system can
1705 * starve the hardware and recue the throughpout.
1706 *
1707 * Set the BD ring replentish thresholds. The recommended
1708 * values are 1/8th the number of descriptors allocated to

--- 3948 unchanged lines hidden ---