15586838fSSasha Neftin /* SPDX-License-Identifier: GPL-2.0 */ 25586838fSSasha Neftin /* Copyright (c) 2018 Intel Corporation */ 35586838fSSasha Neftin 45586838fSSasha Neftin #ifndef _IGC_PHY_H_ 55586838fSSasha Neftin #define _IGC_PHY_H_ 65586838fSSasha Neftin 75586838fSSasha Neftin #include "igc_mac.h" 85586838fSSasha Neftin 95586838fSSasha Neftin s32 igc_check_reset_block(struct igc_hw *hw); 105586838fSSasha Neftin s32 igc_phy_hw_reset(struct igc_hw *hw); 115586838fSSasha Neftin s32 igc_get_phy_id(struct igc_hw *hw); 125586838fSSasha Neftin s32 igc_phy_has_link(struct igc_hw *hw, u32 iterations, 135586838fSSasha Neftin u32 usec_interval, bool *success); 14*95073d08SSasha Neftin void igc_check_downshift(struct igc_hw *hw); 154eb80801SSasha Neftin s32 igc_setup_copper_link(struct igc_hw *hw); 165586838fSSasha Neftin void igc_power_up_phy_copper(struct igc_hw *hw); 175586838fSSasha Neftin void igc_power_down_phy_copper(struct igc_hw *hw); 185586838fSSasha Neftin s32 igc_write_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 data); 195586838fSSasha Neftin s32 igc_read_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 *data); 2094f794d1SSasha Neftin u16 igc_read_phy_fw_version(struct igc_hw *hw); 215586838fSSasha Neftin 225586838fSSasha Neftin #endif 23