xref: /linux/drivers/gpu/drm/xe/xe_sriov_pf.h (revision face6a3615a649456eb4549f6d474221d877d604)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_SRIOV_PF_H_
7 #define _XE_SRIOV_PF_H_
8 
9 #include <linux/types.h>
10 
11 struct dentry;
12 struct drm_printer;
13 struct xe_device;
14 
15 #ifdef CONFIG_PCI_IOV
16 bool xe_sriov_pf_readiness(struct xe_device *xe);
17 int xe_sriov_pf_init_early(struct xe_device *xe);
18 int xe_sriov_pf_init_late(struct xe_device *xe);
19 int xe_sriov_pf_wait_ready(struct xe_device *xe);
20 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
21 #else
22 static inline bool xe_sriov_pf_readiness(struct xe_device *xe) { return false; }
23 static inline int xe_sriov_pf_init_early(struct xe_device *xe) { return 0; }
24 static inline int xe_sriov_pf_init_late(struct xe_device *xe) { return 0; }
25 #endif
26 
27 #endif
28