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)
This commit is contained in:
cinap_lenrek 2014-11-10 12:13:07 +01:00
parent 2f8ee8fb4e
commit 28977d24b2

View file

@ -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;