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 int xe_gt_sriov_pf_control_trigger_flr(struct xe_gt *gt, unsigned int vfid); 18 19 #ifdef CONFIG_PCI_IOV 20 int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len); 21 #else 22 static inline int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len) 23 { 24 return -EPROTO; 25 } 26 #endif 27 28 #endif 29