if_rl.c (51473) | if_rl.c (51533) |
---|---|
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/pci/if_rl.c 51473 1999-09-20 19:06:45Z wpaul $ | 32 * $FreeBSD: head/sys/pci/if_rl.c 51533 1999-09-22 06:08:11Z wpaul $ |
33 */ 34 35/* 36 * RealTek 8129/8139 PCI NIC driver 37 * 38 * Supports several extremely cheap PCI 10/100 adapters based on 39 * the RealTek chipset. Datasheets can be obtained from 40 * www.realtek.com.tw. --- 90 unchanged lines hidden (view full) --- 131 * uniprocessor systems though. 132 */ 133#define RL_USEIOSPACE 134 135#include <pci/if_rlreg.h> 136 137#ifndef lint 138static const char rcsid[] = | 33 */ 34 35/* 36 * RealTek 8129/8139 PCI NIC driver 37 * 38 * Supports several extremely cheap PCI 10/100 adapters based on 39 * the RealTek chipset. Datasheets can be obtained from 40 * www.realtek.com.tw. --- 90 unchanged lines hidden (view full) --- 131 * uniprocessor systems though. 132 */ 133#define RL_USEIOSPACE 134 135#include <pci/if_rlreg.h> 136 137#ifndef lint 138static const char rcsid[] = |
139 "$FreeBSD: head/sys/pci/if_rl.c 51473 1999-09-20 19:06:45Z wpaul $"; | 139 "$FreeBSD: head/sys/pci/if_rl.c 51533 1999-09-22 06:08:11Z wpaul $"; |
140#endif 141 142/* 143 * Various supported device vendors/types and their names. 144 */ 145static struct rl_type rl_devs[] = { 146 { RT_VENDORID, RT_DEVICEID_8129, 147 "RealTek 8129 10/100BaseTX" }, --- 75 unchanged lines hidden (view full) --- 223static driver_t rl_driver = { 224 "rl", 225 rl_methods, 226 sizeof(struct rl_softc) 227}; 228 229static devclass_t rl_devclass; 230 | 140#endif 141 142/* 143 * Various supported device vendors/types and their names. 144 */ 145static struct rl_type rl_devs[] = { 146 { RT_VENDORID, RT_DEVICEID_8129, 147 "RealTek 8129 10/100BaseTX" }, --- 75 unchanged lines hidden (view full) --- 223static driver_t rl_driver = { 224 "rl", 225 rl_methods, 226 sizeof(struct rl_softc) 227}; 228 229static devclass_t rl_devclass; 230 |
231DRIVER_MODULE(rl, pci, rl_driver, rl_devclass, 0, 0); | 231DRIVER_MODULE(if_rl, pci, rl_driver, rl_devclass, 0, 0); |
232DRIVER_MODULE(miibus, rl, miibus_driver, miibus_devclass, 0, 0); 233 234#define EE_SET(x) \ 235 CSR_WRITE_1(sc, RL_EECMD, \ 236 CSR_READ_1(sc, RL_EECMD) | x) 237 238#define EE_CLR(x) \ 239 CSR_WRITE_1(sc, RL_EECMD, \ --- 1412 unchanged lines hidden --- | 232DRIVER_MODULE(miibus, rl, miibus_driver, miibus_devclass, 0, 0); 233 234#define EE_SET(x) \ 235 CSR_WRITE_1(sc, RL_EECMD, \ 236 CSR_READ_1(sc, RL_EECMD) | x) 237 238#define EE_CLR(x) \ 239 CSR_WRITE_1(sc, RL_EECMD, \ --- 1412 unchanged lines hidden --- |