FILE
xe_sriov_pf.h
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/xe/xe_sriov_pf.h
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_init_late(struct xe_device *xe); 19int xe_sriov_pf_wait_ready(struct xe_device *xe); 20int xe_sriov_pf_lockdown(struct xe_device *xe); 21void xe_sriov_pf_end_lockdown(struct xe_device *xe); 22void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p); 23#else 24static inline bool xe_sriov_pf_readiness(struct xe_device *xe) { return false; } 25static inline int xe_sriov_pf_init_early(struct xe_device *xe) { return 0; } 26static inline int xe_sriov_pf_init_late(struct xe_device *xe) { return 0; } 27static inline int xe_sriov_pf_lockdown(struct xe_device *xe) { return 0; } 28static inline void xe_sriov_pf_end_lockdown(struct xe_device *xe) { } 29#endif 30 31#endif
~/
Read-only file preview.