1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
11 #define NGBE_EM_MAX_TX_QUEUES 8
12 #define NGBE_EM_MAX_RX_QUEUES 8
13 #define NGBE_EM_RAR_ENTRIES 32
14 #define NGBE_EM_MC_TBL_SIZE 32
16 s32 ngbe_init_hw(struct ngbe_hw *hw);
17 s32 ngbe_start_hw(struct ngbe_hw *hw);
18 s32 ngbe_reset_hw_em(struct ngbe_hw *hw);
19 s32 ngbe_stop_hw(struct ngbe_hw *hw);
20 s32 ngbe_get_mac_addr(struct ngbe_hw *hw, u8 *mac_addr);
22 void ngbe_set_lan_id_multi_port(struct ngbe_hw *hw);
24 s32 ngbe_check_mac_link_em(struct ngbe_hw *hw, u32 *speed,
25 bool *link_up, bool link_up_wait_to_complete);
26 s32 ngbe_get_link_capabilities_em(struct ngbe_hw *hw,
29 s32 ngbe_setup_mac_link_em(struct ngbe_hw *hw,
31 bool autoneg_wait_to_complete);
33 s32 ngbe_set_rar(struct ngbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
35 s32 ngbe_clear_rar(struct ngbe_hw *hw, u32 index);
36 s32 ngbe_init_rx_addrs(struct ngbe_hw *hw);
38 s32 ngbe_validate_mac_addr(u8 *mac_addr);
39 s32 ngbe_acquire_swfw_sync(struct ngbe_hw *hw, u32 mask);
40 void ngbe_release_swfw_sync(struct ngbe_hw *hw, u32 mask);
42 s32 ngbe_set_vmdq(struct ngbe_hw *hw, u32 rar, u32 vmdq);
43 s32 ngbe_clear_vmdq(struct ngbe_hw *hw, u32 rar, u32 vmdq);
44 s32 ngbe_init_uta_tables(struct ngbe_hw *hw);
46 s32 ngbe_init_thermal_sensor_thresh(struct ngbe_hw *hw);
47 s32 ngbe_mac_check_overtemp(struct ngbe_hw *hw);
48 void ngbe_disable_rx(struct ngbe_hw *hw);
49 s32 ngbe_init_shared_code(struct ngbe_hw *hw);
50 s32 ngbe_set_mac_type(struct ngbe_hw *hw);
51 s32 ngbe_init_ops_pf(struct ngbe_hw *hw);
52 s32 ngbe_init_phy(struct ngbe_hw *hw);
53 void ngbe_map_device_id(struct ngbe_hw *hw);
55 #endif /* _NGBE_HW_H_ */