49 #define DEV_RTL8139C_LENGTH 0x100 50 #define EEPROM_SIZE 0x100 88 debug(
"[ rtl8139c eeprom cmd=0x%x addr=0x%02x ]\n", cmd, addr);
96 default:
fatal(
"[ rtl8139c eeprom: only the read command has" 97 " been implemented. sorry. ]\n");
126 uint64_t idata = 0, odata = 0;
131 switch (relative_addr) {
139 idata &= ~RL_CMD_RESET;
172 fatal(
"rtl8139c: unimplemented write to" 173 " register 0x82.\n");
180 fatal(
"[ rtl8139c: unimplemented write to " 181 "offset 0x%x: data=0x%x ]\n", (
int)
182 relative_addr, (
int)idata);
184 fatal(
"[ rtl8139c: unimplemented read from " 185 "offset 0x%x ]\n", (
int)relative_addr);
218 snprintf(name2, nlen,
"%s [%02x:%02x:%02x:%02x:%02x:%02x]",
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
void fatal(const char *fmt,...)
int8_t eeprom_cur_cmd_bit
#define CHECK_ALLOCATION(ptr)
void net_add_nic(struct net *net, void *extra, unsigned char *macaddr)
void net_generate_unique_mac(struct machine *, unsigned char *macbuf)
#define INTERRUPT_CONNECT(name, istruct)
uint16_t eeprom_reg[EEPROM_SIZE]
void memory_writemax64(struct cpu *cpu, unsigned char *buf, int len, uint64_t data)
void memory_device_register(struct memory *mem, const char *, uint64_t baseaddr, uint64_t len, int(*f)(struct cpu *, struct memory *, uint64_t, unsigned char *, size_t, int, void *), void *extra, int flags, unsigned char *dyntrans_data)
#define DEV_RTL8139C_LENGTH