• Michael Chan's avatar
    [TG3]: add tg3_set_eeprom() · cce81e80
    Michael Chan authored
    - Add nvram size detection
    - Add appropriate byte swapping to tg3_get_eeprom so that the same byte
    stream is read in all systems
    - Fix tg3_get_eeprom to read both eeprom and flash
    - Add tg3_set_eeprom to write eeprom and flash
    - Change tg3_nvram_init to detect all supported nvram devices
    - Change tg3_nvram_read to properly detect Atmel flash that requires
    address translation
    - Increase nvram polling delay to account for slower eeprom devices
    - Remove some of the flushing read that is not required for the
    production 5750 devices
    Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cce81e80
tg3.c 261 KB