/*
 * Program to write MAC info and defaults into EEPROM of Intel eepro100
 * ethernet controller
 *
 * Moshen Chan <mchan@cobalt.com>
 * May 19, 2000
 */


/* read all the eeprom data into 64 word  pre-allocated buffer */
int eepro100_read_eeprom(unsigned short ioaddr, unsigned short *eeprom_data);

/* read the mac address into 6 byte pre-allocated buffer */
int eepro100_read_mac(unsigned short ioaddr, unsigned char *mac_data);

/* write the entire eeprom data (ignore checksum) */
int eepro100_write_eeprom(unsigned short ioaddr, unsigned short *eeprom_data);

/* write the specified mac address (update checksum, too) */
int eepro100_write_mac(unsigned short ioaddr, unsigned char *mac);

/* read an arbitrary byte from eeprom */
int eepro100_read_byte(unsigned short ioaddr, unsigned char *data, int offset);

/* read an arbitrary word from eeprom */
int eepro100_read_word(unsigned short ioaddr, unsigned short *data, int offset);

/* write an arbitrary byte to eeprom (update checksum) */
int eepro100_write_byte(unsigned short ioaddr, unsigned char data, int offset);

/* write an arbitrary word to eeprom (update checksum) */
int eepro100_write_word(unsigned short ioaddr, unsigned short data, int offset);

/* get size of eeprom */
int eepro100_get_size( void );
