Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
12struct xe_gt;
13
14int xe_gt_sriov_pf_control_pause_vf(struct xe_gt *gt, unsigned int vfid);
15int xe_gt_sriov_pf_control_resume_vf(struct xe_gt *gt, unsigned int vfid);
16int xe_gt_sriov_pf_control_stop_vf(struct xe_gt *gt, unsigned int vfid);
17int xe_gt_sriov_pf_control_trigger_flr(struct xe_gt *gt, unsigned int vfid);
18
19#ifdef CONFIG_PCI_IOV
20int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len);
21#else
22static 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