1*5586838fSSasha Neftin /* SPDX-License-Identifier: GPL-2.0 */ 2*5586838fSSasha Neftin /* Copyright (c) 2018 Intel Corporation */ 3*5586838fSSasha Neftin 4*5586838fSSasha Neftin #ifndef _IGC_PHY_H_ 5*5586838fSSasha Neftin #define _IGC_PHY_H_ 6*5586838fSSasha Neftin 7*5586838fSSasha Neftin #include "igc_mac.h" 8*5586838fSSasha Neftin 9*5586838fSSasha Neftin s32 igc_check_reset_block(struct igc_hw *hw); 10*5586838fSSasha Neftin s32 igc_phy_hw_reset(struct igc_hw *hw); 11*5586838fSSasha Neftin s32 igc_get_phy_id(struct igc_hw *hw); 12*5586838fSSasha Neftin s32 igc_phy_has_link(struct igc_hw *hw, u32 iterations, 13*5586838fSSasha Neftin u32 usec_interval, bool *success); 14*5586838fSSasha Neftin s32 igc_check_downshift(struct igc_hw *hw); 15*5586838fSSasha Neftin void igc_power_up_phy_copper(struct igc_hw *hw); 16*5586838fSSasha Neftin void igc_power_down_phy_copper(struct igc_hw *hw); 17*5586838fSSasha Neftin s32 igc_write_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 data); 18*5586838fSSasha Neftin s32 igc_read_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 *data); 19*5586838fSSasha Neftin 20*5586838fSSasha Neftin #endif 21