1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018, Intel Corporation. */
8 #include "ice_controlq.h"
10 /* Defining the mailbox message threshold as 63 asynchronous
11 * pending messages. Normal VF functionality does not require
12 * sending more than 63 asynchronous pending message.
14 #define ICE_ASYNC_VF_MSG_THRESHOLD 63
18 ice_aq_send_msg_to_vf(struct ice_hw *hw, u16 vfid, u32 v_opcode, u32 v_retval,
19 u8 *msg, u16 msglen, struct ice_sq_cd *cd);
21 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed);
23 ice_mbx_vf_state_handler(struct ice_hw *hw, struct ice_mbx_data *mbx_data,
24 u16 vf_id, bool *is_mal_vf);
26 ice_mbx_clear_malvf(struct ice_mbx_snapshot *snap, unsigned long *all_malvfs,
27 u16 bitmap_len, u16 vf_id);
28 int ice_mbx_init_snapshot(struct ice_hw *hw, u16 vf_count);
29 void ice_mbx_deinit_snapshot(struct ice_hw *hw);
31 ice_mbx_report_malvf(struct ice_hw *hw, unsigned long *all_malvfs,
32 u16 bitmap_len, u16 vf_id, bool *report_malvf);
33 #else /* CONFIG_PCI_IOV */
35 ice_aq_send_msg_to_vf(struct ice_hw __always_unused *hw,
36 u16 __always_unused vfid, u32 __always_unused v_opcode,
37 u32 __always_unused v_retval, u8 __always_unused *msg,
38 u16 __always_unused msglen,
39 struct ice_sq_cd __always_unused *cd)
45 ice_conv_link_speed_to_virtchnl(bool __always_unused adv_link_support,
46 u16 __always_unused link_speed)
51 #endif /* CONFIG_PCI_IOV */
52 #endif /* _ICE_VF_MBX_H_ */