18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright (c) 2018 Intel Corporation */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef _IGC_PHY_H_ 58c2ecf20Sopenharmony_ci#define _IGC_PHY_H_ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include "igc_mac.h" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cis32 igc_check_reset_block(struct igc_hw *hw); 108c2ecf20Sopenharmony_cis32 igc_phy_hw_reset(struct igc_hw *hw); 118c2ecf20Sopenharmony_cis32 igc_get_phy_id(struct igc_hw *hw); 128c2ecf20Sopenharmony_cis32 igc_phy_has_link(struct igc_hw *hw, u32 iterations, 138c2ecf20Sopenharmony_ci u32 usec_interval, bool *success); 148c2ecf20Sopenharmony_cis32 igc_check_downshift(struct igc_hw *hw); 158c2ecf20Sopenharmony_cis32 igc_setup_copper_link(struct igc_hw *hw); 168c2ecf20Sopenharmony_civoid igc_power_up_phy_copper(struct igc_hw *hw); 178c2ecf20Sopenharmony_civoid igc_power_down_phy_copper(struct igc_hw *hw); 188c2ecf20Sopenharmony_cis32 igc_write_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 data); 198c2ecf20Sopenharmony_cis32 igc_read_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 *data); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif 22