506e4b13a483bb144f4080628462830ae7626fc9
[dpdk.git] / drivers / net / txgbe / base / txgbe_hw.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2020
3  */
4
5 #ifndef _TXGBE_HW_H_
6 #define _TXGBE_HW_H_
7
8 #include "txgbe_type.h"
9
10 s32 txgbe_init_hw(struct txgbe_hw *hw);
11
12 void txgbe_set_lan_id_multi_port(struct txgbe_hw *hw);
13
14 s32 txgbe_validate_mac_addr(u8 *mac_addr);
15
16 s32 txgbe_check_mac_link(struct txgbe_hw *hw,
17                                u32 *speed,
18                                bool *link_up, bool link_up_wait_to_complete);
19
20 void txgbe_clear_tx_pending(struct txgbe_hw *hw);
21
22 s32 txgbe_reset_pipeline_raptor(struct txgbe_hw *hw);
23
24 s32 txgbe_init_shared_code(struct txgbe_hw *hw);
25 s32 txgbe_set_mac_type(struct txgbe_hw *hw);
26 s32 txgbe_init_ops_pf(struct txgbe_hw *hw);
27 s32 txgbe_get_link_capabilities_raptor(struct txgbe_hw *hw,
28                                       u32 *speed, bool *autoneg);
29 s32 txgbe_start_mac_link_raptor(struct txgbe_hw *hw,
30                                bool autoneg_wait_to_complete);
31 s32 txgbe_setup_mac_link(struct txgbe_hw *hw, u32 speed,
32                                bool autoneg_wait_to_complete);
33 void txgbe_init_mac_link_ops(struct txgbe_hw *hw);
34 s32 txgbe_reset_hw(struct txgbe_hw *hw);
35 s32 txgbe_init_phy_raptor(struct txgbe_hw *hw);
36 bool txgbe_verify_lesm_fw_enabled_raptor(struct txgbe_hw *hw);
37 #endif /* _TXGBE_HW_H_ */