if_ti.c (49011) | if_ti.c (49035) |
---|---|
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 * $Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $ | 32 * $Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $ |
33 */ 34 35/* 36 * Alteon Networks Tigon PCI gigabit ethernet driver for FreeBSD. 37 * Manuals, sample driver and firmware source kits are available 38 * from http://www.alteon.com/support/openkits. 39 * 40 * Written by Bill Paul <wpaul@ctr.columbia.edu> --- 85 unchanged lines hidden (view full) --- 126#include <pci/ti_fw2.h> 127 128#ifdef M_HWCKSUM 129/*#define TI_CSUM_OFFLOAD*/ 130#endif 131 132#if !defined(lint) 133static const char rcsid[] = | 33 */ 34 35/* 36 * Alteon Networks Tigon PCI gigabit ethernet driver for FreeBSD. 37 * Manuals, sample driver and firmware source kits are available 38 * from http://www.alteon.com/support/openkits. 39 * 40 * Written by Bill Paul <wpaul@ctr.columbia.edu> --- 85 unchanged lines hidden (view full) --- 126#include <pci/ti_fw2.h> 127 128#ifdef M_HWCKSUM 129/*#define TI_CSUM_OFFLOAD*/ 130#endif 131 132#if !defined(lint) 133static const char rcsid[] = |
134 "$Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $"; | 134 "$Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $"; |
135#endif 136 137/* 138 * Various supported device vendors/types and their names. 139 */ 140 141static struct ti_type ti_devs[] = { 142 { ALT_VENDORID, ALT_DEVICEID_ACENIC, --- 1427 unchanged lines hidden (view full) --- 1570 0, ~0, 1, RF_ACTIVE); 1571 1572 if (sc->ti_res == NULL) { 1573 printf ("ti%d: couldn't map memory\n", unit); 1574 error = ENXIO; 1575 goto fail; 1576 } 1577 | 135#endif 136 137/* 138 * Various supported device vendors/types and their names. 139 */ 140 141static struct ti_type ti_devs[] = { 142 { ALT_VENDORID, ALT_DEVICEID_ACENIC, --- 1427 unchanged lines hidden (view full) --- 1570 0, ~0, 1, RF_ACTIVE); 1571 1572 if (sc->ti_res == NULL) { 1573 printf ("ti%d: couldn't map memory\n", unit); 1574 error = ENXIO; 1575 goto fail; 1576 } 1577 |
1578 sc->ti_btag = rman_get_bustag(sc->ti_res); 1579 sc->ti_bhandle = rman_get_bushandle(sc->ti_res); 1580 |
|
1578 /* Allocate interrupt */ 1579 rid = 0; 1580 sc->ti_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, 1581 RF_SHAREABLE | RF_ACTIVE); 1582 1583 if (sc->ti_irq == NULL) { 1584 printf("ti%d: couldn't map interrupt\n", unit); 1585 error = ENXIO; --- 918 unchanged lines hidden --- | 1581 /* Allocate interrupt */ 1582 rid = 0; 1583 sc->ti_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, 1584 RF_SHAREABLE | RF_ACTIVE); 1585 1586 if (sc->ti_irq == NULL) { 1587 printf("ti%d: couldn't map interrupt\n", unit); 1588 error = ENXIO; --- 918 unchanged lines hidden --- |