Deleted Added
full compact
if_xl.c (41239) if_xl.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_xl.c,v 1.16 1998/10/22 16:46:26 wpaul Exp $
32 * $Id: if_xl.c,v 1.17 1998/11/18 16:46:53 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#ifndef lint
149static 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#ifndef lint
149static char rcsid[] =
150 "$Id: if_xl.c,v 1.16 1998/10/22 16:46:26 wpaul Exp $";
150 "$Id: if_xl.c,v 1.17 1998/11/18 16:46:53 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" },

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

2256 * to him.
2257 */
2258 if (ifp->if_bpf)
2259 bpf_mtap(ifp, cur_tx->xl_mbuf);
2260#endif
2261 }
2262
2263 /*
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" },

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

2256 * to him.
2257 */
2258 if (ifp->if_bpf)
2259 bpf_mtap(ifp, cur_tx->xl_mbuf);
2260#endif
2261 }
2262
2263 /*
2264 * If there are no packets queued, bail.
2265 */
2266 if (cur_tx == NULL)
2267 return;
2268
2269 /*
2264 * Place the request for the upload interrupt
2265 * in the last descriptor in the chain. This way, if
2266 * we're chaining several packets at once, we'll only
2267 * get an interupt once for the whole chain rather than
2268 * once for each packet.
2269 */
2270 cur_tx->xl_ptr->xl_status |= XL_TXSTAT_DL_INTR;
2271

--- 501 unchanged lines hidden ---
2270 * Place the request for the upload interrupt
2271 * in the last descriptor in the chain. This way, if
2272 * we're chaining several packets at once, we'll only
2273 * get an interupt once for the whole chain rather than
2274 * once for each packet.
2275 */
2276 cur_tx->xl_ptr->xl_status |= XL_TXSTAT_DL_INTR;
2277

--- 501 unchanged lines hidden ---