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 51352 1999-09-17 18:04:14Z 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> --- 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 "$FreeBSD: head/sys/dev/ti/if_ti.c 51352 1999-09-17 18:04:14Z wpaul $"; |
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, --- 1280 unchanged lines hidden (view full) --- 1423 /* 1424 * Set up the mini ring. Only activated on the 1425 * Tigon 2 but the slot in the config block is 1426 * still there on the Tigon 1. 1427 */ 1428 rcb = &sc->ti_rdata->ti_info.ti_mini_rx_rcb; 1429 TI_HOSTADDR(rcb->ti_hostaddr) = 1430 vtophys(&sc->ti_rdata->ti_rx_mini_ring); |
1431 rcb->ti_max_len = MHLEN - ETHER_ALIGN; |
1432 if (sc->ti_hwrev == TI_HWREV_TIGON) 1433 rcb->ti_flags = TI_RCB_FLAG_RING_DISABLED; 1434 else 1435 rcb->ti_flags = 0; 1436#ifdef TI_CSUM_OFFLOAD 1437 rcb->ti_flags |= TI_RCB_FLAG_TCP_UDP_CKSUM|TI_RCB_FLAG_IP_CKSUM; 1438#endif 1439#if NVLAN > 0 --- 1078 unchanged lines hidden --- |