1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2020 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
9 #include "txgbe_type.h"
11 #define TXGBE_VF_MAX_TX_QUEUES 8
12 #define TXGBE_VF_MAX_RX_QUEUES 8
14 struct txgbevf_hw_stats {
34 u64 saved_reset_vfgprc;
35 u64 saved_reset_vfgptc;
36 u64 saved_reset_vfgorc;
37 u64 saved_reset_vfgotc;
38 u64 saved_reset_vfmprc;
41 s32 txgbe_init_ops_vf(struct txgbe_hw *hw);
42 s32 txgbe_start_hw_vf(struct txgbe_hw *hw);
43 s32 txgbe_reset_hw_vf(struct txgbe_hw *hw);
44 s32 txgbe_stop_hw_vf(struct txgbe_hw *hw);
45 s32 txgbe_get_mac_addr_vf(struct txgbe_hw *hw, u8 *mac_addr);
46 s32 txgbe_check_mac_link_vf(struct txgbe_hw *hw, u32 *speed,
47 bool *link_up, bool autoneg_wait_to_complete);
48 s32 txgbe_set_rar_vf(struct txgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
50 s32 txgbevf_set_uc_addr_vf(struct txgbe_hw *hw, u32 index, u8 *addr);
51 s32 txgbe_update_mc_addr_list_vf(struct txgbe_hw *hw, u8 *mc_addr_list,
52 u32 mc_addr_count, txgbe_mc_addr_itr next,
54 s32 txgbevf_update_xcast_mode(struct txgbe_hw *hw, int xcast_mode);
55 s32 txgbe_set_vfta_vf(struct txgbe_hw *hw, u32 vlan, u32 vind,
56 bool vlan_on, bool vlvf_bypass);
57 s32 txgbevf_rlpml_set_vf(struct txgbe_hw *hw, u16 max_size);
58 int txgbevf_negotiate_api_version(struct txgbe_hw *hw, int api);
59 int txgbevf_get_queues(struct txgbe_hw *hw, unsigned int *num_tcs,
60 unsigned int *default_tc);
62 #endif /* __TXGBE_VF_H__ */