mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 04:22:58 +00:00
The PF driver must maintain additional GT level data per each VF. This additional per-VF data will be added in upcoming patches and will include: provisioning configuration (like GGTT space or LMEM allocation sizes or scheduling parameters), monitoring thresholds and counters, and more. As number of supported VFs varies across platforms use flexible array where first entry will contain metadata for the PF itself (if such configuration parameter is applicable for the PF) and all remaining entries will contain data for potential VFs. Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240415173937.1287-6-michal.wajdeczko@intel.com
21 lines
326 B
C
21 lines
326 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_SRIOV_PF_H_
|
|
#define _XE_GT_SRIOV_PF_H_
|
|
|
|
struct xe_gt;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
int xe_gt_sriov_pf_init_early(struct xe_gt *gt);
|
|
#else
|
|
static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|