igc_mac.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (c) 2018 Intel Corporation */
  3. #ifndef _IGC_MAC_H_
  4. #define _IGC_MAC_H_
  5. #include "igc_hw.h"
  6. #include "igc_phy.h"
  7. #include "igc_defines.h"
  8. /* forward declaration */
  9. s32 igc_disable_pcie_master(struct igc_hw *hw);
  10. s32 igc_check_for_copper_link(struct igc_hw *hw);
  11. s32 igc_config_fc_after_link_up(struct igc_hw *hw);
  12. s32 igc_force_mac_fc(struct igc_hw *hw);
  13. void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count);
  14. s32 igc_setup_link(struct igc_hw *hw);
  15. void igc_clear_hw_cntrs_base(struct igc_hw *hw);
  16. s32 igc_get_auto_rd_done(struct igc_hw *hw);
  17. void igc_put_hw_semaphore(struct igc_hw *hw);
  18. void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index);
  19. void igc_config_collision_dist(struct igc_hw *hw);
  20. s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed,
  21. u16 *duplex);
  22. bool igc_enable_mng_pass_thru(struct igc_hw *hw);
  23. void igc_update_mc_addr_list(struct igc_hw *hw,
  24. u8 *mc_addr_list, u32 mc_addr_count);
  25. enum igc_mng_mode {
  26. igc_mng_mode_none = 0,
  27. igc_mng_mode_asf,
  28. igc_mng_mode_pt,
  29. igc_mng_mode_ipmi,
  30. igc_mng_mode_host_if_only
  31. };
  32. #endif