Deleted Added
full compact
if_vr.c (41502) if_vr.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_vr.c,v 1.13 1998/12/01 22:08:11 wpaul Exp $
32 * $Id: if_vr.c,v 1.1 1998/12/04 18:01:21 wpaul Exp $
33 */
34
35/*
36 * VIA Rhine fast ethernet PCI NIC driver
37 *
38 * Supports various network adapters based on the VIA Rhine
39 * and Rhine II PCI controllers, including the D-Link DFE530TX.
40 * Datasheets are available at http://www.via.com.tw.

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

92#define VR_USEIOSPACE
93
94/* #define VR_BACKGROUND_AUTONEG */
95
96#include <pci/if_vrreg.h>
97
98#ifndef lint
99static char rcsid[] =
33 */
34
35/*
36 * VIA Rhine fast ethernet PCI NIC driver
37 *
38 * Supports various network adapters based on the VIA Rhine
39 * and Rhine II PCI controllers, including the D-Link DFE530TX.
40 * Datasheets are available at http://www.via.com.tw.

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

92#define VR_USEIOSPACE
93
94/* #define VR_BACKGROUND_AUTONEG */
95
96#include <pci/if_vrreg.h>
97
98#ifndef lint
99static char rcsid[] =
100 "$Id: if_vr.c,v 1.13 1998/12/01 22:08:11 wpaul Exp $";
100 "$Id: if_vr.c,v 1.1 1998/12/04 18:01:21 wpaul Exp $";
101#endif
102
103/*
104 * Various supported device vendors/types and their names.
105 */
106static struct vr_type vr_devs[] = {
107 { VIA_VENDORID, VIA_DEVICEID_RHINE,
108 "VIA VT3043 Rhine I 10/100BaseTX" },

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

1622 * to him.
1623 */
1624 if (ifp->if_bpf)
1625 bpf_mtap(ifp, cur_tx->vr_mbuf);
1626#endif
1627 }
1628
1629 /*
101#endif
102
103/*
104 * Various supported device vendors/types and their names.
105 */
106static struct vr_type vr_devs[] = {
107 { VIA_VENDORID, VIA_DEVICEID_RHINE,
108 "VIA VT3043 Rhine I 10/100BaseTX" },

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

1622 * to him.
1623 */
1624 if (ifp->if_bpf)
1625 bpf_mtap(ifp, cur_tx->vr_mbuf);
1626#endif
1627 }
1628
1629 /*
1630 * If there are no frames queued, bail.
1631 */
1632 if (cur_tx == NULL)
1633 return;
1634
1635 /*
1630 * Place the request for the upload interrupt
1631 * in the last descriptor in the chain. This way, if
1632 * we're chaining several packets at once, we'll only
1633 * get an interupt once for the whole chain rather than
1634 * once for each packet.
1635 */
1636 cur_tx->vr_ptr->vr_ctl |= VR_TXCTL_FINT;
1637 sc->vr_cdata.vr_tx_tail = cur_tx;

--- 325 unchanged lines hidden ---
1636 * Place the request for the upload interrupt
1637 * in the last descriptor in the chain. This way, if
1638 * we're chaining several packets at once, we'll only
1639 * get an interupt once for the whole chain rather than
1640 * once for each packet.
1641 */
1642 cur_tx->vr_ptr->vr_ctl |= VR_TXCTL_FINT;
1643 sc->vr_cdata.vr_tx_tail = cur_tx;

--- 325 unchanged lines hidden ---