int eepro100_write_eeprom (struct eth_device* dev, int location, int addr_len, unsigned short data)
#define SCB_STATUS_CX 0x8000
#define SCB_STATUS_FR 0x4000
#define SCB_STATUS_CNA 0x2000
#define SCB_STATUS_RNR 0x1000
#define SCB_STATUS_MDI 0x0800
#define SCB_STATUS_SWI 0x0400
#define SCB_STATUS_FCP 0x0100
#define SCB_INTACK_MASK 0xFD00
#define SCB_INTACK_TX (SCB_STATUS_CX | SCB_STATUS_CNA)
#define SCB_INTACK_RX (SCB_STATUS_FR | SCB_STATUS_RNR)
#define CU_STATSADDR 0x0040
#define CU_SHOWSTATS 0x0050
#define CU_ADDR_LOAD 0x0060
#define CU_DUMPSTATS 0x0070
#define RUC_RESUME 0x0002
#define RUC_ADDR_LOAD 0x0006
#define RUC_RESUMENR 0x0007
#define CU_CMD_MASK 0x00f0
#define RU_CMD_MASK 0x0007
#define CU_STATUS_MASK 0x00C0
#define RU_STATUS_MASK 0x003C
#define RU_STATUS_IDLE (0<<2)
#define RU_STATUS_SUS (1<<2)
#define RU_STATUS_NORES (2<<2)
#define RU_STATUS_READY (4<<2)
#define RU_STATUS_NO_RBDS_SUS ((1<<2)|(8<<2))
#define RU_STATUS_NO_RBDS_NORES ((2<<2)|(8<<2))
#define RU_STATUS_NO_RBDS_READY ((4<<2)|(8<<2))
#define I82559_RESET 0x00000000
#define I82559_SELFTEST 0x00000001
#define I82559_SELECTIVE_RESET 0x00000002
#define I82559_DUMP 0x00000003
#define I82559_DUMP_WAKEUP 0x00000007