if_re.c (217385) | if_re.c (217498) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998-2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 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 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998-2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 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 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/re/if_re.c 217385 2011-01-13 23:15:09Z yongari $"); | 34__FBSDID("$FreeBSD: head/sys/dev/re/if_re.c 217498 2011-01-17 02:23:50Z yongari $"); |
35 36/* 37 * RealTek 8139C+/8169/8169S/8110S/8168/8111/8101E PCI NIC driver 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 173 unchanged lines hidden (view full) --- 216 { RL_HWREV_8168_SPIN2, RL_8169, "8168"}, 217 { RL_HWREV_8168_SPIN3, RL_8169, "8168"}, 218 { RL_HWREV_8168C, RL_8169, "8168C/8111C"}, 219 { RL_HWREV_8168C_SPIN2, RL_8169, "8168C/8111C"}, 220 { RL_HWREV_8168CP, RL_8169, "8168CP/8111CP"}, 221 { RL_HWREV_8168D, RL_8169, "8168D/8111D"}, 222 { RL_HWREV_8168DP, RL_8169, "8168DP/8111DP"}, 223 { RL_HWREV_8168E, RL_8169, "8168E/8111E"}, | 35 36/* 37 * RealTek 8139C+/8169/8169S/8110S/8168/8111/8101E PCI NIC driver 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 173 unchanged lines hidden (view full) --- 216 { RL_HWREV_8168_SPIN2, RL_8169, "8168"}, 217 { RL_HWREV_8168_SPIN3, RL_8169, "8168"}, 218 { RL_HWREV_8168C, RL_8169, "8168C/8111C"}, 219 { RL_HWREV_8168C_SPIN2, RL_8169, "8168C/8111C"}, 220 { RL_HWREV_8168CP, RL_8169, "8168CP/8111CP"}, 221 { RL_HWREV_8168D, RL_8169, "8168D/8111D"}, 222 { RL_HWREV_8168DP, RL_8169, "8168DP/8111DP"}, 223 { RL_HWREV_8168E, RL_8169, "8168E/8111E"}, |
224 { RL_HWREV_8168E_VL, RL_8169, "8168E/8111E-VL"}, |
|
224 { 0, 0, NULL } 225}; 226 227static int re_probe (device_t); 228static int re_attach (device_t); 229static int re_detach (device_t); 230 231static int re_encap (struct rl_softc *, struct mbuf **); --- 1109 unchanged lines hidden (view full) --- 1341 */ 1342 sc->rl_flags |= RL_FLAG_NOJUMBO; 1343 break; 1344 case RL_HWREV_8168E: 1345 sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM | 1346 RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | 1347 RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_NOJUMBO; 1348 break; | 225 { 0, 0, NULL } 226}; 227 228static int re_probe (device_t); 229static int re_attach (device_t); 230static int re_detach (device_t); 231 232static int re_encap (struct rl_softc *, struct mbuf **); --- 1109 unchanged lines hidden (view full) --- 1342 */ 1343 sc->rl_flags |= RL_FLAG_NOJUMBO; 1344 break; 1345 case RL_HWREV_8168E: 1346 sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM | 1347 RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | 1348 RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_NOJUMBO; 1349 break; |
1350 case RL_HWREV_8168E_VL: 1351 sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | 1352 RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | 1353 RL_FLAG_AUTOPAD | RL_FLAG_NOJUMBO; 1354 break; |
|
1349 case RL_HWREV_8169_8110SB: 1350 case RL_HWREV_8169_8110SBL: 1351 case RL_HWREV_8169_8110SC: 1352 case RL_HWREV_8169_8110SCE: 1353 sc->rl_flags |= RL_FLAG_PHYWAKE; 1354 /* FALLTHROUGH */ 1355 case RL_HWREV_8169: 1356 case RL_HWREV_8169S: --- 2003 unchanged lines hidden --- | 1355 case RL_HWREV_8169_8110SB: 1356 case RL_HWREV_8169_8110SBL: 1357 case RL_HWREV_8169_8110SC: 1358 case RL_HWREV_8169_8110SCE: 1359 sc->rl_flags |= RL_FLAG_PHYWAKE; 1360 /* FALLTHROUGH */ 1361 case RL_HWREV_8169: 1362 case RL_HWREV_8169S: --- 2003 unchanged lines hidden --- |