if_sf.c (51473) | if_sf.c (51533) |
---|---|
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 51473 1999-09-20 19:06:45Z wpaul $ | 32 * $FreeBSD: head/sys/dev/sf/if_sf.c 51533 1999-09-22 06:08: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 51473 1999-09-20 19:06:45Z wpaul $"; | 126 "$FreeBSD: head/sys/dev/sf/if_sf.c 51533 1999-09-22 06:08: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 --- 68 unchanged lines hidden (view full) --- 203static driver_t sf_driver = { 204 "sf", 205 sf_methods, 206 sizeof(struct sf_softc), 207}; 208 209static devclass_t sf_devclass; 210 | 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 --- 68 unchanged lines hidden (view full) --- 203static driver_t sf_driver = { 204 "sf", 205 sf_methods, 206 sizeof(struct sf_softc), 207}; 208 209static devclass_t sf_devclass; 210 |
211DRIVER_MODULE(sf, pci, sf_driver, sf_devclass, 0, 0); | 211DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0); |
212DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0); 213 214#define SF_SETBIT(sc, reg, x) \ 215 csr_write_4(sc, reg, csr_read_4(sc, reg) | x) 216 217#define SF_CLRBIT(sc, reg, x) \ 218 csr_write_4(sc, reg, csr_read_4(sc, reg) & ~x) 219 --- 1254 unchanged lines hidden --- | 212DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0); 213 214#define SF_SETBIT(sc, reg, x) \ 215 csr_write_4(sc, reg, csr_read_4(sc, reg) | x) 216 217#define SF_CLRBIT(sc, reg, x) \ 218 csr_write_4(sc, reg, csr_read_4(sc, reg) & ~x) 219 --- 1254 unchanged lines hidden --- |