From: Tomas Hruby Date: Thu, 7 Jul 2011 17:20:15 +0000 (+0000) Subject: E1000 - fixed reading MAC from EEPROM X-Git-Tag: v3.2.0~478 X-Git-Url: http://zhaoyanbai.com/repos/doc/roff.7.html?a=commitdiff_plain;h=48a4ff2307485fc48adebc7ade13675b7ba3e06d;p=minix.git E1000 - fixed reading MAC from EEPROM - makes case which is correct according to Intel docs the default --- diff --git a/drivers/e1000/e1000.c b/drivers/e1000/e1000.c index a11129d51..302a91cf3 100644 --- a/drivers/e1000/e1000.c +++ b/drivers/e1000/e1000.c @@ -288,15 +288,14 @@ PRIVATE int e1000_probe(e1000_t *e, int skip) e->eeprom_read = eeprom_ich; break; - case E1000_DEV_ID_82574L: - case E1000_DEV_ID_82541GI_LF: - e->eeprom_done_bit = (1 << 1); - e->eeprom_addr_off = 2; + case E1000_DEV_ID_82540EM: + e->eeprom_done_bit = (1 << 4); + e->eeprom_addr_off = 8; break; default: - e->eeprom_done_bit = (1 << 4); - e->eeprom_addr_off = 8; + e->eeprom_done_bit = (1 << 1); + e->eeprom_addr_off = 2; break; }