Deleted Added
full compact
if_wb.c (41502) if_wb.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_wb.c,v 1.30 1998/11/29 06:45:16 wpaul Exp $
32 * $Id: if_wb.c,v 1.1 1998/12/04 18:01:21 wpaul Exp $
33 */
34
35/*
36 * Winbond fast ethernet PCI NIC driver
37 *
38 * Supports various cheap network adapters based on the Winbond W89C840F
39 * fast ethernet controller chip. This includes adapters manufactured by
40 * Winbond itself and some made by Linksys.

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

116#define WB_USEIOSPACE
117
118/* #define WB_BACKGROUND_AUTONEG */
119
120#include <pci/if_wbreg.h>
121
122#ifndef lint
123static char rcsid[] =
33 */
34
35/*
36 * Winbond fast ethernet PCI NIC driver
37 *
38 * Supports various cheap network adapters based on the Winbond W89C840F
39 * fast ethernet controller chip. This includes adapters manufactured by
40 * Winbond itself and some made by Linksys.

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

116#define WB_USEIOSPACE
117
118/* #define WB_BACKGROUND_AUTONEG */
119
120#include <pci/if_wbreg.h>
121
122#ifndef lint
123static char rcsid[] =
124 "$Id: if_wb.c,v 1.30 1998/11/29 06:45:16 wpaul Exp $";
124 "$Id: if_wb.c,v 1.1 1998/12/04 18:01:21 wpaul Exp $";
125#endif
126
127/*
128 * Various supported device vendors/types and their names.
129 */
130static struct wb_type wb_devs[] = {
131 { WB_VENDORID, WB_DEVICEID_840F,
132 "Winbond W89C840F 10/100BaseTX" },

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

1747 * to him.
1748 */
1749 if (ifp->if_bpf)
1750 bpf_mtap(ifp, cur_tx->wb_mbuf);
1751#endif
1752 }
1753
1754 /*
125#endif
126
127/*
128 * Various supported device vendors/types and their names.
129 */
130static struct wb_type wb_devs[] = {
131 { WB_VENDORID, WB_DEVICEID_840F,
132 "Winbond W89C840F 10/100BaseTX" },

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

1747 * to him.
1748 */
1749 if (ifp->if_bpf)
1750 bpf_mtap(ifp, cur_tx->wb_mbuf);
1751#endif
1752 }
1753
1754 /*
1755 * If there are no packets queued, bail.
1756 */
1757 if (cur_tx == NULL)
1758 return;
1759
1760 /*
1755 * Place the request for the upload interrupt
1756 * in the last descriptor in the chain. This way, if
1757 * we're chaining several packets at once, we'll only
1758 * get an interupt once for the whole chain rather than
1759 * once for each packet.
1760 */
1761 WB_TXCTL(cur_tx) |= WB_TXCTL_FINT;
1762 sc->wb_cdata.wb_tx_tail = cur_tx;

--- 351 unchanged lines hidden ---
1761 * Place the request for the upload interrupt
1762 * in the last descriptor in the chain. This way, if
1763 * we're chaining several packets at once, we'll only
1764 * get an interupt once for the whole chain rather than
1765 * once for each packet.
1766 */
1767 WB_TXCTL(cur_tx) |= WB_TXCTL_FINT;
1768 sc->wb_cdata.wb_tx_tail = cur_tx;

--- 351 unchanged lines hidden ---