xref: /linux/drivers/net/ethernet/intel/igc/igc_mac.h (revision 5586838fe9ced0980e210b39d635ff3842297448)
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"
8*5586838fSSasha 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);
18c0071c7aSSasha Neftin void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count);
19c0071c7aSSasha Neftin s32 igc_setup_link(struct igc_hw *hw);
20c0071c7aSSasha Neftin void igc_clear_hw_cntrs_base(struct igc_hw *hw);
21c0071c7aSSasha Neftin s32 igc_get_auto_rd_done(struct igc_hw *hw);
22c0071c7aSSasha Neftin void igc_put_hw_semaphore(struct igc_hw *hw);
23ab405612SSasha Neftin void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index);
24ab405612SSasha Neftin void igc_config_collision_dist(struct igc_hw *hw);
25ab405612SSasha Neftin 
26ab405612SSasha Neftin s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed,
27ab405612SSasha Neftin 				    u16 *duplex);
28c0071c7aSSasha Neftin 
29*5586838fSSasha Neftin bool igc_enable_mng_pass_thru(struct igc_hw *hw);
30*5586838fSSasha Neftin 
31*5586838fSSasha Neftin enum igc_mng_mode {
32*5586838fSSasha Neftin 	igc_mng_mode_none = 0,
33*5586838fSSasha Neftin 	igc_mng_mode_asf,
34*5586838fSSasha Neftin 	igc_mng_mode_pt,
35*5586838fSSasha Neftin 	igc_mng_mode_ipmi,
36*5586838fSSasha Neftin 	igc_mng_mode_host_if_only
37*5586838fSSasha Neftin };
38*5586838fSSasha Neftin 
39146740f9SSasha Neftin #endif
40