Deleted Added
full compact
if_tl.c (40795) if_tl.c (41526)
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.18 1998/10/08 15:45:36 wpaul Exp $
32 * $Id: if_tl.c,v 1.19 1998/10/31 17:23:48 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#ifndef lint
220static 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#ifndef lint
220static char rcsid[] =
221 "$Id: if_tl.c,v 1.18 1998/10/08 15:45:36 wpaul Exp $";
221 "$Id: if_tl.c,v 1.19 1998/10/31 17:23:48 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

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

2435 */
2436#if NBPFILTER > 0
2437 if (ifp->if_bpf)
2438 bpf_mtap(ifp, cur_tx->tl_mbuf);
2439#endif
2440 }
2441
2442 /*
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

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

2435 */
2436#if NBPFILTER > 0
2437 if (ifp->if_bpf)
2438 bpf_mtap(ifp, cur_tx->tl_mbuf);
2439#endif
2440 }
2441
2442 /*
2443 * If there are no packets queued, bail.
2444 */
2445 if (cur_tx == NULL)
2446 return;
2447
2448 /*
2443 * That's all we can stands, we can't stands no more.
2444 * If there are no other transfers pending, then issue the
2445 * TX GO command to the adapter to start things moving.
2446 * Otherwise, just leave the data in the queue and let
2447 * the EOF/EOC interrupt handler send.
2448 */
2449 if (sc->tl_cdata.tl_tx_head == NULL) {
2450 sc->tl_cdata.tl_tx_head = start_tx;

--- 381 unchanged lines hidden ---
2449 * That's all we can stands, we can't stands no more.
2450 * If there are no other transfers pending, then issue the
2451 * TX GO command to the adapter to start things moving.
2452 * Otherwise, just leave the data in the queue and let
2453 * the EOF/EOC interrupt handler send.
2454 */
2455 if (sc->tl_cdata.tl_tx_head == NULL) {
2456 sc->tl_cdata.tl_tx_head = start_tx;

--- 381 unchanged lines hidden ---