0001
0002
0003
0004 #ifndef _IGC_MAC_H_
0005 #define _IGC_MAC_H_
0006
0007 #include "igc_hw.h"
0008 #include "igc_phy.h"
0009 #include "igc_defines.h"
0010
0011
0012 s32 igc_disable_pcie_master(struct igc_hw *hw);
0013 s32 igc_check_for_copper_link(struct igc_hw *hw);
0014 s32 igc_config_fc_after_link_up(struct igc_hw *hw);
0015 s32 igc_force_mac_fc(struct igc_hw *hw);
0016 void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count);
0017 s32 igc_setup_link(struct igc_hw *hw);
0018 void igc_clear_hw_cntrs_base(struct igc_hw *hw);
0019 s32 igc_get_auto_rd_done(struct igc_hw *hw);
0020 void igc_put_hw_semaphore(struct igc_hw *hw);
0021 void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index);
0022 void igc_config_collision_dist(struct igc_hw *hw);
0023
0024 s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed,
0025 u16 *duplex);
0026
0027 bool igc_enable_mng_pass_thru(struct igc_hw *hw);
0028 void igc_update_mc_addr_list(struct igc_hw *hw,
0029 u8 *mc_addr_list, u32 mc_addr_count);
0030
0031 enum igc_mng_mode {
0032 igc_mng_mode_none = 0,
0033 igc_mng_mode_asf,
0034 igc_mng_mode_pt,
0035 igc_mng_mode_ipmi,
0036 igc_mng_mode_host_if_only
0037 };
0038
0039 #endif