]> Zhao Yanbai Git Server - minix.git/commitdiff
E1000 - fixed reading MAC from EEPROM
authorTomas Hruby <thruby@few.vu.nl>
Thu, 7 Jul 2011 17:20:15 +0000 (17:20 +0000)
committerTomas Hruby <tom@minix3.org>
Fri, 8 Jul 2011 18:31:21 +0000 (20:31 +0200)
- makes case which is correct according to Intel docs the default

drivers/e1000/e1000.c

index a11129d51432caea3594d10159b53580885be706..302a91cf31b5b7b5abb10ada7399faaac2cb5df2 100644 (file)
@@ -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;
     }