summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/ether8169.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-11-10 12:13:07 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-11-10 12:13:07 +0100
commit28977d24b266418a4d1a1e58911085ff96c156a9 (patch)
tree3f5ee5e18bf3c6cb1233e6bbb5c31d34a91b4b9e /sys/src/9/pc/ether8169.c
parent2f8ee8fb4ee529c8953f934dc7c6b1828b453a31 (diff)
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)
Diffstat (limited to 'sys/src/9/pc/ether8169.c')
-rw-r--r--sys/src/9/pc/ether8169.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/9/pc/ether8169.c b/sys/src/9/pc/ether8169.c
index a51674599..bd26fcb45 100644
--- a/sys/src/9/pc/ether8169.c
+++ b/sys/src/9/pc/ether8169.c
@@ -121,6 +121,7 @@ enum { /* Tcr */
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 @@ rtl8169init(Ether* edev)
cplusc |= Txenb|Mulrw;
switch(ctlr->macv){
case Macv40:
+ case Macv44:
cplusc |= Macstatdis;
break;
default:
@@ -1051,6 +1053,7 @@ vetmacv(Ctlr *ctlr, uint *macv)
case Macv29:
case Macv30:
case Macv40:
+ case Macv44:
break;
}
return 0;