2205156eb98f0dfecd04ad15fa1c701423a11b98
[dpdk.git] / drivers / net / ngbe / base / ngbe_hw.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
3  * Copyright(c) 2010-2017 Intel Corporation
4  */
5
6 #ifndef _NGBE_HW_H_
7 #define _NGBE_HW_H_
8
9 #include "ngbe_type.h"
10
11 #define NGBE_EM_MAX_TX_QUEUES 8
12 #define NGBE_EM_MAX_RX_QUEUES 8
13
14 s32 ngbe_init_hw(struct ngbe_hw *hw);
15 s32 ngbe_reset_hw_em(struct ngbe_hw *hw);
16 s32 ngbe_stop_hw(struct ngbe_hw *hw);
17
18 void ngbe_set_lan_id_multi_port(struct ngbe_hw *hw);
19
20 s32 ngbe_acquire_swfw_sync(struct ngbe_hw *hw, u32 mask);
21 void ngbe_release_swfw_sync(struct ngbe_hw *hw, u32 mask);
22
23 s32 ngbe_init_thermal_sensor_thresh(struct ngbe_hw *hw);
24 s32 ngbe_mac_check_overtemp(struct ngbe_hw *hw);
25 void ngbe_disable_rx(struct ngbe_hw *hw);
26 s32 ngbe_init_shared_code(struct ngbe_hw *hw);
27 s32 ngbe_set_mac_type(struct ngbe_hw *hw);
28 s32 ngbe_init_ops_pf(struct ngbe_hw *hw);
29 s32 ngbe_init_phy(struct ngbe_hw *hw);
30 void ngbe_map_device_id(struct ngbe_hw *hw);
31
32 #endif /* _NGBE_HW_H_ */