if_sk.c (51473) | if_sk.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/sk/if_sk.c 51473 1999-09-20 19:06:45Z wpaul $ | 32 * $FreeBSD: head/sys/dev/sk/if_sk.c 51533 1999-09-22 06:08:11Z wpaul $ |
33 */ 34 35/* 36 * SysKonnect SK-NET gigabit ethernet driver for FreeBSD. Supports 37 * the SK-984x series adapters, both single port and dual port. 38 * References: 39 * The XaQti XMAC II datasheet, http://www.xaqti.com 40 * The SysKonnect GEnesis manual, http://www.syskonnect.com --- 56 unchanged lines hidden (view full) --- 97 98#define SK_USEIOSPACE 99 100#include <pci/if_skreg.h> 101#include <pci/xmaciireg.h> 102 103#ifndef lint 104static const char rcsid[] = | 33 */ 34 35/* 36 * SysKonnect SK-NET gigabit ethernet driver for FreeBSD. Supports 37 * the SK-984x series adapters, both single port and dual port. 38 * References: 39 * The XaQti XMAC II datasheet, http://www.xaqti.com 40 * The SysKonnect GEnesis manual, http://www.syskonnect.com --- 56 unchanged lines hidden (view full) --- 97 98#define SK_USEIOSPACE 99 100#include <pci/if_skreg.h> 101#include <pci/xmaciireg.h> 102 103#ifndef lint 104static const char rcsid[] = |
105 "$FreeBSD: head/sys/dev/sk/if_sk.c 51473 1999-09-20 19:06:45Z wpaul $"; | 105 "$FreeBSD: head/sys/dev/sk/if_sk.c 51533 1999-09-22 06:08:11Z wpaul $"; |
106#endif 107 108static struct sk_type sk_devs[] = { 109 { SK_VENDORID, SK_DEVICEID_GE, "SysKonnect Gigabit Ethernet" }, 110 { 0, 0, NULL } 111}; 112 113static int sk_probe __P((device_t)); --- 62 unchanged lines hidden (view full) --- 176static driver_t sk_driver = { 177 "skc", 178 sk_methods, 179 sizeof(struct sk_softc) 180}; 181 182static devclass_t sk_devclass; 183 | 106#endif 107 108static struct sk_type sk_devs[] = { 109 { SK_VENDORID, SK_DEVICEID_GE, "SysKonnect Gigabit Ethernet" }, 110 { 0, 0, NULL } 111}; 112 113static int sk_probe __P((device_t)); --- 62 unchanged lines hidden (view full) --- 176static driver_t sk_driver = { 177 "skc", 178 sk_methods, 179 sizeof(struct sk_softc) 180}; 181 182static devclass_t sk_devclass; 183 |
184DRIVER_MODULE(skc, pci, sk_driver, sk_devclass, 0, 0); | 184DRIVER_MODULE(if_sk, pci, sk_driver, sk_devclass, 0, 0); |
185 186#define SK_SETBIT(sc, reg, x) \ 187 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) 188 189#define SK_CLRBIT(sc, reg, x) \ 190 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) 191 192#define SK_WIN_SETBIT_4(sc, reg, x) \ --- 1795 unchanged lines hidden --- | 185 186#define SK_SETBIT(sc, reg, x) \ 187 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) 188 189#define SK_CLRBIT(sc, reg, x) \ 190 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) 191 192#define SK_WIN_SETBIT_4(sc, reg, x) \ --- 1795 unchanged lines hidden --- |