Deleted Added
full compact
if_vr.c (51453) if_vr.c (51455)
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 51453 1999-09-20 08:14:39Z wpaul $
32 * $FreeBSD: head/sys/dev/vr/if_vr.c 51455 1999-09-20 08:47:11Z 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 51453 1999-09-20 08:14:39Z wpaul $";
112 "$FreeBSD: head/sys/dev/vr/if_vr.c 51455 1999-09-20 08:47:11Z 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" },

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

190 DEVMETHOD(miibus_readreg, vr_miibus_readreg),
191 DEVMETHOD(miibus_writereg, vr_miibus_writereg),
192 DEVMETHOD(miibus_statchg, vr_miibus_statchg),
193
194 { 0, 0 }
195};
196
197static driver_t vr_driver = {
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" },

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

190 DEVMETHOD(miibus_readreg, vr_miibus_readreg),
191 DEVMETHOD(miibus_writereg, vr_miibus_writereg),
192 DEVMETHOD(miibus_statchg, vr_miibus_statchg),
193
194 { 0, 0 }
195};
196
197static driver_t vr_driver = {
198 "if_vr",
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);

--- 1465 unchanged lines hidden ---
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);

--- 1465 unchanged lines hidden ---