Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_vf.c
Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/** | /** | ||||
* ixgbe_update_mc_addr_list_vf - Update Multicast addresses | * ixgbe_update_mc_addr_list_vf - Update Multicast addresses | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* @mc_addr_list: array of multicast addresses to program | * @mc_addr_list: array of multicast addresses to program | ||||
* @mc_addr_count: number of multicast addresses to program | * @mc_addr_count: number of multicast addresses to program | ||||
* @next: caller supplied function to return next address in list | * @next: caller supplied function to return next address in list | ||||
* @clear: unused | |||||
* | * | ||||
* Updates the Multicast Table Array. | * Updates the Multicast Table Array. | ||||
**/ | **/ | ||||
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 next, | u32 mc_addr_count, ixgbe_mc_addr_itr next, | ||||
bool clear) | bool clear) | ||||
{ | { | ||||
struct ixgbe_mbx_info *mbx = &hw->mbx; | struct ixgbe_mbx_info *mbx = &hw->mbx; | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
**/ | **/ | ||||
u32 ixgbe_get_num_of_rx_queues_vf(struct ixgbe_hw *hw) | u32 ixgbe_get_num_of_rx_queues_vf(struct ixgbe_hw *hw) | ||||
{ | { | ||||
UNREFERENCED_1PARAMETER(hw); | UNREFERENCED_1PARAMETER(hw); | ||||
return IXGBE_VF_MAX_RX_QUEUES; | return IXGBE_VF_MAX_RX_QUEUES; | ||||
} | } | ||||
/** | /** | ||||
* ixgbe_get_mac_addr_vf - Read device MAC address | * ixgbe_get_mac_addr_vf - Read device MAC address | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
* @mac_addr: the MAC address | |||||
**/ | **/ | ||||
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) | ||||
{ | { | ||||
int i; | int i; | ||||
for (i = 0; i < IXGBE_ETH_LENGTH_OF_ADDRESS; i++) | for (i = 0; i < IXGBE_ETH_LENGTH_OF_ADDRESS; i++) | ||||
mac_addr[i] = hw->mac.perm_addr[i]; | mac_addr[i] = hw->mac.perm_addr[i]; | ||||
Show All 29 Lines | s32 ixgbevf_set_uc_addr_vf(struct ixgbe_hw *hw, u32 index, u8 *addr) | ||||
return ret_val; | return ret_val; | ||||
} | } | ||||
/** | /** | ||||
* ixgbe_setup_mac_link_vf - Setup MAC link settings | * ixgbe_setup_mac_link_vf - Setup MAC link settings | ||||
* @hw: pointer to hardware structure | * @hw: pointer to hardware structure | ||||
* @speed: new link speed | * @speed: new link speed | ||||
* @autoneg: TRUE if autonegotiation enabled | |||||
* @autoneg_wait_to_complete: TRUE when waiting for completion is needed | * @autoneg_wait_to_complete: TRUE when waiting for completion is needed | ||||
* | * | ||||
* Set the link speed in the AUTOC register and restarts link. | * Set the link speed in the AUTOC register and restarts link. | ||||
**/ | **/ | ||||
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) | ||||
{ | { | ||||
UNREFERENCED_3PARAMETER(hw, speed, autoneg_wait_to_complete); | UNREFERENCED_3PARAMETER(hw, speed, autoneg_wait_to_complete); | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |