162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright (c) 2018 Intel Corporation */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef _IGC_MAC_H_ 562306a36Sopenharmony_ci#define _IGC_MAC_H_ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include "igc_hw.h" 862306a36Sopenharmony_ci#include "igc_phy.h" 962306a36Sopenharmony_ci#include "igc_defines.h" 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* forward declaration */ 1262306a36Sopenharmony_cis32 igc_disable_pcie_master(struct igc_hw *hw); 1362306a36Sopenharmony_cis32 igc_check_for_copper_link(struct igc_hw *hw); 1462306a36Sopenharmony_cis32 igc_config_fc_after_link_up(struct igc_hw *hw); 1562306a36Sopenharmony_cis32 igc_force_mac_fc(struct igc_hw *hw); 1662306a36Sopenharmony_civoid igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count); 1762306a36Sopenharmony_cis32 igc_setup_link(struct igc_hw *hw); 1862306a36Sopenharmony_civoid igc_clear_hw_cntrs_base(struct igc_hw *hw); 1962306a36Sopenharmony_cis32 igc_get_auto_rd_done(struct igc_hw *hw); 2062306a36Sopenharmony_civoid igc_put_hw_semaphore(struct igc_hw *hw); 2162306a36Sopenharmony_civoid igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index); 2262306a36Sopenharmony_civoid igc_config_collision_dist(struct igc_hw *hw); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_cis32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed, 2562306a36Sopenharmony_ci u16 *duplex); 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_cibool igc_enable_mng_pass_thru(struct igc_hw *hw); 2862306a36Sopenharmony_civoid igc_update_mc_addr_list(struct igc_hw *hw, 2962306a36Sopenharmony_ci u8 *mc_addr_list, u32 mc_addr_count); 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_cienum igc_mng_mode { 3262306a36Sopenharmony_ci igc_mng_mode_none = 0, 3362306a36Sopenharmony_ci igc_mng_mode_asf, 3462306a36Sopenharmony_ci igc_mng_mode_pt, 3562306a36Sopenharmony_ci igc_mng_mode_ipmi, 3662306a36Sopenharmony_ci igc_mng_mode_host_if_only 3762306a36Sopenharmony_ci}; 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci#endif 40