if_rl.c (43062) | if_rl.c (43515) |
---|---|
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 * $Id: if_rl.c,v 1.20 1999/01/16 20:46:24 wpaul Exp wpaul $ | 32 * $Id: if_rl.c,v 1.10 1999/01/22 15:25:04 wpaul Exp $ |
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. --- 81 unchanged lines hidden (view full) --- 122 * uniprocessor systems though. 123 */ 124#define RL_USEIOSPACE 125 126#include <pci/if_rlreg.h> 127 128#ifndef lint 129static 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. --- 81 unchanged lines hidden (view full) --- 122 * uniprocessor systems though. 123 */ 124#define RL_USEIOSPACE 125 126#include <pci/if_rlreg.h> 127 128#ifndef lint 129static const char rcsid[] = |
130 "$Id: if_rl.c,v 1.20 1999/01/16 20:46:24 wpaul Exp wpaul $"; | 130 "$Id: if_rl.c,v 1.10 1999/01/22 15:25:04 wpaul Exp $"; |
131#endif 132 133/* 134 * Various supported device vendors/types and their names. 135 */ 136static struct rl_type rl_devs[] = { 137 { RT_VENDORID, RT_DEVICEID_8129, 138 "RealTek 8129 10/100BaseTX" }, --- 1006 unchanged lines hidden (view full) --- 1145 ifp->if_mtu = ETHERMTU; 1146 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 1147 ifp->if_ioctl = rl_ioctl; 1148 ifp->if_output = ether_output; 1149 ifp->if_start = rl_start; 1150 ifp->if_watchdog = rl_watchdog; 1151 ifp->if_init = rl_init; 1152 ifp->if_baudrate = 10000000; | 131#endif 132 133/* 134 * Various supported device vendors/types and their names. 135 */ 136static struct rl_type rl_devs[] = { 137 { RT_VENDORID, RT_DEVICEID_8129, 138 "RealTek 8129 10/100BaseTX" }, --- 1006 unchanged lines hidden (view full) --- 1145 ifp->if_mtu = ETHERMTU; 1146 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 1147 ifp->if_ioctl = rl_ioctl; 1148 ifp->if_output = ether_output; 1149 ifp->if_start = rl_start; 1150 ifp->if_watchdog = rl_watchdog; 1151 ifp->if_init = rl_init; 1152 ifp->if_baudrate = 10000000; |
1153 ifp->if_snd.ifq_maxlen = RL_TX_LIST_CNT - 1; |
|
1153 1154 if (sc->rl_type == RL_8129) { 1155 if (bootverbose) 1156 printf("rl%d: probing for a PHY\n", sc->rl_unit); 1157 for (i = RL_PHYADDR_MIN; i < RL_PHYADDR_MAX + 1; i++) { 1158 if (bootverbose) 1159 printf("rl%d: checking address: %d\n", 1160 sc->rl_unit, i); --- 832 unchanged lines hidden --- | 1154 1155 if (sc->rl_type == RL_8129) { 1156 if (bootverbose) 1157 printf("rl%d: probing for a PHY\n", sc->rl_unit); 1158 for (i = RL_PHYADDR_MIN; i < RL_PHYADDR_MAX + 1; i++) { 1159 if (bootverbose) 1160 printf("rl%d: checking address: %d\n", 1161 sc->rl_unit, i); --- 832 unchanged lines hidden --- |