kernels/linux-2.4.0/drivers/net/yellowfin.c
/* MII Managemen Data I/O accesses.
   These routines assume the MDIO controller is idle, and do not exit until
   the command is finished. */
MII Managemen Data I/O accesses.
These routines assume the MDIO controller is idle, and do not exit until
the command is finished.
MII Managemen Data I / O accesses . These routines assume the MDIO controller is idle and do not exit until the command is finished .
static int mdio_read(long ioaddr, int phy_id, int location)
{
	int i;
	YF_OUTW((phy_id<<8) + location, ioaddr + MII_Addr);
	YF_OUTW(1, ioaddr + MII_Cmd);
	for (i = 10000; i >= 0; i--)
		if ((YF_INW(ioaddr + MII_Status) & 1) == 0)
			break;
	return YF_INW(ioaddr + MII_Rd_Data);
}
static int mdio_read ( long ioaddr , int phy_id , int location ) { int i ; YF_OUTW ( ( phy_id << 8 ) + location , ioaddr + MII_Addr ) ; YF_OUTW ( 1 , ioaddr + MII_Cmd ) ; for ( i = 10000 ; i >= 0 ; i -- ) if ( ( YF_INW ( ioaddr + MII_Status ) & 1 ) == 0 ) break ; return YF_INW ( ioaddr + MII_Rd_Data ) ; }
MII Managemen Data I/O accesses.
MII Managemen Data I / O accesses .