version 1.1.2.8, 2010/10/29 07:32:52
|
version 1.1.2.10, 2010/11/03 14:34:58
|
Line 278 dumpFile(const char *csName, u_char *mem)
|
Line 278 dumpFile(const char *csName, u_char *mem)
|
VERB(2) printf("Reading EEPROM memory %p ::\n", mem); |
VERB(2) printf("Reading EEPROM memory %p ::\n", mem); |
for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { |
for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { |
if (!(i % 0x40)) { |
if (!(i % 0x40)) { |
printf("0x%04lX [", i * 2); |
|
if (i) |
if (i) |
printf("]\n"); |
printf("]\n"); |
|
printf("0x%04lX [", i * 2); |
} |
} |
|
|
if ((data = readWord(mem, i)) == -1) |
if ((data = readWord(mem, i)) == -1) |
Line 342 flashFile(const char *csName, u_char *mem)
|
Line 342 flashFile(const char *csName, u_char *mem)
|
VERB(2) printf("Writing EEPROM memory %p ::\n", mem); |
VERB(2) printf("Writing EEPROM memory %p ::\n", mem); |
for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { |
for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { |
if (!(i % 0x40)) { |
if (!(i % 0x40)) { |
printf("0x%04lX [", i * 2); |
|
if (i) |
if (i) |
printf("]\n"); |
printf("]\n"); |
|
printf("0x%04lX [", i * 2); |
} |
} |
|
|
if ((data = readWord(mem, i)) == -1) |
if ((data = readWord(mem, i)) == -1) |