Deleted Added
full compact
if_bgereg.h (199664) if_bgereg.h (199668)
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:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 *
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:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 199664 2009-11-22 19:11:34Z yongari $
33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 199668 2009-11-22 20:31:40Z yongari $
34 */
35
36/*
37 * BCM570x memory map. The internal memory layout varies somewhat
38 * depending on whether or not we have external SSRAM attached.
39 * The BCM5700 can have up to 16MB of external memory. The BCM5701
40 * is apparently not designed to use external SSRAM. The mappings
41 * up to the first 4 send rings are the same for both internal and

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

2636 int bge_timer;
2637 struct callout bge_stat_ch;
2638 uint32_t bge_rx_discards;
2639 uint32_t bge_tx_discards;
2640 uint32_t bge_tx_collisions;
2641#ifdef DEVICE_POLLING
2642 int rxcycles;
2643#endif /* DEVICE_POLLING */
34 */
35
36/*
37 * BCM570x memory map. The internal memory layout varies somewhat
38 * depending on whether or not we have external SSRAM attached.
39 * The BCM5700 can have up to 16MB of external memory. The BCM5701
40 * is apparently not designed to use external SSRAM. The mappings
41 * up to the first 4 send rings are the same for both internal and

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

2636 int bge_timer;
2637 struct callout bge_stat_ch;
2638 uint32_t bge_rx_discards;
2639 uint32_t bge_tx_discards;
2640 uint32_t bge_tx_collisions;
2641#ifdef DEVICE_POLLING
2642 int rxcycles;
2643#endif /* DEVICE_POLLING */
2644 struct task bge_intr_task;
2645 struct taskqueue *bge_tq;
2644};
2645
2646#define BGE_LOCK_INIT(_sc, _name) \
2647 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
2648#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx)
2649#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED)
2650#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx)
2651#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx)
2646};
2647
2648#define BGE_LOCK_INIT(_sc, _name) \
2649 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
2650#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx)
2651#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED)
2652#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx)
2653#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx)