Deleted Added
full compact
if_bge.c (226866) if_bge.c (226867)
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 226866 2011-10-27 21:27:37Z yongari $");
35__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 226867 2011-10-27 22:10:52Z 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 referred to as the Tigon III, has
43 * two on-board MIPS R4000 CPUs and can have as much as 16MB of external

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

4105 /* Send ASF heartbeat aprox. every 2s */
4106 if (sc->bge_asf_count)
4107 sc->bge_asf_count --;
4108 else {
4109 sc->bge_asf_count = 2;
4110 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_MB,
4111 BGE_FW_CMD_DRV_ALIVE);
4112 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_LEN_MB, 4);
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 referred to as the Tigon III, has
43 * two on-board MIPS R4000 CPUs and can have as much as 16MB of external

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

4105 /* Send ASF heartbeat aprox. every 2s */
4106 if (sc->bge_asf_count)
4107 sc->bge_asf_count --;
4108 else {
4109 sc->bge_asf_count = 2;
4110 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_MB,
4111 BGE_FW_CMD_DRV_ALIVE);
4112 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_LEN_MB, 4);
4113 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_DATA_MB, 3);
4113 bge_writemem_ind(sc, BGE_SRAM_FW_CMD_DATA_MB,
4114 BGE_FW_HB_TIMEOUT_SEC);
4114 CSR_WRITE_4(sc, BGE_RX_CPU_EVENT,
4115 CSR_READ_4(sc, BGE_RX_CPU_EVENT) |
4116 BGE_RX_CPU_DRV_EVENT);
4117 }
4118 }
4119}
4120
4121static void

--- 1883 unchanged lines hidden ---
4115 CSR_WRITE_4(sc, BGE_RX_CPU_EVENT,
4116 CSR_READ_4(sc, BGE_RX_CPU_EVENT) |
4117 BGE_RX_CPU_DRV_EVENT);
4118 }
4119 }
4120}
4121
4122static void

--- 1883 unchanged lines hidden ---