if_bgereg.h (154519) | if_bgereg.h (155180) |
---|---|
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 154519 2006-01-18 14:31:21Z glebius $ | 33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 155180 2006-02-01 14:26:35Z 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 --- 2374 unchanged lines hidden (view full) --- 2416 u_int32_t bge_rx_coal_ticks; 2417 u_int32_t bge_tx_coal_ticks; 2418 u_int32_t bge_tx_prodidx; 2419 u_int32_t bge_rx_max_coal_bds; 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; | 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 --- 2374 unchanged lines hidden (view full) --- 2416 u_int32_t bge_rx_coal_ticks; 2417 u_int32_t bge_tx_coal_ticks; 2418 u_int32_t bge_tx_prodidx; 2419 u_int32_t bge_rx_max_coal_bds; 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; | 2424 int bge_link; /* link state */ 2425 int bge_link_evt; /* pending link event */ |
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; 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) | 2426 struct callout bge_stat_ch; 2427 char *bge_vpd_prodname; 2428 char *bge_vpd_readonly; 2429 u_long bge_rx_discards; 2430 u_long bge_tx_discards; 2431 u_long bge_tx_collisions; 2432#ifdef DEVICE_POLLING 2433 int rxcycles; 2434#endif /* DEVICE_POLLING */ 2435}; 2436 2437#define BGE_LOCK_INIT(_sc, _name) \ 2438 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 2439#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx) 2440#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED) 2441#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx) 2442#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx) |