/* Bit 0 = Data out (read from EEPROM) Bit 1 = Data in (write to EEPROM) Bit 2 = Clock Bit 3 = Chip Select Bit 7 = ~50 kHz clock for defined delays  */
static void __init dlink_put_eeprom(unsigned char value, unsigned int addr)
/* Bit 0 = Data out (read from EEPROM) Bit 1 = Data in (write to EEPROM) Bit 2 = Clock Bit 3 = Chip Select Bit 7 = ~50 kHz clock for defined delays  */
static void __init dlink_put_eeprom(unsigned char value, unsigned int addr)
{
	int z;
	unsigned char v1, v2;
	outb(value, addr + 0x1e);
	for (z = 0; z < 2; z++) {
		do {
			v1 = inb(addr + 0x1e);
			v2 = inb(addr + 0x1e);
		}
		while (!((v1 ^ v2) & 0x80));
	}
}