Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / drivers / net / ethernet / intel / igc / igc_mac.h
CommitLineData
146740f9
SN
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (c) 2018 Intel Corporation */
3
4#ifndef _IGC_MAC_H_
5#define _IGC_MAC_H_
6
c0071c7a 7#include "igc_hw.h"
5586838f 8#include "igc_phy.h"
c0071c7a
SN
9#include "igc_defines.h"
10
146740f9
SN
11#ifndef IGC_REMOVED
12#define IGC_REMOVED(a) (0)
13#endif /* IGC_REMOVED */
14
c0071c7a
SN
15/* forward declaration */
16s32 igc_disable_pcie_master(struct igc_hw *hw);
ab405612 17s32 igc_check_for_copper_link(struct igc_hw *hw);
4eb80801
SN
18s32 igc_config_fc_after_link_up(struct igc_hw *hw);
19s32 igc_force_mac_fc(struct igc_hw *hw);
c0071c7a
SN
20void igc_init_rx_addrs(struct igc_hw *hw, u16 rar_count);
21s32 igc_setup_link(struct igc_hw *hw);
22void igc_clear_hw_cntrs_base(struct igc_hw *hw);
23s32 igc_get_auto_rd_done(struct igc_hw *hw);
24void igc_put_hw_semaphore(struct igc_hw *hw);
ab405612
SN
25void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index);
26void igc_config_collision_dist(struct igc_hw *hw);
27
28s32 igc_get_speed_and_duplex_copper(struct igc_hw *hw, u16 *speed,
29 u16 *duplex);
c0071c7a 30
5586838f 31bool igc_enable_mng_pass_thru(struct igc_hw *hw);
7f839684
SN
32void igc_update_mc_addr_list(struct igc_hw *hw,
33 u8 *mc_addr_list, u32 mc_addr_count);
5586838f
SN
34
35enum igc_mng_mode {
36 igc_mng_mode_none = 0,
37 igc_mng_mode_asf,
38 igc_mng_mode_pt,
39 igc_mng_mode_ipmi,
40 igc_mng_mode_host_if_only
41};
42
146740f9 43#endif