H A D | eeprom.c | 189 unsigned char loc1[4], loc2[4], tmp[4]; eeprom_init() local 192 if( eeprom_read_buf(LOC1, loc1, 4) == 4) eeprom_init() 194 D(printk("0 loc1: (%i) '%4.4s' loc2 (%i) '%4.4s'\n", eeprom_init() 195 LOC1, loc1, LOC2, loc2)); eeprom_init() 197 if (memcmp(loc1, loc2, 4) != 0 ) eeprom_init() 209 loc1[0] = ~loc1[0]; eeprom_init() 210 if (eeprom_write_buf(LOC1, loc1, 1) == 1) eeprom_init() 215 D(printk("1 loc1: (%i) '%4.4s' loc2 (%i) '%4.4s'\n", eeprom_init() 216 LOC1, loc1, LOC2, loc2)); eeprom_init() 219 D(printk("2 loc1: (%i) '%4.4s' tmp '%4.4s'\n", eeprom_init() 220 LOC1, loc1, tmp)); eeprom_init() 221 if (memcmp(loc1, tmp, 4) != 0 ) eeprom_init() 225 loc1[0] = ~loc1[0]; eeprom_init() 227 if (eeprom_write_buf(LOC1, loc1, 1) == 1) eeprom_init() 259 D(printk("0 loc1: (%i) '%4.4s' loc2 (%i) '%4.4s'\n", eeprom_init() 260 LOC1, loc1, LOC2, loc2)); eeprom_init() 261 if (memcmp(loc1, loc2, 4) == 0 ) eeprom_init() 266 loc1[0] = ~loc1[0]; eeprom_init() 267 if (eeprom_write_buf(LOC1, loc1, 1) == 1) eeprom_init() 284 loc1[0] = ~loc1[0]; eeprom_init() 287 if (eeprom_write_buf(LOC1, loc1, 1) == 1) eeprom_init()
|