FreeBSD/sys/dev/etherswitch/arswitch/arswitch_phy.c
/*
 * Access PHYs integrated into the switch by going direct
 * to the PHY space itself, rather than through the switch
 * MDIO register.
 */
Access PHYs integrated into the switch by going direct
to the PHY space itself, rather than through the switch
MDIO register.
Access PHYs integrated into the switch by going direct to the PHY space itself rather than through the switch MDIO register .
int
arswitch_readphy_external(device_t dev, int phy, int reg)
{
	int ret;
	struct arswitch_softc *sc;
	sc = device_get_softc(dev);
	ARSWITCH_LOCK(sc);
	ret = (MDIO_READREG(device_get_parent(dev), phy, reg));
	ARSWITCH_UNLOCK(sc);
	return (ret);
}
int arswitch_readphy_external ( device_t dev , int phy , int reg ) { int ret ; struct arswitch_softc * sc ; sc = device_get_softc ( dev ) ; ARSWITCH_LOCK ( sc ) ; ret = ( MDIO_READREG ( device_get_parent ( dev ) , phy , reg ) ) ; ARSWITCH_UNLOCK ( sc ) ; return ( ret ) ; }
Access PHYs integrated into the switch by going direct
 to the PHY space itself, rather than through the switch
 MDIO register.
Access PHYs integrated into the switch by going direct to the PHY space itself rather than through the switch MDIO register .