mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

PF driver will maintain configurations and resources for every VF and this data could span multiple tiles and/or GTs. Prepare mutex to protect data that we will add in upcoming patches. Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240410170338.1199-2-michal.wajdeczko@intel.com
31 lines
586 B
C
31 lines
586 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SRIOV_PF_H_
|
|
#define _XE_SRIOV_PF_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_printer;
|
|
struct xe_device;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
bool xe_sriov_pf_readiness(struct xe_device *xe);
|
|
int xe_sriov_pf_init_early(struct xe_device *xe);
|
|
void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
|
|
#else
|
|
static inline bool xe_sriov_pf_readiness(struct xe_device *xe)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline int xe_sriov_pf_init_early(struct xe_device *xe)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|