Deleted Added
full compact
if_tl.c (43235) if_tl.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_tl.c,v 1.24 1998/12/29 15:39:35 wpaul Exp $
32 * $Id: if_tl.c,v 1.25 1999/01/26 15:18:26 wpaul Exp $
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

213#define TL_USEIOSPACE
214
215/* #define TL_BACKGROUND_AUTONEG */
216
217#include <pci/if_tlreg.h>
218
219#if !defined(lint)
220static const char rcsid[] =
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

213#define TL_USEIOSPACE
214
215/* #define TL_BACKGROUND_AUTONEG */
216
217#include <pci/if_tlreg.h>
218
219#if !defined(lint)
220static const char rcsid[] =
221 "$Id: if_tl.c,v 1.24 1998/12/29 15:39:35 wpaul Exp $";
221 "$Id: if_tl.c,v 1.25 1999/01/26 15:18:26 wpaul Exp $";
222#endif
223
224#ifdef TL_DEBUG
225#define EV_TXEOC 2
226#define EV_TXEOF 3
227#define EV_RXEOC 4
228#define EV_RXEOF 5
229#define EV_START_TX 6

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

1713 ifp->if_name = "tl";
1714 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1715 ifp->if_ioctl = tl_ioctl;
1716 ifp->if_output = ether_output;
1717 ifp->if_start = tl_start;
1718 ifp->if_watchdog = tl_watchdog;
1719 ifp->if_init = tl_init;
1720 ifp->if_mtu = ETHERMTU;
222#endif
223
224#ifdef TL_DEBUG
225#define EV_TXEOC 2
226#define EV_TXEOF 3
227#define EV_RXEOC 4
228#define EV_RXEOF 5
229#define EV_START_TX 6

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

1713 ifp->if_name = "tl";
1714 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1715 ifp->if_ioctl = tl_ioctl;
1716 ifp->if_output = ether_output;
1717 ifp->if_start = tl_start;
1718 ifp->if_watchdog = tl_watchdog;
1719 ifp->if_init = tl_init;
1720 ifp->if_mtu = ETHERMTU;
1721 ifp->if_snd.ifq_maxlen = TL_TX_LIST_CNT - 1;
1721 callout_handle_init(&sc->tl_stat_ch);
1722
1723 /* Reset the adapter again. */
1724 tl_softreset(sc, 1);
1725 tl_hardreset(sc);
1726 tl_softreset(sc, 1);
1727
1728 /*

--- 1109 unchanged lines hidden ---
1722 callout_handle_init(&sc->tl_stat_ch);
1723
1724 /* Reset the adapter again. */
1725 tl_softreset(sc, 1);
1726 tl_hardreset(sc);
1727 tl_softreset(sc, 1);
1728
1729 /*

--- 1109 unchanged lines hidden ---