if_xl.c (51583) | if_xl.c (51657) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/pci/if_xl.c 51583 1999-09-23 03:32:57Z wpaul $ | 32 * $FreeBSD: head/sys/pci/if_xl.c 51657 1999-09-25 17:29:02Z wpaul $ |
33 */ 34 35/* 36 * 3Com 3c90x Etherlink XL PCI NIC driver 37 * 38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 39 * bus-master chips (3c90x cards and embedded controllers) including 40 * the following: --- 101 unchanged lines hidden (view full) --- 142 * might not work on some devices. 143 */ 144#define XL_USEIOSPACE 145 146#include <pci/if_xlreg.h> 147 148#if !defined(lint) 149static const char rcsid[] = | 33 */ 34 35/* 36 * 3Com 3c90x Etherlink XL PCI NIC driver 37 * 38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 39 * bus-master chips (3c90x cards and embedded controllers) including 40 * the following: --- 101 unchanged lines hidden (view full) --- 142 * might not work on some devices. 143 */ 144#define XL_USEIOSPACE 145 146#include <pci/if_xlreg.h> 147 148#if !defined(lint) 149static const char rcsid[] = |
150 "$FreeBSD: head/sys/pci/if_xl.c 51583 1999-09-23 03:32:57Z wpaul $"; | 150 "$FreeBSD: head/sys/pci/if_xl.c 51657 1999-09-25 17:29:02Z wpaul $"; |
151#endif 152 153/* 154 * Various supported device vendors/types and their names. 155 */ 156static struct xl_type xl_devs[] = { 157 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT, 158 "3Com 3c900-TPO Etherlink XL" }, --- 1142 unchanged lines hidden (view full) --- 1301 */ 1302 printf("xl%d: Ethernet address: %6D\n", unit, eaddr, ":"); 1303 1304 sc->xl_unit = unit; 1305 callout_handle_init(&sc->xl_stat_ch); 1306 bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); 1307 1308 sc->xl_ldata = contigmalloc(sizeof(struct xl_list_data), M_DEVBUF, | 151#endif 152 153/* 154 * Various supported device vendors/types and their names. 155 */ 156static struct xl_type xl_devs[] = { 157 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT, 158 "3Com 3c900-TPO Etherlink XL" }, --- 1142 unchanged lines hidden (view full) --- 1301 */ 1302 printf("xl%d: Ethernet address: %6D\n", unit, eaddr, ":"); 1303 1304 sc->xl_unit = unit; 1305 callout_handle_init(&sc->xl_stat_ch); 1306 bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); 1307 1308 sc->xl_ldata = contigmalloc(sizeof(struct xl_list_data), M_DEVBUF, |
1309 M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); | 1309 M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); |
1310 1311 if (sc->xl_ldata == NULL) { 1312 printf("xl%d: no memory for list buffers!\n", unit); 1313 bus_teardown_intr(dev, sc->xl_irq, sc->xl_intrhand); 1314 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->xl_irq); 1315 bus_release_resource(dev, XL_RES, XL_RID, sc->xl_res); 1316 error = ENXIO; 1317 goto fail; --- 1524 unchanged lines hidden --- | 1310 1311 if (sc->xl_ldata == NULL) { 1312 printf("xl%d: no memory for list buffers!\n", unit); 1313 bus_teardown_intr(dev, sc->xl_irq, sc->xl_intrhand); 1314 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->xl_irq); 1315 bus_release_resource(dev, XL_RES, XL_RID, sc->xl_res); 1316 error = ENXIO; 1317 goto fail; --- 1524 unchanged lines hidden --- |