if_rl.c (51453) | if_rl.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/pci/if_rl.c 51453 1999-09-20 08:14:39Z wpaul $ | 32 * $FreeBSD: head/sys/pci/if_rl.c 51455 1999-09-20 08:47: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 51453 1999-09-20 08:14:39Z wpaul $"; | 139 "$FreeBSD: head/sys/pci/if_rl.c 51455 1999-09-20 08:47: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" }, --- 68 unchanged lines hidden (view full) --- 216 DEVMETHOD(miibus_readreg, rl_miibus_readreg), 217 DEVMETHOD(miibus_writereg, rl_miibus_writereg), 218 DEVMETHOD(miibus_statchg, rl_miibus_statchg), 219 220 { 0, 0 } 221}; 222 223static driver_t rl_driver = { | 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" }, --- 68 unchanged lines hidden (view full) --- 216 DEVMETHOD(miibus_readreg, rl_miibus_readreg), 217 DEVMETHOD(miibus_writereg, rl_miibus_writereg), 218 DEVMETHOD(miibus_statchg, rl_miibus_statchg), 219 220 { 0, 0 } 221}; 222 223static driver_t rl_driver = { |
224 "if_rl", | 224 "rl", |
225 rl_methods, 226 sizeof(struct rl_softc) 227}; 228 229static devclass_t rl_devclass; 230 231DRIVER_MODULE(if_rl, pci, rl_driver, rl_devclass, 0, 0); 232DRIVER_MODULE(miibus, if_rl, miibus_driver, miibus_devclass, 0, 0); --- 1419 unchanged lines hidden --- | 225 rl_methods, 226 sizeof(struct rl_softc) 227}; 228 229static devclass_t rl_devclass; 230 231DRIVER_MODULE(if_rl, pci, rl_driver, rl_devclass, 0, 0); 232DRIVER_MODULE(miibus, if_rl, miibus_driver, miibus_devclass, 0, 0); --- 1419 unchanged lines hidden --- |