if_bge.c (178578) | if_bge.c (178588) |
---|---|
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: --- 18 unchanged lines hidden (view full) --- 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 34#include <sys/cdefs.h> | 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: --- 18 unchanged lines hidden (view full) --- 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 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 178578 2008-04-26 10:54:17Z marius $"); | 35__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 178588 2008-04-26 14:13:48Z marius $"); |
36 37/* 38 * Broadcom BCM570x family gigabit ethernet driver for FreeBSD. 39 * 40 * The Broadcom BCM5700 is based on technology originally developed by 41 * Alteon Networks as part of the Tigon I and Tigon II gigabit ethernet 42 * MAC chips. The BCM5700, sometimes refered to as the Tigon III, has 43 * two on-board MIPS R4000 CPUs and can have as much as 16MB of external --- 2191 unchanged lines hidden (view full) --- 2235 2236 /* 2237 * Map control/status registers. 2238 */ 2239 pci_enable_busmaster(dev); 2240 2241 rid = BGE_PCI_BAR0; 2242 sc->bge_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, | 36 37/* 38 * Broadcom BCM570x family gigabit ethernet driver for FreeBSD. 39 * 40 * The Broadcom BCM5700 is based on technology originally developed by 41 * Alteon Networks as part of the Tigon I and Tigon II gigabit ethernet 42 * MAC chips. The BCM5700, sometimes refered to as the Tigon III, has 43 * two on-board MIPS R4000 CPUs and can have as much as 16MB of external --- 2191 unchanged lines hidden (view full) --- 2235 2236 /* 2237 * Map control/status registers. 2238 */ 2239 pci_enable_busmaster(dev); 2240 2241 rid = BGE_PCI_BAR0; 2242 sc->bge_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, |
2243 RF_ACTIVE | PCI_RF_DENSE); | 2243 RF_ACTIVE); |
2244 2245 if (sc->bge_res == NULL) { 2246 device_printf (sc->bge_dev, "couldn't map memory\n"); 2247 error = ENXIO; 2248 goto fail; 2249 } 2250 2251 sc->bge_btag = rman_get_bustag(sc->bge_res); --- 2310 unchanged lines hidden --- | 2244 2245 if (sc->bge_res == NULL) { 2246 device_printf (sc->bge_dev, "couldn't map memory\n"); 2247 error = ENXIO; 2248 goto fail; 2249 } 2250 2251 sc->bge_btag = rman_get_bustag(sc->bge_res); --- 2310 unchanged lines hidden --- |