9front - general discussion about 9front
 help / color / mirror / Atom feed
* [PATCH] Support for i217
@ 2016-04-07 19:12 k0ga
  2016-04-07 19:25 ` [9front] " cinap_lenrek
  0 siblings, 1 reply; 2+ messages in thread
From: k0ga @ 2016-04-07 19:12 UTC (permalink / raw)
  To: 9front

This patch is only an adaptation for 9front of the patch located in
http://www.9legacy.org/9legacy/patch/pc-ether82563-i210.diff.  The
major difference is that this patch ignores errors in checksum of
eeprom, because in my system the checksum was wrong.  After 3 months,
I didn't have problems, and I think the patch can be used.  although
it has some things that need to be fixed.  If the link is inactive
when the system boots then it will remain inactive forever.

8>---------
diff -r 3e63050481a8 sys/src/9/pc/ether82563.c
--- a/sys/src/9/pc/ether82563.c	Sat Mar 05 07:44:02 2016 +0100
+++ b/sys/src/9/pc/ether82563.c	Wed Mar 23 19:17:43 2016 +0100
@@ -444,6 +444,7 @@
 	i82580,
 	i82583,
 	i210,
+	i217,
 	i218,
 	i350,
 	Nctlrtype,
@@ -486,6 +487,7 @@
 [i82580]	"i82580",	9728,	F75|F79phy,
 [i82583]	"i82583",	1514,	0,
 [i210]		"i210",		9728,	F75|Fnofct|Fert,
+[i217]		"i217",		9728,	Fload|Fnofct|Fert|Fbadcsum,
 [i218]		"i218",		9728,	Fload|Fert|F79phy|Fnofct|Fbadcsum,
 [i350]		"i350",		9728,	F75|F79phy|Fnofct,
 };
@@ -759,6 +761,7 @@
 	case i82577m:
 	case i82579:
 	case i210:
+	case i217:
 	case i218:
 		bit = (addr[5]<<2)|(addr[4]>>6);
 		x = (bit>>5) & 31;
@@ -1863,6 +1866,10 @@
 		return i82583;
 	case 0x1533:		/* copper */
 		return i210;
+	case 0x153a:		/* i217-lm */
+	case 0x153b:		/* i217-v */
+		return i217;
+		break;
 	case 0x1559:		/* i218-v */
 	case 0x155a:		/* i218-lm */
 	case 0x15a0:		/* i218-lm */
@@ -2090,6 +2097,12 @@
 }
 
 static int
+i217pnp(Ether *e)
+{
+	return pnp(e, i217);
+}
+
+static int
 i218pnp(Ether *e)
 {
 	return pnp(e, i218);
@@ -2125,6 +2138,7 @@
 	addethercard("i82580", i82580pnp);
 	addethercard("i82583", i82583pnp);
 	addethercard("i210", i210pnp);
+	addethercard("i217", i217pnp);
 	addethercard("i218", i218pnp);
 	addethercard("i350", i350pnp);
 	addethercard("igbepcie", anypnp);



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

* Re: [9front] [PATCH] Support for i217
  2016-04-07 19:12 [PATCH] Support for i217 k0ga
@ 2016-04-07 19:25 ` cinap_lenrek
  0 siblings, 0 replies; 2+ messages in thread
From: cinap_lenrek @ 2016-04-07 19:25 UTC (permalink / raw)
  To: 9front

applied.

--
cinap


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

end of thread, other threads:[~2016-04-07 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-07 19:12 [PATCH] Support for i217 k0ga
2016-04-07 19:25 ` [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).