src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
s32 ixgbe_read_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
			       u32 device_type, u16 *phy_data)
{
	s32 status;
	u32 mask = hw->phy.phy_semaphore_mask | IXGBE_GSSR_TOKEN_SM;

	DEBUGFUNC("ixgbe_read_phy_reg_x550a");

	if (hw->mac.ops.acquire_swfw_sync(hw, mask))
		return IXGBE_ERR_SWFW_SYNC;

	status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data);

	hw->mac.ops.release_swfw_sync(hw, mask);

	return status;
}
/**
 * ixgbe_read_phy_reg_x550a  - Reads specified PHY register
 * @hw: pointer to hardware structure
 * @reg_addr: 32 bit address of PHY register to read
 * @device_type: 5 bit device type
 * @phy_data: Pointer to read data from PHY register
 *
 * Reads a value from a specified PHY register using the SWFW lock and PHY
 * Token. The PHY Token is needed since the MDIO is shared between to MAC
 * instances.
 **/
ixgbe_read_phy_reg_x550a  - Reads specified PHY register
@hw: pointer to hardware structure
@reg_addr: 32 bit address of PHY register to read
@device_type: 5 bit device type
@phy_data: Pointer to read data from PHY register

Reads a value from a specified PHY register using the SWFW lock and PHY
Token. The PHY Token is needed since the MDIO is shared between to MAC
instances.
ixgbe_read_phy_reg_x550a - Reads specified PHY register @hw : pointer to hardware structure @reg_addr : 32 bit address of PHY register to read @device_type : 5 bit device type @phy_data : Pointer to read data from PHY register Reads a value from a specified PHY register using the SWFW lock and PHY Token . The PHY Token is needed since the MDIO is shared between to MAC instances .
s32 ixgbe_read_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,
			       u32 device_type, u16 *phy_data)
{
	s32 status;
	u32 mask = hw->phy.phy_semaphore_mask | IXGBE_GSSR_TOKEN_SM;
	DEBUGFUNC("ixgbe_read_phy_reg_x550a");
	if (hw->mac.ops.acquire_swfw_sync(hw, mask))
		return IXGBE_ERR_SWFW_SYNC;
	status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data);
	hw->mac.ops.release_swfw_sync(hw, mask);
	return status;
}
s32 ixgbe_read_phy_reg_x550a ( struct ixgbe_hw * hw , u32 reg_addr , u32 device_type , u16 * phy_data ) { s32 status ; u32 mask = hw -> phy . phy_semaphore_mask | IXGBE_GSSR_TOKEN_SM ; DEBUGFUNC ( " " ) ; if ( hw -> mac . ops . acquire_swfw_sync ( hw , mask ) ) return IXGBE_ERR_SWFW_SYNC ; status = hw -> phy . ops . read_reg_mdi ( hw , reg_addr , device_type , phy_data ) ; hw -> mac . ops . release_swfw_sync ( hw , mask ) ; return status ; }
ixgbe_read_phy_reg_x550a  - Reads specified PHY register
 @hw: pointer to hardware structure
 @reg_addr: 32 bit address of PHY register to read
 @device_type: 5 bit device type
 @phy_data: Pointer to read data from PHY register
ixgbe_read_phy_reg_x550a - Reads specified PHY register @hw : pointer to hardware structure @reg_addr : 32 bit address of PHY register to read @device_type : 5 bit device type @phy_data : Pointer to read data from PHY register