Deleted Added
full compact
if_ti.c (67405) if_ti.c (68621)
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 67405 2000-10-21 00:13:35Z bmilekic $
32 * $FreeBSD: head/sys/dev/ti/if_ti.c 68621 2000-11-11 23:08:22Z bmilekic $
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 67405 2000-10-21 00:13:35Z bmilekic $";
128 "$FreeBSD: head/sys/dev/ti/if_ti.c 68621 2000-11-11 23:08:22Z bmilekic $";
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,

--- 673 unchanged lines hidden (view full) ---

810 "-- packet dropped!\n", sc->ti_unit);
811 return(ENOBUFS);
812 }
813
814 /* Attach the buffer to the mbuf. */
815 m_new->m_data = (void *) buf;
816 m_new->m_len = m_new->m_pkthdr.len = TI_JUMBO_FRAMELEN;
817 MEXTADD(m_new, buf, TI_JUMBO_FRAMELEN, ti_jfree,
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,

--- 673 unchanged lines hidden (view full) ---

810 "-- packet dropped!\n", sc->ti_unit);
811 return(ENOBUFS);
812 }
813
814 /* Attach the buffer to the mbuf. */
815 m_new->m_data = (void *) buf;
816 m_new->m_len = m_new->m_pkthdr.len = TI_JUMBO_FRAMELEN;
817 MEXTADD(m_new, buf, TI_JUMBO_FRAMELEN, ti_jfree,
818 (struct ti_softc *)sc);
818 (struct ti_softc *)sc, 0, EXT_NET_DRV);
819 } else {
820 m_new = m;
821 m_new->m_data = m_new->m_ext.ext_buf;
822 m_new->m_ext.ext_size = TI_JUMBO_FRAMELEN;
823 }
824
825 m_adj(m_new, ETHER_ALIGN);
826 /* Set up the descriptor. */

--- 1680 unchanged lines hidden ---
819 } else {
820 m_new = m;
821 m_new->m_data = m_new->m_ext.ext_buf;
822 m_new->m_ext.ext_size = TI_JUMBO_FRAMELEN;
823 }
824
825 m_adj(m_new, ETHER_ALIGN);
826 /* Set up the descriptor. */

--- 1680 unchanged lines hidden ---