1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2013 - 2015 Intel Corporation 3 */ 4 5 #ifndef _FM10K_API_H_ 6 #define _FM10K_API_H_ 7 8 #include "fm10k_pf.h" 9 #include "fm10k_vf.h" 10 11 s32 fm10k_set_mac_type(struct fm10k_hw *hw); 12 s32 fm10k_reset_hw(struct fm10k_hw *hw); 13 s32 fm10k_init_hw(struct fm10k_hw *hw); 14 s32 fm10k_stop_hw(struct fm10k_hw *hw); 15 s32 fm10k_start_hw(struct fm10k_hw *hw); 16 s32 fm10k_init_shared_code(struct fm10k_hw *hw); 17 s32 fm10k_get_bus_info(struct fm10k_hw *hw); 18 #ifndef NO_IS_SLOT_APPROPRIATE_CHECK 19 bool fm10k_is_slot_appropriate(struct fm10k_hw *hw); 20 #endif 21 s32 fm10k_update_vlan(struct fm10k_hw *hw, u32 vid, u8 idx, bool set); 22 s32 fm10k_read_mac_addr(struct fm10k_hw *hw); 23 void fm10k_update_hw_stats(struct fm10k_hw *hw, struct fm10k_hw_stats *stats); 24 void fm10k_rebind_hw_stats(struct fm10k_hw *hw, struct fm10k_hw_stats *stats); 25 s32 fm10k_configure_dglort_map(struct fm10k_hw *hw, 26 struct fm10k_dglort_cfg *dglort); 27 void fm10k_set_dma_mask(struct fm10k_hw *hw, u64 dma_mask); 28 s32 fm10k_get_fault(struct fm10k_hw *hw, int type, struct fm10k_fault *fault); 29 s32 fm10k_update_uc_addr(struct fm10k_hw *hw, u16 lport, 30 const u8 *mac, u16 vid, bool add, u8 flags); 31 s32 fm10k_update_mc_addr(struct fm10k_hw *hw, u16 lport, 32 const u8 *mac, u16 vid, bool add); 33 s32 fm10k_adjust_systime(struct fm10k_hw *hw, s32 ppb); 34 s32 fm10k_notify_offset(struct fm10k_hw *hw, u64 offset); 35 #endif /* _FM10K_API_H_ */ 36