src/dpdk/drivers/net/txgbe/base/txgbe_phy.c
bool txgbe_validate_phy_addr(struct txgbe_hw *hw, u32 phy_addr)
{
	u16 phy_id = 0;
	bool valid = false;

	DEBUGFUNC("txgbe_validate_phy_addr");

	hw->phy.addr = phy_addr;
	hw->phy.read_reg(hw, TXGBE_MD_PHY_ID_HIGH,
			     TXGBE_MD_DEV_PMA_PMD, &phy_id);

	if (phy_id != 0xFFFF && phy_id != 0x0)
		valid = true;

	DEBUGOUT("PHY ID HIGH is 0x%04X\n", phy_id);

	return valid;
}
/**
 *  txgbe_validate_phy_addr - Determines phy address is valid
 *  @hw: pointer to hardware structure
 *  @phy_addr: PHY address
 *
 **/
Determines phy address is valid
@hw: pointer to hardware structure
@phy_addr: PHY address
Determines phy address is valid @hw : pointer to hardware structure @phy_addr : PHY address
bool txgbe_validate_phy_addr(struct txgbe_hw *hw, u32 phy_addr)
{
	u16 phy_id = 0;
	bool valid = false;
	DEBUGFUNC("txgbe_validate_phy_addr");
	hw->phy.addr = phy_addr;
	hw->phy.read_reg(hw, TXGBE_MD_PHY_ID_HIGH,
			     TXGBE_MD_DEV_PMA_PMD, &phy_id);
	if (phy_id != 0xFFFF && phy_id != 0x0)
		valid = true;
	DEBUGOUT("PHY ID HIGH is 0x%04X\n", phy_id);
	return valid;
}
bool txgbe_validate_phy_addr ( struct txgbe_hw * hw , u32 phy_addr ) { u16 phy_id = 0 ; bool valid = false ; DEBUGFUNC ( " " ) ; hw -> phy . addr = phy_addr ; hw -> phy . read_reg ( hw , TXGBE_MD_PHY_ID_HIGH , TXGBE_MD_DEV_PMA_PMD , & phy_id ) ; if ( phy_id != 0xFFFF && phy_id != 0x0 ) valid = true ; DEBUGOUT ( " \n " , phy_id ) ; return valid ; }
txgbe_validate_phy_addr - Determines phy address is valid
  @hw: pointer to hardware structure
  @phy_addr: PHY address
txgbe_validate_phy_addr - Determines phy address is valid @hw : pointer to hardware structure @phy_addr : PHY address