if_bgereg.h (154368) | if_bgereg.h (154492) |
---|---|
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 154368 2006-01-14 17:42:22Z scottl $ | 33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 154492 2006-01-17 23:01:58Z oleg $ |
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 --- 2378 unchanged lines hidden (view full) --- 2420 u_int32_t bge_tx_max_coal_bds; 2421 u_int32_t bge_tx_buf_ratio; 2422 int bge_if_flags; 2423 int bge_txcnt; 2424 int bge_link; 2425 struct callout bge_stat_ch; 2426 char *bge_vpd_prodname; 2427 char *bge_vpd_readonly; | 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 --- 2378 unchanged lines hidden (view full) --- 2420 u_int32_t bge_tx_max_coal_bds; 2421 u_int32_t bge_tx_buf_ratio; 2422 int bge_if_flags; 2423 int bge_txcnt; 2424 int bge_link; 2425 struct callout bge_stat_ch; 2426 char *bge_vpd_prodname; 2427 char *bge_vpd_readonly; |
2428 u_long bge_rx_discards; 2429 u_long bge_tx_discards; 2430 u_long bge_tx_collisions; |
|
2428#ifdef DEVICE_POLLING 2429 int rxcycles; 2430#endif /* DEVICE_POLLING */ 2431}; 2432 2433#define BGE_LOCK_INIT(_sc, _name) \ 2434 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 2435#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx) 2436#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED) 2437#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx) 2438#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx) | 2431#ifdef DEVICE_POLLING 2432 int rxcycles; 2433#endif /* DEVICE_POLLING */ 2434}; 2435 2436#define BGE_LOCK_INIT(_sc, _name) \ 2437 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 2438#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx) 2439#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED) 2440#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx) 2441#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx) |