9front - general discussion about 9front
 help / color / mirror / Atom feed
* ether8169.c: support for rtl8411b (rtl8168g family)
       [not found] <CAAGZaiJybsEeJfTtsoq08oBdEu51QeYuVuMVrJ5ftMygk=0j9Q@mail.gmail.com>
@ 2014-11-10 10:39 ` quux quux
  2014-11-10 11:13   ` [9front] " cinap_lenrek
  0 siblings, 1 reply; 2+ messages in thread
From: quux quux @ 2014-11-10 10:39 UTC (permalink / raw)
  To: 9front

Without the inlined patch:
term% grep rtl /dev/kmesg
rtl8169: unknown mac 8168 5c800000

I have no idea what the correct Macv?? is, 41 is arbitrary. Someone
who knows what they are doing may have to review this.

- 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)

diff -r 7c2d0e7d27a7 sys/src/9/pc/ether8169.c
--- a/sys/src/9/pc/ether8169.c	Sun Nov 09 13:41:06 2014 -0800
+++ b/sys/src/9/pc/ether8169.c	Mon Nov 10 00:00:35 2014 +0100
@@ -121,6 +121,7 @@
 	Macv29		= 0x40800000,	/* RTL8101/8102E */
 	Macv30		= 0x24000000,	/* RTL8101E? (untested) */
 	Macv40		= 0x4c000000,	/* RTL8168G */
+	Macv41		= 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 Macv41:
 		cplusc |= Macstatdis;
 		break;
 	default:
@@ -1051,6 +1053,7 @@
 	case Macv29:
 	case Macv30:
 	case Macv40:
+	case Macv41:
 		break;
 	}
 	return 0;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] ether8169.c: support for rtl8411b (rtl8168g family)
  2014-11-10 10:39 ` ether8169.c: support for rtl8411b (rtl8168g family) quux quux
@ 2014-11-10 11:13   ` cinap_lenrek
  0 siblings, 0 replies; 2+ messages in thread
From: cinap_lenrek @ 2014-11-10 11:13 UTC (permalink / raw)
  To: 9front

thank you! commited and pushed.

--
cinap


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-10 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAAGZaiJybsEeJfTtsoq08oBdEu51QeYuVuMVrJ5ftMygk=0j9Q@mail.gmail.com>
2014-11-10 10:39 ` ether8169.c: support for rtl8411b (rtl8168g family) quux quux
2014-11-10 11:13   ` [9front] " cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).