Revision 2507c12a hw/etraxfs_eth.c
b/hw/etraxfs_eth.c | ||
---|---|---|
598 | 598 |
tdk_init(ð->phy); |
599 | 599 |
mdio_attach(ð->mdio_bus, ð->phy, eth->phyaddr); |
600 | 600 |
|
601 |
eth->ethregs = cpu_register_io_memory(eth_read, eth_write, eth); |
|
601 |
eth->ethregs = cpu_register_io_memory(eth_read, eth_write, eth, |
|
602 |
DEVICE_NATIVE_ENDIAN); |
|
602 | 603 |
cpu_register_physical_memory (base, 0x5c, eth->ethregs); |
603 | 604 |
|
604 | 605 |
memcpy(eth->conf.macaddr.a, nd->macaddr, sizeof(nd->macaddr)); |
Also available in: Unified diff