diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-05 07:53:39 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-05 07:53:39 +0100 |
commit | 32c11e287188d825e7d00aed616bfaccbbaafbf6 (patch) | |
tree | 36c30814b98c6954c2307474c46a9b90f3f676f2 /sys/src/9 | |
parent | 41383ad0120630edd42c5c897a287e2f9d9161b4 (diff) |
pc/pc64: import i210 support from erik quanstrom's 9atom
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/pc/ether82563.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/src/9/pc/ether82563.c b/sys/src/9/pc/ether82563.c index 4769a3a37..b196ede5f 100644 --- a/sys/src/9/pc/ether82563.c +++ b/sys/src/9/pc/ether82563.c @@ -443,6 +443,7 @@ enum { i82579, i82580, i82583, + i210, i218, i350, Nctlrtype, @@ -484,6 +485,7 @@ static Ctlrtype cttab[Nctlrtype] = { [i82579] "i82579", 9018, Fload|Fert|F79phy|Fnofct, [i82580] "i82580", 9728, F75|F79phy, [i82583] "i82583", 1514, 0, +[i210] "i210", 9728, F75|Fnofct|Fert, [i218] "i218", 9728, Fload|Fert|F79phy|Fnofct|Fbadcsum, [i350] "i350", 9728, F75|F79phy|Fnofct, }; @@ -756,6 +758,7 @@ i82563multicast(void *arg, uchar *addr, int on) case i82577: case i82577m: case i82579: + case i210: case i218: bit = (addr[5]<<2)|(addr[4]>>6); x = (bit>>5) & 31; @@ -1858,6 +1861,8 @@ didtype(int d) case 0x1506: /* v */ case 0x150c: /* untested */ return i82583; + case 0x1533: /* copper */ + return i210; case 0x1559: /* i218-v */ case 0x155a: /* i218-lm */ case 0x15a0: /* i218-lm */ @@ -2079,6 +2084,12 @@ i82583pnp(Ether *e) } static int +i210pnp(Ether *e) +{ + return pnp(e, i210); +} + +static int i218pnp(Ether *e) { return pnp(e, i218); @@ -2113,6 +2124,7 @@ ether82563link(void) addethercard("i82579", i82579pnp); addethercard("i82580", i82580pnp); addethercard("i82583", i82583pnp); + addethercard("i210", i210pnp); addethercard("i218", i218pnp); addethercard("i350", i350pnp); addethercard("igbepcie", anypnp); |