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" 8c0071c7aSSasha Neftin #include "igc_defines.h" 9c0071c7aSSasha Neftin 10146740f9SSasha Neftin #ifndef IGC_REMOVED 11146740f9SSasha Neftin #define IGC_REMOVED(a) (0) 12146740f9SSasha Neftin #endif /* IGC_REMOVED */ 13146740f9SSasha Neftin 14c0071c7aSSasha Neftin /* forward declaration */ 15c0071c7aSSasha Neftin s32 igc_disable_pcie_master(struct igc_hw *hw); 16*ab405612SSasha Neftin s32 igc_check_for_copper_link(struct igc_hw *hw); 17c0071c7aSSasha Neftin void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count); 18c0071c7aSSasha Neftin s32 igc_setup_link(struct igc_hw *hw); 19c0071c7aSSasha Neftin void igc_clear_hw_cntrs_base(struct igc_hw *hw); 20c0071c7aSSasha Neftin s32 igc_get_auto_rd_done(struct igc_hw *hw); 21c0071c7aSSasha Neftin void igc_put_hw_semaphore(struct igc_hw *hw); 22*ab405612SSasha Neftin void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index); 23*ab405612SSasha Neftin void igc_config_collision_dist(struct igc_hw *hw); 24*ab405612SSasha Neftin 25*ab405612SSasha Neftin s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed, 26*ab405612SSasha Neftin u16 *duplex); 27c0071c7aSSasha Neftin 28146740f9SSasha Neftin #endif 29