1146740f9SSasha Neftin /* SPDX-License-Identifier: GPL-2.0 */ 2146740f9SSasha Neftin /* Copyright (c) 2018 Intel Corporation */ 3146740f9SSasha Neftin 4146740f9SSasha Neftin #ifndef _IGC_MAC_H_ 5146740f9SSasha Neftin #define _IGC_MAC_H_ 6146740f9SSasha Neftin 7c0071c7aSSasha Neftin #include "igc_hw.h" 85586838fSSasha Neftin #include "igc_phy.h" 9c0071c7aSSasha Neftin #include "igc_defines.h" 10c0071c7aSSasha Neftin 11146740f9SSasha Neftin #ifndef IGC_REMOVED 12146740f9SSasha Neftin #define IGC_REMOVED(a) (0) 13146740f9SSasha Neftin #endif /* IGC_REMOVED */ 14146740f9SSasha Neftin 15c0071c7aSSasha Neftin /* forward declaration */ 16c0071c7aSSasha Neftin s32 igc_disable_pcie_master(struct igc_hw *hw); 17ab405612SSasha Neftin s32 igc_check_for_copper_link(struct igc_hw *hw); 18*4eb80801SSasha Neftin s32 igc_config_fc_after_link_up(struct igc_hw *hw); 19*4eb80801SSasha Neftin s32 igc_force_mac_fc(struct igc_hw *hw); 20c0071c7aSSasha Neftin void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count); 21c0071c7aSSasha Neftin s32 igc_setup_link(struct igc_hw *hw); 22c0071c7aSSasha Neftin void igc_clear_hw_cntrs_base(struct igc_hw *hw); 23c0071c7aSSasha Neftin s32 igc_get_auto_rd_done(struct igc_hw *hw); 24c0071c7aSSasha Neftin void igc_put_hw_semaphore(struct igc_hw *hw); 25ab405612SSasha Neftin void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index); 26ab405612SSasha Neftin void igc_config_collision_dist(struct igc_hw *hw); 27ab405612SSasha Neftin 28ab405612SSasha Neftin s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed, 29ab405612SSasha Neftin u16 *duplex); 30c0071c7aSSasha Neftin 315586838fSSasha Neftin bool igc_enable_mng_pass_thru(struct igc_hw *hw); 325586838fSSasha Neftin 335586838fSSasha Neftin enum igc_mng_mode { 345586838fSSasha Neftin igc_mng_mode_none = 0, 355586838fSSasha Neftin igc_mng_mode_asf, 365586838fSSasha Neftin igc_mng_mode_pt, 375586838fSSasha Neftin igc_mng_mode_ipmi, 385586838fSSasha Neftin igc_mng_mode_host_if_only 395586838fSSasha Neftin }; 405586838fSSasha Neftin 41146740f9SSasha Neftin #endif 42