Deleted Added
full compact
if_xl.c (42046) if_xl.c (43515)
1/*
2 * Copyright (c) 1997, 1998
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
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 * $Id: if_xl.c,v 1.21 1998/12/14 06:32:57 dillon Exp $
32 * $Id: if_xl.c,v 1.22 1998/12/24 17:50:34 wpaul Exp $
33 */
34
35/*
36 * 3Com 3c90x Etherlink XL PCI NIC driver
37 *
38 * Supports the 3Com "boomerang" and "cyclone" PCI
39 * bus-master chips (3c90x cards and embedded controllers) including
40 * the following:

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

142 * recompile.
143 */
144/* #define XL_BACKGROUND_AUTONEG */
145
146#include <pci/if_xlreg.h>
147
148#if !defined(lint)
149static const char rcsid[] =
33 */
34
35/*
36 * 3Com 3c90x Etherlink XL PCI NIC driver
37 *
38 * Supports the 3Com "boomerang" and "cyclone" PCI
39 * bus-master chips (3c90x cards and embedded controllers) including
40 * the following:

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

142 * recompile.
143 */
144/* #define XL_BACKGROUND_AUTONEG */
145
146#include <pci/if_xlreg.h>
147
148#if !defined(lint)
149static const char rcsid[] =
150 "$Id: if_xl.c,v 1.21 1998/12/14 06:32:57 dillon Exp $";
150 "$Id: if_xl.c,v 1.22 1998/12/24 17:50:34 wpaul Exp $";
151#endif
152
153/*
154 * Various supported device vendors/types and their names.
155 */
156static struct xl_type xl_devs[] = {
157 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT,
158 "3Com 3c900 Etherlink XL 10BaseT" },

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

1457 ifp->if_mtu = ETHERMTU;
1458 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1459 ifp->if_ioctl = xl_ioctl;
1460 ifp->if_output = ether_output;
1461 ifp->if_start = xl_start;
1462 ifp->if_watchdog = xl_watchdog;
1463 ifp->if_init = xl_init;
1464 ifp->if_baudrate = 10000000;
151#endif
152
153/*
154 * Various supported device vendors/types and their names.
155 */
156static struct xl_type xl_devs[] = {
157 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT,
158 "3Com 3c900 Etherlink XL 10BaseT" },

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

1457 ifp->if_mtu = ETHERMTU;
1458 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1459 ifp->if_ioctl = xl_ioctl;
1460 ifp->if_output = ether_output;
1461 ifp->if_start = xl_start;
1462 ifp->if_watchdog = xl_watchdog;
1463 ifp->if_init = xl_init;
1464 ifp->if_baudrate = 10000000;
1465 ifp->if_snd.ifq_maxlen = XL_TX_LIST_CNT - 1;
1465
1466 /*
1467 * Figure out the card type. 3c905B adapters have the
1468 * 'supportsNoTxLength' bit set in the capabilities
1469 * word in the EEPROM.
1470 */
1471 xl_read_eeprom(sc, (caddr_t)&sc->xl_caps, XL_EE_CAPS, 1, 0);
1472 if (sc->xl_caps & XL_CAPS_NO_TXLENGTH)

--- 1305 unchanged lines hidden ---
1466
1467 /*
1468 * Figure out the card type. 3c905B adapters have the
1469 * 'supportsNoTxLength' bit set in the capabilities
1470 * word in the EEPROM.
1471 */
1472 xl_read_eeprom(sc, (caddr_t)&sc->xl_caps, XL_EE_CAPS, 1, 0);
1473 if (sc->xl_caps & XL_CAPS_NO_TXLENGTH)

--- 1305 unchanged lines hidden ---