ref: 28977d24b266418a4d1a1e58911085ff96c156a9
parent: 2f8ee8fb4ee529c8953f934dc7c6b1828b453a31
author: cinap_lenrek <[email protected]>
date: Mon Nov 10 07:13:07 EST 2014
ether8169: add support for RTL8411B (thanks quux) from quux 9fans post: - based on the following changes in FreeBSD/OpenBSD: http://svnweb.freebsd.org/base?view=revision&revision=257305 http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ic/re.c.diff?r1=1.144&r2=1.145&f=h http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ic/rtl81x9reg.h.diff?r1=1.76&r2=1.77&f=h http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ic/rtl81x9reg.h.diff?r1=1.83&r2=1.84&f=h - sysinfo _with_ patch, on amd64 (please disregard non-working audio and iwl stuff): http://sysinfo.9front.org/src/86/body - tested only on amd64; machine is an Acer V5-573G (exact model: V5-573G-74518G1Takk)
--- a/sys/src/9/pc/ether8169.c
+++ b/sys/src/9/pc/ether8169.c
@@ -121,6 +121,7 @@
Macv29 = 0x40800000, /* RTL8101/8102E */
Macv30 = 0x24000000, /* RTL8101E? (untested) */
Macv40 = 0x4c000000, /* RTL8168G */
+ Macv44 = 0x5c800000, /* RTL8411B */
Ifg0 = 0x01000000, /* Interframe Gap 0 */
Ifg1 = 0x02000000, /* Interframe Gap 1 */
};
@@ -702,6 +703,7 @@
cplusc |= Txenb|Mulrw;
switch(ctlr->macv){
case Macv40:
+ case Macv44:
cplusc |= Macstatdis;
break;
default:
@@ -1051,6 +1053,7 @@
case Macv29:
case Macv30:
case Macv40:
+ case Macv44:
break;
}
return 0;