* txgbe_init_ops_vf - Initialize the pointers for vf * @hw: pointer to hardware structure * * This will assign function pointers, adapter-specific functions can * override the assignment of generic function pointers by assigning * their own adapter-specific function pointers. * Does not touch the hardware. **/
| 16 | * Does not touch the hardware. |
| 17 | **/ |
| 18 | s32 txgbe_init_ops_vf(struct txgbe_hw *hw) |
| 19 | { |
| 20 | struct txgbe_mac_info *mac = &hw->mac; |
| 21 | struct txgbe_mbx_info *mbx = &hw->mbx; |
| 22 | |
| 23 | /* MAC */ |
| 24 | mac->reset_hw = txgbe_reset_hw_vf; |
| 25 | mac->start_hw = txgbe_start_hw_vf; |
| 26 | /* Cannot clear stats on VF */ |
| 27 | mac->get_mac_addr = txgbe_get_mac_addr_vf; |
| 28 | mac->stop_hw = txgbe_stop_hw_vf; |
| 29 | mac->negotiate_api_version = txgbevf_negotiate_api_version; |
| 30 | mac->update_mc_addr_list = txgbe_update_mc_addr_list_vf; |
| 31 | |
| 32 | /* Link */ |
| 33 | mac->check_link = txgbe_check_mac_link_vf; |
| 34 | |
| 35 | /* RAR, Multicast, VLAN */ |
| 36 | mac->set_rar = txgbe_set_rar_vf; |
| 37 | mac->set_uc_addr = txgbevf_set_uc_addr_vf; |
| 38 | mac->update_xcast_mode = txgbevf_update_xcast_mode; |
| 39 | mac->set_vfta = txgbe_set_vfta_vf; |
| 40 | mac->set_rlpml = txgbevf_rlpml_set_vf; |
| 41 | |
| 42 | mac->max_tx_queues = 1; |
| 43 | mac->max_rx_queues = 1; |
| 44 | |
| 45 | mbx->init_params = txgbe_init_mbx_params_vf; |
| 46 | mbx->read = txgbe_read_mbx_vf; |
| 47 | mbx->write = txgbe_write_mbx_vf; |
| 48 | mbx->read_posted = txgbe_read_posted_mbx; |
| 49 | mbx->write_posted = txgbe_write_posted_mbx; |
| 50 | mbx->check_for_msg = txgbe_check_for_msg_vf; |
| 51 | mbx->check_for_ack = txgbe_check_for_ack_vf; |
| 52 | mbx->check_for_rst = txgbe_check_for_rst_vf; |
| 53 | |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | /* txgbe_virt_clr_reg - Set register to default (power on) state. |
| 58 | * @hw: pointer to hardware structure |
no outgoing calls
no test coverage detected