if_bgereg.h (210152) | if_bgereg.h (211596) |
---|---|
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 210152 2010-07-15 23:34:58Z yongari $ | 33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 211596 2010-08-22 01:39:09Z 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 --- 2597 unchanged lines hidden (view full) --- 2639 uint32_t bge_tx_max_coal_bds; 2640 uint32_t bge_tx_buf_ratio; 2641 int bge_if_flags; 2642 int bge_txcnt; 2643 int bge_link; /* link state */ 2644 int bge_link_evt; /* pending link event */ 2645 int bge_timer; 2646 int bge_forced_collapse; | 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 --- 2597 unchanged lines hidden (view full) --- 2639 uint32_t bge_tx_max_coal_bds; 2640 uint32_t bge_tx_buf_ratio; 2641 int bge_if_flags; 2642 int bge_txcnt; 2643 int bge_link; /* link state */ 2644 int bge_link_evt; /* pending link event */ 2645 int bge_timer; 2646 int bge_forced_collapse; |
2647 int bge_forced_udpcsum; 2648 int bge_csum_features; |
|
2647 struct callout bge_stat_ch; 2648 uint32_t bge_rx_discards; 2649 uint32_t bge_tx_discards; 2650 uint32_t bge_tx_collisions; 2651#ifdef DEVICE_POLLING 2652 int rxcycles; 2653#endif /* DEVICE_POLLING */ 2654 struct task bge_intr_task; 2655 struct taskqueue *bge_tq; 2656}; 2657 2658#define BGE_LOCK_INIT(_sc, _name) \ 2659 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 2660#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx) 2661#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED) 2662#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx) 2663#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx) | 2649 struct callout bge_stat_ch; 2650 uint32_t bge_rx_discards; 2651 uint32_t bge_tx_discards; 2652 uint32_t bge_tx_collisions; 2653#ifdef DEVICE_POLLING 2654 int rxcycles; 2655#endif /* DEVICE_POLLING */ 2656 struct task bge_intr_task; 2657 struct taskqueue *bge_tq; 2658}; 2659 2660#define BGE_LOCK_INIT(_sc, _name) \ 2661 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 2662#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx) 2663#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED) 2664#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx) 2665#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx) |