Deleted Added
full compact
if_xl.c (103779) if_xl.c (104324)
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/pci/if_xl.c 103779 2002-09-22 04:48:30Z silby $
32 * $FreeBSD: head/sys/pci/if_xl.c 104324 2002-10-01 22:27:03Z phk $
33 */
34
35/*
36 * 3Com 3c90x Etherlink XL PCI NIC driver
37 *
38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI
39 * bus-master chips (3c90x cards and embedded controllers) including
40 * the following:

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

147 * might not work on some devices.
148 */
149#define XL_USEIOSPACE
150
151#include <pci/if_xlreg.h>
152
153#if !defined(lint)
154static const char rcsid[] =
33 */
34
35/*
36 * 3Com 3c90x Etherlink XL PCI NIC driver
37 *
38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI
39 * bus-master chips (3c90x cards and embedded controllers) including
40 * the following:

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

147 * might not work on some devices.
148 */
149#define XL_USEIOSPACE
150
151#include <pci/if_xlreg.h>
152
153#if !defined(lint)
154static const char rcsid[] =
155 "$FreeBSD: head/sys/pci/if_xl.c 103779 2002-09-22 04:48:30Z silby $";
155 "$FreeBSD: head/sys/pci/if_xl.c 104324 2002-10-01 22:27:03Z phk $";
156#endif
157
158#define XL905B_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
159
160/*
161 * Various supported device vendors/types and their names.
162 */
163static struct xl_type xl_devs[] = {

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

2713 */
2714 XL_SEL_WIN(3);
2715 if (sc->xl_xcvr == XL_XCVR_COAX)
2716 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_COAX_START);
2717 else
2718 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_COAX_STOP);
2719
2720 /* increase packet size to allow reception of 802.1q or ISL packets */
156#endif
157
158#define XL905B_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
159
160/*
161 * Various supported device vendors/types and their names.
162 */
163static struct xl_type xl_devs[] = {

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

2713 */
2714 XL_SEL_WIN(3);
2715 if (sc->xl_xcvr == XL_XCVR_COAX)
2716 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_COAX_START);
2717 else
2718 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_COAX_STOP);
2719
2720 /* increase packet size to allow reception of 802.1q or ISL packets */
2721 if (sc->xl_type == XL_TYPE_905B)
2721 if (sc->xl_type == XL_TYPE_905B)
2722 CSR_WRITE_2(sc, XL_W3_MAXPKTSIZE, XL_PACKET_SIZE);
2723 /* Clear out the stats counters. */
2724 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_STATS_DISABLE);
2725 sc->xl_stats_no_timeout = 1;
2726 xl_stats_update(sc);
2727 sc->xl_stats_no_timeout = 0;
2728 XL_SEL_WIN(4);
2729 CSR_WRITE_2(sc, XL_W4_NET_DIAG, XL_NETDIAG_UPPER_BYTES_ENABLE);

--- 378 unchanged lines hidden ---
2722 CSR_WRITE_2(sc, XL_W3_MAXPKTSIZE, XL_PACKET_SIZE);
2723 /* Clear out the stats counters. */
2724 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_STATS_DISABLE);
2725 sc->xl_stats_no_timeout = 1;
2726 xl_stats_update(sc);
2727 sc->xl_stats_no_timeout = 0;
2728 XL_SEL_WIN(4);
2729 CSR_WRITE_2(sc, XL_W4_NET_DIAG, XL_NETDIAG_UPPER_BYTES_ENABLE);

--- 378 unchanged lines hidden ---