# HG changeset patch # User asl # Date 1074356275 0 # Node ID 800f60b742b364d1015cf319a861a9bc8a9baa2c # Parent bdce752faff615045c7eb5fec66041e3576f1277 * src/if_i82559.c (read_eeprom_esa): Allow bigger EEPROMs to work. diff --git a/packages/devs/eth/intel/i82559/current/ChangeLog b/packages/devs/eth/intel/i82559/current/ChangeLog --- a/packages/devs/eth/intel/i82559/current/ChangeLog +++ b/packages/devs/eth/intel/i82559/current/ChangeLog @@ -1,3 +1,7 @@ +2004-01-17 Jeffrey Daly + + * src/if_i82559.c (read_eeprom_esa): Allow bigger EEPROMs to work. + 2004-01-05 Gary Thomas * src/if_i82559.c: Names of FLASH config types changed. diff --git a/packages/devs/eth/intel/i82559/current/src/if_i82559.c b/packages/devs/eth/intel/i82559/current/src/if_i82559.c --- a/packages/devs/eth/intel/i82559/current/src/if_i82559.c +++ b/packages/devs/eth/intel/i82559/current/src/if_i82559.c @@ -1342,7 +1342,8 @@ read_eeprom_esa(struct i82559 *p_i82559, p_i82559->index); #endif } else { - for (checksum = 0, i = 0, count = 0; count < 64; count++) { + for (checksum = 0, i = 0, count = 0; + count < (1 << addr_length); count++) { cyg_uint16 value; // read word from eeprom value = read_eeprom(ioaddr, count, addr_length);