7c84c68925a4a2548c1ff568b30ef6f2fbf0c863
[dpdk.git] / drivers / net / txgbe / base / txgbe_vf.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2020
3  */
4
5 #ifndef _TXGBE_VF_H_
6 #define _TXGBE_VF_H_
7
8 #include "txgbe_type.h"
9
10 #define TXGBE_VF_MAX_TX_QUEUES  8
11 #define TXGBE_VF_MAX_RX_QUEUES  8
12
13 s32 txgbe_init_ops_vf(struct txgbe_hw *hw);
14 s32 txgbe_start_hw_vf(struct txgbe_hw *hw);
15 s32 txgbe_reset_hw_vf(struct txgbe_hw *hw);
16 s32 txgbe_stop_hw_vf(struct txgbe_hw *hw);
17 s32 txgbe_get_mac_addr_vf(struct txgbe_hw *hw, u8 *mac_addr);
18 s32 txgbe_check_mac_link_vf(struct txgbe_hw *hw, u32 *speed,
19                             bool *link_up, bool autoneg_wait_to_complete);
20 s32 txgbe_set_rar_vf(struct txgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
21                      u32 enable_addr);
22 s32 txgbevf_set_uc_addr_vf(struct txgbe_hw *hw, u32 index, u8 *addr);
23 s32 txgbevf_rlpml_set_vf(struct txgbe_hw *hw, u16 max_size);
24 int txgbevf_negotiate_api_version(struct txgbe_hw *hw, int api);
25 int txgbevf_get_queues(struct txgbe_hw *hw, unsigned int *num_tcs,
26                        unsigned int *default_tc);
27
28 #endif /* __TXGBE_VF_H__ */