patch was not applied to nix Reference: /n/atom/patch/applied/i219redux Date: Tue May 27 21:54:58 CES 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/nix/k10/ether82563.c Tue May 27 21:54:58 2014 +++ /sys/src/nix/k10/ether82563.c Tue May 27 21:54:58 2014 @@ -1,5 +1,5 @@ /* - * Intel 8256[367], 8257[1-9], 8258[03], i21[01], i350, i354 + * Intel 8256[367], 8257[1-9], 8258[03], i21[01789], i350, i354 * Gigabit Ethernet PCI-Express Controllers * Coraid EtherDrive® hba */ @@ -448,6 +448,8 @@ i82583, i210, i217, + i218, + i219, i350, i354, Nctlrtype, @@ -775,7 +777,7 @@ x = addr[5]>>1; if(ctlr->type == i82566) x &= 31; - if(ctlr->type == i210 || ctlr->type == i217) + if(ctlr->type == i210 || ctlr->type == i217 || ctlr->type == i218) x &= 15; bit = ((addr[5] & 1)<<4)|(addr[4]>>4); /* @@ -1987,19 +1989,27 @@ case 0x1506: /* v */ return i82583; case 0x1533: /* i210-t1 */ - case 0x1534: - case 0x1536: /* fiber */ - case 0x1537: /* backplane */ + case 0x1534: /* i210 */ + case 0x1536: /* i210-fiber */ + case 0x1537: /* i210-backplane */ case 0x1538: case 0x1539: /* i211 */ + case 0x157b: /* i210 */ + case 0x157c: /* i210 */ return i210; case 0x153a: /* i217-lm */ case 0x153b: /* i217-v */ + return i217; + case 0x1559: /* i218-v */ + case 0x155a: /* i218-lm */ case 0x15a0: /* i218-lm */ case 0x15a1: /* i218-v */ case 0x15a2: /* i218-lm */ case 0x15a3: /* i218-v */ - return i217; + return i218; + case 0x156f: /* i219-lm */ + case 0x1570: /* i219-v */ + return i219; case 0x151f: /* “powerville” eeprom-less */ case 0x1521: /* copper */ case 0x1522: /* fiber */ @@ -2010,7 +2020,7 @@ case 0x1f41: /* sgmii */ case 0x1f42: /* sgmii (c2000) */ case 0x1f45: /* backplane 2.5 */ - return i354: + return i354; } return -1; }