if_ti.c (77058) | if_ti.c (79472) |
---|---|
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/dev/ti/if_ti.c 77058 2001-05-23 19:25:14Z phk $ | 32 * $FreeBSD: head/sys/dev/ti/if_ti.c 79472 2001-07-09 17:58:42Z wpaul $ |
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> --- 79 unchanged lines hidden (view full) --- 120#include <pci/if_tireg.h> 121#include <pci/ti_fw.h> 122#include <pci/ti_fw2.h> 123 124#define TI_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP | CSUM_IP_FRAGS) 125 126#if !defined(lint) 127static 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> --- 79 unchanged lines hidden (view full) --- 120#include <pci/if_tireg.h> 121#include <pci/ti_fw.h> 122#include <pci/ti_fw2.h> 123 124#define TI_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP | CSUM_IP_FRAGS) 125 126#if !defined(lint) 127static const char rcsid[] = |
128 "$FreeBSD: head/sys/dev/ti/if_ti.c 77058 2001-05-23 19:25:14Z phk $"; | 128 "$FreeBSD: head/sys/dev/ti/if_ti.c 79472 2001-07-09 17:58:42Z wpaul $"; |
129#endif 130 131/* 132 * Various supported device vendors/types and their names. 133 */ 134 135static struct ti_type ti_devs[] = { 136 { ALT_VENDORID, ALT_DEVICEID_ACENIC, --- 1340 unchanged lines hidden (view full) --- 1477 1478 mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); 1479 TI_LOCK(sc); 1480 1481 /* 1482 * Map control/status registers. 1483 */ 1484 pci_enable_busmaster(dev); | 129#endif 130 131/* 132 * Various supported device vendors/types and their names. 133 */ 134 135static struct ti_type ti_devs[] = { 136 { ALT_VENDORID, ALT_DEVICEID_ACENIC, --- 1340 unchanged lines hidden (view full) --- 1477 1478 mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); 1479 TI_LOCK(sc); 1480 1481 /* 1482 * Map control/status registers. 1483 */ 1484 pci_enable_busmaster(dev); |
1485 pci_enable_io(dev, PCIM_CMD_MEMEN); | 1485 pci_enable_io(dev, SYS_RES_MEMORY); |
1486 command = pci_read_config(dev, PCIR_COMMAND, 4); 1487 1488 if (!(command & PCIM_CMD_MEMEN)) { 1489 printf("ti%d: failed to enable memory mapping!\n", unit); 1490 error = ENXIO; 1491 goto fail; 1492 } 1493 --- 1011 unchanged lines hidden --- | 1486 command = pci_read_config(dev, PCIR_COMMAND, 4); 1487 1488 if (!(command & PCIM_CMD_MEMEN)) { 1489 printf("ti%d: failed to enable memory mapping!\n", unit); 1490 error = ENXIO; 1491 goto fail; 1492 } 1493 --- 1011 unchanged lines hidden --- |