1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023-2024 Intel Corporation 4 */ 5 6 #ifndef _XE_GT_SRIOV_PF_CONTROL_H_ 7 #define _XE_GT_SRIOV_PF_CONTROL_H_ 8 9 #include <linux/errno.h> 10 #include <linux/types.h> 11 12 struct xe_gt; 13 14 int xe_gt_sriov_pf_control_pause_vf(struct xe_gt *gt, unsigned int vfid); 15 int xe_gt_sriov_pf_control_resume_vf(struct xe_gt *gt, unsigned int vfid); 16 int xe_gt_sriov_pf_control_stop_vf(struct xe_gt *gt, unsigned int vfid); 17 18 #ifdef CONFIG_PCI_IOV 19 int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len); 20 #else 21 static inline int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len) 22 { 23 return -EPROTO; 24 } 25 #endif 26 27 #endif 28