src/dpdk/drivers/net/ixgbe/base/ixgbe_82599.c
s32 ixgbe_identify_phy_82599(struct ixgbe_hw *hw)
{
	s32 status;

	DEBUGFUNC("ixgbe_identify_phy_82599");

	/* Detect PHY if not unknown - returns success if already detected. */
	status = ixgbe_identify_phy_generic(hw);
	if (status != IXGBE_SUCCESS) {
		/* 82599 10GBASE-T requires an external PHY */
		if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper)
			return status;
		else
			status = ixgbe_identify_module_generic(hw);
	}

	/* Set PHY type none if no PHY detected */
	if (hw->phy.type == ixgbe_phy_unknown) {
		hw->phy.type = ixgbe_phy_none;
		return IXGBE_SUCCESS;
	}

	/* Return error if SFP module has been detected but is not supported */
	if (hw->phy.type == ixgbe_phy_sfp_unsupported)
		return IXGBE_ERR_SFP_NOT_SUPPORTED;

	return status;
}
/**
 * ixgbe_identify_phy_82599 - Get physical layer module
 * @hw: pointer to hardware structure
 *
 * Determines the physical layer module found on the current adapter.
 * If PHY already detected, maintains current PHY type in hw struct,
 * otherwise executes the PHY detection routine.
 **/
Get physical layer module
@hw: pointer to hardware structure

Determines the physical layer module found on the current adapter.
If PHY already detected, maintains current PHY type in hw struct,
otherwise executes the PHY detection routine.
Get physical layer module @hw : pointer to hardware structure Determines the physical layer module found on the current adapter . If PHY already detected maintains current PHY type in hw struct otherwise executes the PHY detection routine .
s32 ixgbe_identify_phy_82599(struct ixgbe_hw *hw)
{
	s32 status;
	DEBUGFUNC("ixgbe_identify_phy_82599");
	status = ixgbe_identify_phy_generic(hw);
	if (status != IXGBE_SUCCESS) {
		if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper)
			return status;
		else
			status = ixgbe_identify_module_generic(hw);
	}
	if (hw->phy.type == ixgbe_phy_unknown) {
		hw->phy.type = ixgbe_phy_none;
		return IXGBE_SUCCESS;
	}
	if (hw->phy.type == ixgbe_phy_sfp_unsupported)
		return IXGBE_ERR_SFP_NOT_SUPPORTED;
	return status;
}
s32 ixgbe_identify_phy_82599 ( struct ixgbe_hw * hw ) { s32 status ; DEBUGFUNC ( " " ) ; status = ixgbe_identify_phy_generic ( hw ) ; if ( status != IXGBE_SUCCESS ) { if ( hw -> mac . ops . get_media_type ( hw ) == ixgbe_media_type_copper ) return status ; else status = ixgbe_identify_module_generic ( hw ) ; } if ( hw -> phy . type == ixgbe_phy_unknown ) { hw -> phy . type = ixgbe_phy_none ; return IXGBE_SUCCESS ; } if ( hw -> phy . type == ixgbe_phy_sfp_unsupported ) return IXGBE_ERR_SFP_NOT_SUPPORTED ; return status ; }
ixgbe_identify_phy_82599 - Get physical layer module
 @hw: pointer to hardware structure
ixgbe_identify_phy_82599 - Get physical layer module @hw : pointer to hardware structure
/* Detect PHY if not unknown - returns success if already detected. */ /* 82599 10GBASE-T requires an external PHY */ /* Set PHY type none if no PHY detected */ /* Return error if SFP module has been detected but is not supported */