Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_vf.h
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2001-2015, Intel Corporation | Copyright (c) 2001-2017, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
2. Redistributions in binary form must reproduce the above copyright | 2. Redistributions in binary form must reproduce the above copyright | ||||
notice, this list of conditions and the following disclaimer in the | notice, this list of conditions and the following disclaimer in the | ||||
documentation and/or other materials provided with the distribution. | documentation and/or other materials provided with the distribution. | ||||
3. Neither the name of the Intel Corporation nor the names of its | 3. Neither the name of the Intel Corporation nor the names of its | ||||
contributors may be used to endorse or promote products derived from | contributors may be used to endorse or promote products derived from | ||||
this software without specific prior written permission. | this software without specific prior written permission. | ||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
POSSIBILITY OF SUCH DAMAGE. | POSSIBILITY OF SUCH DAMAGE. | ||||
******************************************************************************/ | ******************************************************************************/ | ||||
/*$FreeBSD$*/ | /*$FreeBSD$*/ | ||||
#ifndef __IXGBE_VF_H__ | #ifndef _IXGBE_VF_H_ | ||||
#define __IXGBE_VF_H__ | #define _IXGBE_VF_H_ | ||||
#define IXGBE_VF_IRQ_CLEAR_MASK 7 | #define IXGBE_VF_IRQ_CLEAR_MASK 7 | ||||
#define IXGBE_VF_MAX_TX_QUEUES 8 | #define IXGBE_VF_MAX_TX_QUEUES 8 | ||||
#define IXGBE_VF_MAX_RX_QUEUES 8 | #define IXGBE_VF_MAX_RX_QUEUES 8 | ||||
/* DCB define */ | /* DCB define */ | ||||
#define IXGBE_VF_MAX_TRAFFIC_CLASS 8 | #define IXGBE_VF_MAX_TRAFFIC_CLASS 8 | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | struct ixgbevf_hw_stats { | ||||
u64 saved_reset_vfgprc; | u64 saved_reset_vfgprc; | ||||
u64 saved_reset_vfgptc; | u64 saved_reset_vfgptc; | ||||
u64 saved_reset_vfgorc; | u64 saved_reset_vfgorc; | ||||
u64 saved_reset_vfgotc; | u64 saved_reset_vfgotc; | ||||
u64 saved_reset_vfmprc; | u64 saved_reset_vfmprc; | ||||
}; | }; | ||||
s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw); | |||||
s32 ixgbe_init_hw_vf(struct ixgbe_hw *hw); | s32 ixgbe_init_hw_vf(struct ixgbe_hw *hw); | ||||
s32 ixgbe_start_hw_vf(struct ixgbe_hw *hw); | s32 ixgbe_start_hw_vf(struct ixgbe_hw *hw); | ||||
s32 ixgbe_reset_hw_vf(struct ixgbe_hw *hw); | s32 ixgbe_reset_hw_vf(struct ixgbe_hw *hw); | ||||
s32 ixgbe_stop_adapter_vf(struct ixgbe_hw *hw); | s32 ixgbe_stop_adapter_vf(struct ixgbe_hw *hw); | ||||
u32 ixgbe_get_num_of_tx_queues_vf(struct ixgbe_hw *hw); | u32 ixgbe_get_num_of_tx_queues_vf(struct ixgbe_hw *hw); | ||||
u32 ixgbe_get_num_of_rx_queues_vf(struct ixgbe_hw *hw); | u32 ixgbe_get_num_of_rx_queues_vf(struct ixgbe_hw *hw); | ||||
s32 ixgbe_get_mac_addr_vf(struct ixgbe_hw *hw, u8 *mac_addr); | s32 ixgbe_get_mac_addr_vf(struct ixgbe_hw *hw, u8 *mac_addr); | ||||
s32 ixgbe_setup_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed speed, | s32 ixgbe_setup_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed speed, | ||||
bool autoneg_wait_to_complete); | bool autoneg_wait_to_complete); | ||||
s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed, | s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed, | ||||
bool *link_up, bool autoneg_wait_to_complete); | bool *link_up, bool autoneg_wait_to_complete); | ||||
s32 ixgbe_set_rar_vf(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq, | s32 ixgbe_set_rar_vf(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq, | ||||
u32 enable_addr); | u32 enable_addr); | ||||
s32 ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, u32 index, u8 *addr); | s32 ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, u32 index, u8 *addr); | ||||
s32 ixgbe_update_mc_addr_list_vf(struct ixgbe_hw *hw, u8 *mc_addr_list, | s32 ixgbe_update_mc_addr_list_vf(struct ixgbe_hw *hw, u8 *mc_addr_list, | ||||
u32 mc_addr_count, ixgbe_mc_addr_itr, | u32 mc_addr_count, ixgbe_mc_addr_itr, | ||||
bool clear); | bool clear); | ||||
s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on); | s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode); | ||||
void ixgbevf_rlpml_set_vf(struct ixgbe_hw *hw, u16 max_size); | s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind, | ||||
bool vlan_on, bool vlvf_bypass); | |||||
s32 ixgbevf_rlpml_set_vf(struct ixgbe_hw *hw, u16 max_size); | |||||
int ixgbevf_negotiate_api_version(struct ixgbe_hw *hw, int api); | int ixgbevf_negotiate_api_version(struct ixgbe_hw *hw, int api); | ||||
int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs, | int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs, | ||||
unsigned int *default_tc); | unsigned int *default_tc); | ||||
#endif /* __IXGBE_VF_H__ */ | #endif /* __IXGBE_VF_H__ */ |