Deleted Added
full compact
if_re.c (182808) if_re.c (185542)
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 182808 2008-09-06 00:25:16Z yongari $");
34__FBSDID("$FreeBSD: head/sys/dev/re/if_re.c 185542 2008-12-02 03:39:34Z 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 */

--- 124 unchanged lines hidden (view full) ---

167static struct rl_type re_devs[] = {
168 { DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
169 "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
170 { RT_VENDORID, RT_DEVICEID_8139, 0,
171 "RealTek 8139C+ 10/100BaseTX" },
172 { RT_VENDORID, RT_DEVICEID_8101E, 0,
173 "RealTek 8101E/8102E/8102EL PCIe 10/100baseTX" },
174 { RT_VENDORID, RT_DEVICEID_8168, 0,
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 */

--- 124 unchanged lines hidden (view full) ---

167static struct rl_type re_devs[] = {
168 { DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
169 "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
170 { RT_VENDORID, RT_DEVICEID_8139, 0,
171 "RealTek 8139C+ 10/100BaseTX" },
172 { RT_VENDORID, RT_DEVICEID_8101E, 0,
173 "RealTek 8101E/8102E/8102EL PCIe 10/100baseTX" },
174 { RT_VENDORID, RT_DEVICEID_8168, 0,
175 "RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe "
175 "RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe "
176 "Gigabit Ethernet" },
177 { RT_VENDORID, RT_DEVICEID_8169, 0,
178 "RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet" },
179 { RT_VENDORID, RT_DEVICEID_8169SC, 0,
180 "RealTek 8169SC/8110SC Single-chip Gigabit Ethernet" },
181 { COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, 0,
182 "Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" },
183 { LINKSYS_VENDORID, LINKSYS_DEVICEID_EG1032, 0,

--- 24 unchanged lines hidden (view full) ---

208 { RL_HWREV_8101E, RL_8169, "8101E"},
209 { RL_HWREV_8102E, RL_8169, "8102E"},
210 { RL_HWREV_8102EL, RL_8169, "8102EL"},
211 { RL_HWREV_8168_SPIN2, RL_8169, "8168"},
212 { RL_HWREV_8168_SPIN3, RL_8169, "8168"},
213 { RL_HWREV_8168C, RL_8169, "8168C/8111C"},
214 { RL_HWREV_8168C_SPIN2, RL_8169, "8168C/8111C"},
215 { RL_HWREV_8168CP, RL_8169, "8168CP/8111CP"},
176 "Gigabit Ethernet" },
177 { RT_VENDORID, RT_DEVICEID_8169, 0,
178 "RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet" },
179 { RT_VENDORID, RT_DEVICEID_8169SC, 0,
180 "RealTek 8169SC/8110SC Single-chip Gigabit Ethernet" },
181 { COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, 0,
182 "Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" },
183 { LINKSYS_VENDORID, LINKSYS_DEVICEID_EG1032, 0,

--- 24 unchanged lines hidden (view full) ---

208 { RL_HWREV_8101E, RL_8169, "8101E"},
209 { RL_HWREV_8102E, RL_8169, "8102E"},
210 { RL_HWREV_8102EL, RL_8169, "8102EL"},
211 { RL_HWREV_8168_SPIN2, RL_8169, "8168"},
212 { RL_HWREV_8168_SPIN3, RL_8169, "8168"},
213 { RL_HWREV_8168C, RL_8169, "8168C/8111C"},
214 { RL_HWREV_8168C_SPIN2, RL_8169, "8168C/8111C"},
215 { RL_HWREV_8168CP, RL_8169, "8168CP/8111CP"},
216 { RL_HWREV_8168D, RL_8169, "8168D"},
216 { 0, 0, NULL }
217};
218
219static int re_probe (device_t);
220static int re_attach (device_t);
221static int re_detach (device_t);
222
223static int re_encap (struct rl_softc *, struct mbuf **);

--- 996 unchanged lines hidden (view full) ---

1220 case RL_HWREV_8168_SPIN2:
1221 case RL_HWREV_8168_SPIN3:
1222 sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
1223 RL_FLAG_MACSTAT;
1224 break;
1225 case RL_HWREV_8168C:
1226 case RL_HWREV_8168C_SPIN2:
1227 case RL_HWREV_8168CP:
217 { 0, 0, NULL }
218};
219
220static int re_probe (device_t);
221static int re_attach (device_t);
222static int re_detach (device_t);
223
224static int re_encap (struct rl_softc *, struct mbuf **);

--- 996 unchanged lines hidden (view full) ---

1221 case RL_HWREV_8168_SPIN2:
1222 case RL_HWREV_8168_SPIN3:
1223 sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
1224 RL_FLAG_MACSTAT;
1225 break;
1226 case RL_HWREV_8168C:
1227 case RL_HWREV_8168C_SPIN2:
1228 case RL_HWREV_8168CP:
1229 case RL_HWREV_8168D:
1228 sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
1229 RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT;
1230 /*
1231 * These controllers support jumbo frame but it seems
1232 * that enabling it requires touching additional magic
1233 * registers. Depending on MAC revisions some
1234 * controllers need to disable checksum offload. So
1235 * disable jumbo frame until I have better idea what

--- 1813 unchanged lines hidden ---
1230 sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
1231 RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT;
1232 /*
1233 * These controllers support jumbo frame but it seems
1234 * that enabling it requires touching additional magic
1235 * registers. Depending on MAC revisions some
1236 * controllers need to disable checksum offload. So
1237 * disable jumbo frame until I have better idea what

--- 1813 unchanged lines hidden ---