Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (c)  2018 Intel Corporation */
0003 
0004 #ifndef _IGC_PHY_H_
0005 #define _IGC_PHY_H_
0006 
0007 #include "igc_mac.h"
0008 
0009 s32 igc_check_reset_block(struct igc_hw *hw);
0010 s32 igc_phy_hw_reset(struct igc_hw *hw);
0011 s32 igc_get_phy_id(struct igc_hw *hw);
0012 s32 igc_phy_has_link(struct igc_hw *hw, u32 iterations,
0013              u32 usec_interval, bool *success);
0014 void igc_check_downshift(struct igc_hw *hw);
0015 s32 igc_setup_copper_link(struct igc_hw *hw);
0016 void igc_power_up_phy_copper(struct igc_hw *hw);
0017 void igc_power_down_phy_copper(struct igc_hw *hw);
0018 s32 igc_write_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 data);
0019 s32 igc_read_phy_reg_gpy(struct igc_hw *hw, u32 offset, u16 *data);
0020 u16 igc_read_phy_fw_version(struct igc_hw *hw);
0021 
0022 #endif