Deleted Added
full compact
if_vr.c (42491) if_vr.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_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $
32 * $Id: if_vr.c,v 1.7 1999/01/10 18:51:49 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 const 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 const char rcsid[] =
100 "$Id: if_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $";
100 "$Id: if_vr.c,v 1.7 1999/01/10 18:51:49 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" },

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

1039 ifp->if_mtu = ETHERMTU;
1040 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1041 ifp->if_ioctl = vr_ioctl;
1042 ifp->if_output = ether_output;
1043 ifp->if_start = vr_start;
1044 ifp->if_watchdog = vr_watchdog;
1045 ifp->if_init = vr_init;
1046 ifp->if_baudrate = 10000000;
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" },

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

1039 ifp->if_mtu = ETHERMTU;
1040 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1041 ifp->if_ioctl = vr_ioctl;
1042 ifp->if_output = ether_output;
1043 ifp->if_start = vr_start;
1044 ifp->if_watchdog = vr_watchdog;
1045 ifp->if_init = vr_init;
1046 ifp->if_baudrate = 10000000;
1047 ifp->if_snd.ifq_maxlen = VR_TX_LIST_CNT - 1;
1047
1048 if (bootverbose)
1049 printf("vr%d: probing for a PHY\n", sc->vr_unit);
1050 for (i = VR_PHYADDR_MIN; i < VR_PHYADDR_MAX + 1; i++) {
1051 if (bootverbose)
1052 printf("vr%d: checking address: %d\n",
1053 sc->vr_unit, i);
1054 sc->vr_phy_addr = i;

--- 903 unchanged lines hidden ---
1048
1049 if (bootverbose)
1050 printf("vr%d: probing for a PHY\n", sc->vr_unit);
1051 for (i = VR_PHYADDR_MIN; i < VR_PHYADDR_MAX + 1; i++) {
1052 if (bootverbose)
1053 printf("vr%d: checking address: %d\n",
1054 sc->vr_unit, i);
1055 sc->vr_phy_addr = i;

--- 903 unchanged lines hidden ---