FreeBSD/sys/dev/otus/if_otus.c
/*
 * Return default value for PHY register based on current operating mode.
 */
Return default value for PHY register based on current operating mode.
Return default value for PHY register based on current operating mode .
uint32_t
otus_phy_get_def(struct otus_softc *sc, uint32_t reg)
{
	int i;
	for (i = 0; i < nitems(ar5416_phy_regs); i++)
		if (AR_PHY(ar5416_phy_regs[i]) == reg)
			return sc->phy_vals[i];
	return 0;	
}
uint32_t otus_phy_get_def ( struct otus_softc * sc , uint32_t reg ) { int i ; for ( i = 0 ; i < nitems ( ar5416_phy_regs ) ; i ++ ) if ( AR_PHY ( ar5416_phy_regs [ i ] ) == reg ) return sc -> phy_vals [ i ] ; return 0 ; }
Return default value for PHY register based on current operating mode.
Return default value for PHY register based on current operating mode .
/* Register not found. */