u_int8_t		addr;
int			addr;
static void mx_eeprom_getword(sc, addr, dest)	struct mx_softc		*sc;	u_int8_t		addr;	u_int16_t		*dest;{	register int		i;	u_int16_t		word = 0;	/* Force EEPROM to idle state. */	mx_eeprom_idle(sc);	/* Enter EEPROM access mode. */	CSR_WRITE_4(sc, MX_SIO, MX_SIO_EESEL);	mx_delay(sc);	MX_SETBIT(sc, MX_SIO,  MX_SIO_ROMCTL_READ);	mx_delay(sc);	MX_SETBIT(sc, MX_SIO, MX_SIO_EE_CS);	mx_delay(sc);	MX_SETBIT(sc, MX_SIO, MX_SIO_EE_CLK);	mx_delay(sc);	/*	 * Send address of word we want to read.	 */	mx_eeprom_putbyte(sc, addr);	/*	 * Start reading bits from EEPROM.	 */	for (i = 0x8000; i; i >>= 1) {		SIO_SET(MX_SIO_EE_CLK);		mx_delay(sc);		if (CSR_READ_4(sc, MX_SIO) & MX_SIO_EE_DATAOUT)			word |= i;		mx_delay(sc);		SIO_CLR(MX_SIO_EE_CLK);		mx_delay(sc);	}	/* Turn off EEPROM access mode. */	mx_eeprom_idle(sc);	*dest = word;	return;}