Deleted Added
full compact
if_vr.c (51455) if_vr.c (51473)
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 * $FreeBSD: head/sys/dev/vr/if_vr.c 51455 1999-09-20 08:47:11Z wpaul $
32 * $FreeBSD: head/sys/dev/vr/if_vr.c 51473 1999-09-20 19:06:45Z wpaul $
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.

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

104
105#include <pci/if_vrreg.h>
106
107/* "controller miibus0" required. See GENERIC if you get errors here. */
108#include "miibus_if.h"
109
110#ifndef lint
111static 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.

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

104
105#include <pci/if_vrreg.h>
106
107/* "controller miibus0" required. See GENERIC if you get errors here. */
108#include "miibus_if.h"
109
110#ifndef lint
111static const char rcsid[] =
112 "$FreeBSD: head/sys/dev/vr/if_vr.c 51455 1999-09-20 08:47:11Z wpaul $";
112 "$FreeBSD: head/sys/dev/vr/if_vr.c 51473 1999-09-20 19:06:45Z wpaul $";
113#endif
114
115/*
116 * Various supported device vendors/types and their names.
117 */
118static struct vr_type vr_devs[] = {
119 { VIA_VENDORID, VIA_DEVICEID_RHINE,
120 "VIA VT3043 Rhine I 10/100BaseTX" },

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

197static driver_t vr_driver = {
198 "vr",
199 vr_methods,
200 sizeof(struct vr_softc)
201};
202
203static devclass_t vr_devclass;
204
113#endif
114
115/*
116 * Various supported device vendors/types and their names.
117 */
118static struct vr_type vr_devs[] = {
119 { VIA_VENDORID, VIA_DEVICEID_RHINE,
120 "VIA VT3043 Rhine I 10/100BaseTX" },

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

197static driver_t vr_driver = {
198 "vr",
199 vr_methods,
200 sizeof(struct vr_softc)
201};
202
203static devclass_t vr_devclass;
204
205DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0);
206DRIVER_MODULE(miibus, if_vr, miibus_driver, miibus_devclass, 0, 0);
205DRIVER_MODULE(vr, pci, vr_driver, vr_devclass, 0, 0);
206DRIVER_MODULE(miibus, vr, miibus_driver, miibus_devclass, 0, 0);
207
208#define VR_SETBIT(sc, reg, x) \
209 CSR_WRITE_1(sc, reg, \
210 CSR_READ_1(sc, reg) | x)
211
212#define VR_CLRBIT(sc, reg, x) \
213 CSR_WRITE_1(sc, reg, \
214 CSR_READ_1(sc, reg) & ~x)

--- 1457 unchanged lines hidden ---
207
208#define VR_SETBIT(sc, reg, x) \
209 CSR_WRITE_1(sc, reg, \
210 CSR_READ_1(sc, reg) | x)
211
212#define VR_CLRBIT(sc, reg, x) \
213 CSR_WRITE_1(sc, reg, \
214 CSR_READ_1(sc, reg) & ~x)

--- 1457 unchanged lines hidden ---