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_SRIOV_PF_H_
7#define _XE_SRIOV_PF_H_
8
9#include <linux/types.h>
10
11struct dentry;
12struct drm_printer;
13struct xe_device;
14
15#ifdef CONFIG_PCI_IOV
16bool xe_sriov_pf_readiness(struct xe_device *xe);
17int xe_sriov_pf_init_early(struct xe_device *xe);
18int xe_sriov_pf_wait_ready(struct xe_device *xe);
19void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root);
20void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
21#else
22static inline bool xe_sriov_pf_readiness(struct xe_device *xe)
23{
24 return false;
25}
26
27static inline int xe_sriov_pf_init_early(struct xe_device *xe)
28{
29 return 0;
30}
31
32static inline void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root)
33{
34}
35#endif
36
37#endif