Deleted Added
full compact
if_sf.c (51453) if_sf.c (51455)
1/*
2 * Copyright (c) 1997, 1998, 1999
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, 1999
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/sf/if_sf.c 51453 1999-09-20 08:14:39Z wpaul $
32 * $FreeBSD: head/sys/dev/sf/if_sf.c 51455 1999-09-20 08:47:11Z wpaul $
33 */
34
35/*
36 * Adaptec AIC-6915 "Starfire" PCI fast ethernet driver for FreeBSD.
37 * Programming manual is available from www.adaptec.com.
38 *
39 * Written by Bill Paul <wpaul@ctr.columbia.edu>
40 * Department of Electical Engineering

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

118#include <pci/pcivar.h>
119
120#define SF_USEIOSPACE
121
122#include <pci/if_sfreg.h>
123
124#ifndef lint
125static const char rcsid[] =
33 */
34
35/*
36 * Adaptec AIC-6915 "Starfire" PCI fast ethernet driver for FreeBSD.
37 * Programming manual is available from www.adaptec.com.
38 *
39 * Written by Bill Paul <wpaul@ctr.columbia.edu>
40 * Department of Electical Engineering

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

118#include <pci/pcivar.h>
119
120#define SF_USEIOSPACE
121
122#include <pci/if_sfreg.h>
123
124#ifndef lint
125static const char rcsid[] =
126 "$FreeBSD: head/sys/dev/sf/if_sf.c 51453 1999-09-20 08:14:39Z wpaul $";
126 "$FreeBSD: head/sys/dev/sf/if_sf.c 51455 1999-09-20 08:47:11Z wpaul $";
127#endif
128
129static struct sf_type sf_devs[] = {
130 { AD_VENDORID, AD_DEVICEID_STARFIRE,
131 "Adaptec AIC-6915 10/100BaseTX" },
132 { 0, 0, NULL }
133};
134

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

196 DEVMETHOD(miibus_readreg, sf_miibus_readreg),
197 DEVMETHOD(miibus_writereg, sf_miibus_writereg),
198 DEVMETHOD(miibus_statchg, sf_miibus_statchg),
199
200 { 0, 0 }
201};
202
203static driver_t sf_driver = {
127#endif
128
129static struct sf_type sf_devs[] = {
130 { AD_VENDORID, AD_DEVICEID_STARFIRE,
131 "Adaptec AIC-6915 10/100BaseTX" },
132 { 0, 0, NULL }
133};
134

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

196 DEVMETHOD(miibus_readreg, sf_miibus_readreg),
197 DEVMETHOD(miibus_writereg, sf_miibus_writereg),
198 DEVMETHOD(miibus_statchg, sf_miibus_statchg),
199
200 { 0, 0 }
201};
202
203static driver_t sf_driver = {
204 "if_sf",
204 "sf",
205 sf_methods,
206 sizeof(struct sf_softc),
207};
208
209static devclass_t sf_devclass;
210
211DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
212DRIVER_MODULE(miibus, if_sf, miibus_driver, miibus_devclass, 0, 0);

--- 1261 unchanged lines hidden ---
205 sf_methods,
206 sizeof(struct sf_softc),
207};
208
209static devclass_t sf_devclass;
210
211DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
212DRIVER_MODULE(miibus, if_sf, miibus_driver, miibus_devclass, 0, 0);

--- 1261 unchanged lines hidden ---