Beispiel #1
0
static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum)
{
	
	struct net_device *const dev = bus->priv;

	enable_mac(dev, 0); 
	return au1000_mdio_read(dev, phy_addr, regnum);
}
Beispiel #2
0
static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum)
{
	/* WARNING: bus->phy_map[phy_addr].attached_dev == dev does
	 * _NOT_ hold (e.g. when PHY is accessed through other MAC's MII bus) */
	struct net_device *const dev = bus->priv;

	enable_mac(dev, 0); /* make sure the MAC associated with this
			     * mii_bus is enabled */
	return au1000_mdio_read(dev, phy_addr, regnum);
}