18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (c)  2018 Intel Corporation */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _IGC_MAC_H_
58c2ecf20Sopenharmony_ci#define _IGC_MAC_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include "igc_hw.h"
88c2ecf20Sopenharmony_ci#include "igc_phy.h"
98c2ecf20Sopenharmony_ci#include "igc_defines.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* forward declaration */
128c2ecf20Sopenharmony_cis32 igc_disable_pcie_master(struct igc_hw *hw);
138c2ecf20Sopenharmony_cis32 igc_check_for_copper_link(struct igc_hw *hw);
148c2ecf20Sopenharmony_cis32 igc_config_fc_after_link_up(struct igc_hw *hw);
158c2ecf20Sopenharmony_cis32 igc_force_mac_fc(struct igc_hw *hw);
168c2ecf20Sopenharmony_civoid igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count);
178c2ecf20Sopenharmony_cis32 igc_setup_link(struct igc_hw *hw);
188c2ecf20Sopenharmony_civoid igc_clear_hw_cntrs_base(struct igc_hw *hw);
198c2ecf20Sopenharmony_cis32 igc_get_auto_rd_done(struct igc_hw *hw);
208c2ecf20Sopenharmony_civoid igc_put_hw_semaphore(struct igc_hw *hw);
218c2ecf20Sopenharmony_civoid igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index);
228c2ecf20Sopenharmony_civoid igc_config_collision_dist(struct igc_hw *hw);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_cis32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed,
258c2ecf20Sopenharmony_ci				    u16 *duplex);
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cibool igc_enable_mng_pass_thru(struct igc_hw *hw);
288c2ecf20Sopenharmony_civoid igc_update_mc_addr_list(struct igc_hw *hw,
298c2ecf20Sopenharmony_ci			     u8 *mc_addr_list, u32 mc_addr_count);
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cienum igc_mng_mode {
328c2ecf20Sopenharmony_ci	igc_mng_mode_none = 0,
338c2ecf20Sopenharmony_ci	igc_mng_mode_asf,
348c2ecf20Sopenharmony_ci	igc_mng_mode_pt,
358c2ecf20Sopenharmony_ci	igc_mng_mode_ipmi,
368c2ecf20Sopenharmony_ci	igc_mng_mode_host_if_only
378c2ecf20Sopenharmony_ci};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#endif
40