Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2013 03:05:51 +1100
From:      Edward O'Callaghan <eocallaghan@alterapraxis.com>
To:        freebsd-net@freebsd.org
Subject:   [PATCH] Add preliminary support for some newer RTL8111/8168 Express Gigabit Ethernet controllers such as the one found in PR183167.
Message-ID:  <20131023030551.06edd9ab.eocallaghan@alterapraxis.com>

next in thread | raw e-mail | index | archive | help
--Sig_/9K1z=m0GG5It.lPFHVcc9=b
Content-Type: multipart/mixed; boundary="MP_/nb8L4g75CtAlq1WfYJzlJLf"

--MP_/nb8L4g75CtAlq1WfYJzlJLf
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

If someone could review this please, it needs better testing.

I was only really initially trying to fix my own bug:
http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183167

Kind Regards,

--MP_/nb8L4g75CtAlq1WfYJzlJLf
Content-Type: text/x-patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename=0001-Add-preliminary-support-for-some-newer-RTL8111-8168-.patch

=46rom 7d54f474d91b362c3e90894ab99ccf7655c60204 Mon Sep 17 00:00:00 2001
From: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Date: Wed, 23 Oct 2013 01:16:14 +1100
Subject: [PATCH] Add preliminary support for some newer RTL8111/8168 Express
 Gigabit Ethernet controllers such as the one found in PR183167.
Organization: Altera Praxis Pty Ltd.
To: freebsd-net@freebsd.org

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
---
 sys/dev/re/if_re.c | 6 ++++++
 sys/pci/if_rlreg.h | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index 381fa87..0ea330a 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -234,6 +234,9 @@ static const struct rl_hwrev re_hwrevs[] =3D {
 	{ RL_HWREV_8168E, RL_8169, "8168E/8111E", RL_JUMBO_MTU_9K},
 	{ RL_HWREV_8168E_VL, RL_8169, "8168E/8111E-VL", RL_JUMBO_MTU_6K},
 	{ RL_HWREV_8168F, RL_8169, "8168F/8111F", RL_JUMBO_MTU_9K},
+	{ RL_HWREV_8168G, RL_8169, "8168G/8111G", RL_MTU},
+	{ RL_HWREV_8168EP, RL_8169, "8168G/8111EP", RL_MTU},
+	{ RL_HWREV_8168GU, RL_8169, "8168G/8111GU", RL_MTU},
 	{ RL_HWREV_8411, RL_8169, "8411", RL_JUMBO_MTU_9K},
 	{ 0, 0, NULL, 0 }
 };
@@ -1451,6 +1454,7 @@ re_attach(device_t dev)
 		    RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_AUTOPAD |
 		    RL_FLAG_JUMBOV2 | RL_FLAG_WAIT_TXPOLL | RL_FLAG_WOL_MANLINK;
 		break;
+	case RL_HWREV_8168GU:
 	case RL_HWREV_8168E:
 		sc->rl_flags |=3D RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM |
 		    RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT |
@@ -1458,7 +1462,9 @@ re_attach(device_t dev)
 		    RL_FLAG_WOL_MANLINK;
 		break;
 	case RL_HWREV_8168E_VL:
+	case RL_HWREV_8168EP:
 	case RL_HWREV_8168F:
+	case RL_HWREV_8168G:
 	case RL_HWREV_8411:
 		sc->rl_flags |=3D RL_FLAG_PHYWAKE | RL_FLAG_PAR |
 		    RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP |
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index 142fe48..95550b7 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -192,6 +192,9 @@
 #define	RL_HWREV_8106E		0x44800000
 #define	RL_HWREV_8168F		0x48000000
 #define	RL_HWREV_8411		0x48800000
+#define RE_HWREV_8168G      0x4C000000
+#define RE_HWREV_8168EP     0x50000000
+#define RE_HWREV_8168GU     0x50800000      /* 8106EUS */
 #define	RL_HWREV_8139		0x60000000
 #define	RL_HWREV_8139A		0x70000000
 #define	RL_HWREV_8139AG		0x70800000
--=20
1.8.4.1


--MP_/nb8L4g75CtAlq1WfYJzlJLf--

--Sig_/9K1z=m0GG5It.lPFHVcc9=b
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCgAGBQJSZqJlAAoJENeyf/ug44dtkrcP+gO8nssASNzOGprRfyz7f3AP
hQiIanOVPZYUv9bTirO92uM9VEdQ8PDsZxV8veoqgDqKw5z2KSgzDP4ZXhh3tlhe
BKqmdrRAT4e6lfGwYd20eSDciGjrLGtRxgpmqrFJuOjkNG3Jd6SP9ZwZsG4LjtpX
at+DdXqAB87os1jGuygPYQpKDdwax/iwU3fSIrjIh3MZXNcVQCFPETNddg7mTNDs
DxTKCk5CX8jJXzR7A+kFU45B/YRPAj7uBQPcJdgAOnKMkiuLFWS72vPTXU/3SSfS
1X10O5qqPwGZlqxU0kA8R3nCmrISOIRttxRyJtvVeDbPuDzodIlE6S10QXLmOfTO
54XAli2vHKfHvyK+HczMUUF1oOXs2DwiKN02kiV+CT74SlgrJPbasd1SiWzqVgW9
Kg/G/lH9aXSge+neEaWoy8TF/8a1nYf2rA/K7G48zK18lGe4/g8dH6ZVSwSp6HaB
nzw4JzTM4oXIUeskF85qU+JCEh8yjxkHLMacl2+fGWdjhfV4OtCRqlWD5KEyScAT
wJZuYjET7xbCnhCDpvkLAsscB/LVQYCVN+QQFmvHZKe++DScTAdeiyuIVvhpibwP
z9lfusqJrzvfVuGEcLtFZOPaIE9iBjWt7KqBiLJCcszbPB094YbLONdCHRJ2dlYt
Cjz9+ogNLxf9zsGbnzl+
=md3X
-----END PGP SIGNATURE-----

--Sig_/9K1z=m0GG5It.lPFHVcc9=b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131023030551.06edd9ab.eocallaghan>