src/dpdk/drivers/net/ixgbe/base/ixgbe_x540.c
u64 ixgbe_get_supported_physical_layer_X540(struct ixgbe_hw *hw)
{
	u64 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN;
	u16 ext_ability = 0;

	DEBUGFUNC("ixgbe_get_supported_physical_layer_X540");

	hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY,
	IXGBE_MDIO_PMA_PMD_DEV_TYPE, &ext_ability);
	if (ext_ability & IXGBE_MDIO_PHY_10GBASET_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T;
	if (ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T;
	if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX;

	return physical_layer;
}
/**
 * ixgbe_get_supported_physical_layer_X540 - Returns physical layer type
 * @hw: pointer to hardware structure
 *
 * Determines physical layer capabilities of the current configuration.
 **/
Returns physical layer type
@hw: pointer to hardware structure

Determines physical layer capabilities of the current configuration.
Returns physical layer type @hw : pointer to hardware structure Determines physical layer capabilities of the current configuration .
u64 ixgbe_get_supported_physical_layer_X540(struct ixgbe_hw *hw)
{
	u64 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN;
	u16 ext_ability = 0;
	DEBUGFUNC("ixgbe_get_supported_physical_layer_X540");
	hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY,
	IXGBE_MDIO_PMA_PMD_DEV_TYPE, &ext_ability);
	if (ext_ability & IXGBE_MDIO_PHY_10GBASET_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T;
	if (ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T;
	if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY)
		physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX;
	return physical_layer;
}
u64 ixgbe_get_supported_physical_layer_X540 ( struct ixgbe_hw * hw ) { u64 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN ; u16 ext_ability = 0 ; DEBUGFUNC ( " " ) ; hw -> phy . ops . read_reg ( hw , IXGBE_MDIO_PHY_EXT_ABILITY , IXGBE_MDIO_PMA_PMD_DEV_TYPE , & ext_ability ) ; if ( ext_ability & IXGBE_MDIO_PHY_10GBASET_ABILITY ) physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T ; if ( ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY ) physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T ; if ( ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY ) physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX ; return physical_layer ; }
ixgbe_get_supported_physical_layer_X540 - Returns physical layer type
 @hw: pointer to hardware structure
ixgbe_get_supported_physical_layer_X540 - Returns physical layer type @hw : pointer to hardware structure