 /* Test Write Request at offset 0x7fc */ if (write_eeprom(sp, 0x7FC, 0x01234567, 3)) fail = 1; if (read_eeprom(sp, 0x7FC, &ret_data)) fail = 1;  if (ret_data != 0x01234567) fail = 1; 
} 
static int s2io_eeprom_test(nic_t * sp, uint64_t * data){	int fail = 0;	u32 ret_data;	/* Test Write Error at offset 0 */	if (!write_eeprom(sp, 0, 0, 3))		fail = 1;	/* Test Write at offset 4f0 */	if (write_eeprom(sp, 0x4F0, 0x01234567, 3))		fail = 1;	if (read_eeprom(sp, 0x4F0, &ret_data))		fail = 1;	if (ret_data != 0x01234567)		fail = 1;	/* Reset the EEPROM data go FFFF */	write_eeprom(sp, 0x4F0, 0xFFFFFFFF, 3);	/* Test Write Request Error at offset 0x7c */	if (!write_eeprom(sp, 0x07C, 0, 3))		fail = 1;	/* Test Write Request at offset 0x7fc */	if (write_eeprom(sp, 0x7FC, 0x01234567, 3))		fail = 1;	if (read_eeprom(sp, 0x7FC, &ret_data))		fail = 1;	if (ret_data != 0x01234567)		fail = 1;	/* Reset the EEPROM data go FFFF */	write_eeprom(sp, 0x7FC, 0xFFFFFFFF, 3);	/* Test Write Error at offset 0x80 */	if (!write_eeprom(sp, 0x080, 0, 3))		fail = 1;	/* Test Write Error at offset 0xfc */	if (!write_eeprom(sp, 0x0FC, 0, 3))		fail = 1;	/* Test Write Error at offset 0x100 */	if (!write_eeprom(sp, 0x100, 0, 3))		fail = 1;	/* Test Write Error at offset 4ec */	if (!write_eeprom(sp, 0x4EC, 0, 3))		fail = 1;	*data = fail;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ad4ebed00fbf570411edbf6eb6c391e16b71df25/s2io.c/clean/drivers/net/s2io.c