kernels/linux-2.4.0/drivers/net/dmfe.c
/*
   Read one bit phy data from PHY controller
 */
Read one bit phy data from PHY controller
Read one bit phy data from PHY controller
static u16 phy_read_1bit(u32 ioaddr)
{
	u16 phy_data;
	outl(0x50000, ioaddr);
	DELAY_1US;
	phy_data = (inl(ioaddr) >> 19) & 0x1;
	outl(0x40000, ioaddr);
	DELAY_1US;
	return phy_data;
}
static u16 phy_read_1bit ( u32 ioaddr ) { u16 phy_data ; outl ( 0x50000 , ioaddr ) ; DELAY_1US ; phy_data = ( inl ( ioaddr ) >> 19 ) & 0x1 ; outl ( 0x40000 , ioaddr ) ; DELAY_1US ; return phy_data ; }
Read one bit phy data from PHY controller
Read one bit phy data from PHY controller