if_ti.c (71999) | if_ti.c (72084) |
---|---|
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 71999 2001-02-04 13:13:25Z phk $ | 32 * $FreeBSD: head/sys/dev/ti/if_ti.c 72084 2001-02-06 10:12:15Z phk $ |
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 71999 2001-02-04 13:13:25Z phk $"; | 128 "$FreeBSD: head/sys/dev/ti/if_ti.c 72084 2001-02-06 10:12:15Z phk $"; |
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, --- 939 unchanged lines hidden (view full) --- 1076 while (SLIST_FIRST(&sc->ti_mc_listhead) != NULL) { 1077 mc = SLIST_FIRST(&sc->ti_mc_listhead); 1078 ti_del_mcast(sc, &mc->mc_addr); 1079 SLIST_REMOVE_HEAD(&sc->ti_mc_listhead, mc_entries); 1080 free(mc, M_DEVBUF); 1081 } 1082 1083 /* Now program new ones. */ | 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, --- 939 unchanged lines hidden (view full) --- 1076 while (SLIST_FIRST(&sc->ti_mc_listhead) != NULL) { 1077 mc = SLIST_FIRST(&sc->ti_mc_listhead); 1078 ti_del_mcast(sc, &mc->mc_addr); 1079 SLIST_REMOVE_HEAD(&sc->ti_mc_listhead, mc_entries); 1080 free(mc, M_DEVBUF); 1081 } 1082 1083 /* Now program new ones. */ |
1084 LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { | 1084 TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { |
1085 if (ifma->ifma_addr->sa_family != AF_LINK) 1086 continue; 1087 mc = malloc(sizeof(struct ti_mc_entry), M_DEVBUF, M_NOWAIT); 1088 bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr), 1089 (char *)&mc->mc_addr, ETHER_ADDR_LEN); 1090 SLIST_INSERT_HEAD(&sc->ti_mc_listhead, mc, mc_entries); 1091 ti_add_mcast(sc, &mc->mc_addr); 1092 } --- 1413 unchanged lines hidden --- | 1085 if (ifma->ifma_addr->sa_family != AF_LINK) 1086 continue; 1087 mc = malloc(sizeof(struct ti_mc_entry), M_DEVBUF, M_NOWAIT); 1088 bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr), 1089 (char *)&mc->mc_addr, ETHER_ADDR_LEN); 1090 SLIST_INSERT_HEAD(&sc->ti_mc_listhead, mc, mc_entries); 1091 ti_add_mcast(sc, &mc->mc_addr); 1092 } --- 1413 unchanged lines hidden --- |