/* Accessor functions replacing the "weak" functions in drivers/net/smc911x.c  */
u32 smc911x_reg_read(struct eth_device *dev, u32 addr)
/* Accessor functions replacing the "weak" functions in drivers/net/smc911x.c  */
u32 smc911x_reg_read(struct eth_device *dev, u32 addr)
{
	volatile u32 data;
	addr += dev->iobase;
	reg_write(EBI_DEV1_CONFIG2(EBI_BASE), 0x0000004F);
	ebi_wait();
	reg_write(EBI_CPU_IO_ACCS(EBI_BASE), (EXT_DEVICE_CHANNEL_1 | addr));
	ebi_wait();
	data = reg_read(EBI_IO_ACCS_DATA(EBI_BASE));
	return (data);
}