Deleted Added
full compact
if_bgereg.h (121810) if_bgereg.h (122497)
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 121810 2003-10-31 16:25:39Z wpaul $
33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 122497 2003-11-11 17:57:03Z sam $
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

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

2254struct bge_bcom_hack {
2255 int reg;
2256 int val;
2257};
2258
2259struct bge_softc {
2260 struct arpcom arpcom; /* interface info */
2261 device_t bge_dev;
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

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

2254struct bge_bcom_hack {
2255 int reg;
2256 int val;
2257};
2258
2259struct bge_softc {
2260 struct arpcom arpcom; /* interface info */
2261 device_t bge_dev;
2262 struct mtx bge_mtx;
2262 device_t bge_miibus;
2263 bus_space_handle_t bge_bhandle;
2264 vm_offset_t bge_vhandle;
2265 bus_space_tag_t bge_btag;
2266 void *bge_intrhand;
2267 struct resource *bge_irq;
2268 struct resource *bge_res;
2269 struct ifmedia bge_ifmedia; /* TBI media info */

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

2289 u_int32_t bge_rx_coal_ticks;
2290 u_int32_t bge_tx_coal_ticks;
2291 u_int32_t bge_rx_max_coal_bds;
2292 u_int32_t bge_tx_max_coal_bds;
2293 u_int32_t bge_tx_buf_ratio;
2294 int bge_if_flags;
2295 int bge_txcnt;
2296 int bge_link;
2263 device_t bge_miibus;
2264 bus_space_handle_t bge_bhandle;
2265 vm_offset_t bge_vhandle;
2266 bus_space_tag_t bge_btag;
2267 void *bge_intrhand;
2268 struct resource *bge_irq;
2269 struct resource *bge_res;
2270 struct ifmedia bge_ifmedia; /* TBI media info */

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

2290 u_int32_t bge_rx_coal_ticks;
2291 u_int32_t bge_tx_coal_ticks;
2292 u_int32_t bge_rx_max_coal_bds;
2293 u_int32_t bge_tx_max_coal_bds;
2294 u_int32_t bge_tx_buf_ratio;
2295 int bge_if_flags;
2296 int bge_txcnt;
2297 int bge_link;
2297 struct callout_handle bge_stat_ch;
2298 struct callout bge_stat_ch;
2298 char *bge_vpd_prodname;
2299 char *bge_vpd_readonly;
2300};
2299 char *bge_vpd_prodname;
2300 char *bge_vpd_readonly;
2301};
2302
2303#define BGE_LOCK_INIT(_sc, _name) \
2304 mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
2305#define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx)
2306#define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED)
2307#define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx)
2308#define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx)