mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
a9dc0d9666
So far PFVF support for GEN4 devices has been kept effectively disabled due to lack of support. This patch adds all the GEN4 specific logic to make PFVF fully functional on PF. Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 lines
444 B
C
17 lines
444 B
C
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
|
|
/* Copyright(c) 2021 Intel Corporation */
|
|
#ifndef ADF_GEN4_PFVF_H
|
|
#define ADF_GEN4_PFVF_H
|
|
|
|
#include "adf_accel_devices.h"
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
|
|
#else
|
|
static inline void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
|
|
{
|
|
pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
|
|
}
|
|
#endif
|
|
|
|
#endif /* ADF_GEN4_PFVF_H */
|