Mercurial > flash_v2
changeset 1472:800f60b742b3
* src/if_i82559.c (read_eeprom_esa): Allow bigger EEPROMs to work.
| author | asl |
|---|---|
| date | Sat, 17 Jan 2004 16:17:55 +0000 |
| parents | bdce752faff6 |
| children | d3d4aa4d1e40 |
| files | packages/devs/eth/intel/i82559/current/ChangeLog packages/devs/eth/intel/i82559/current/src/if_i82559.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <jeffrey.daly@intel.com> + + * src/if_i82559.c (read_eeprom_esa): Allow bigger EEPROMs to work. + 2004-01-05 Gary Thomas <gary@mlbassoc.com> * src/if_i82559.c: Names of FLASH config types changed.
--- 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);
