/* Copy data from the MIPSNET rx data port  */
static int ioiocpy_frommipsnet(struct net_device *dev, unsigned char *kdata, int len)
/* Copy data from the MIPSNET rx data port  */
static int ioiocpy_frommipsnet(struct net_device *dev, unsigned char *kdata, int len)
{
	for (; len > 0; len--, kdata++)
		*kdata = inb(regaddr(dev, rxDataBuffer));
	return inl(regaddr(dev, rxDataCount));
}