xref: /linux/drivers/crypto/intel/qat/qat_common/adf_gen4_pfvf.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1*a4b16dadSTom Zanussi /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2*a4b16dadSTom Zanussi /* Copyright(c) 2021 Intel Corporation */
3*a4b16dadSTom Zanussi #ifndef ADF_GEN4_PFVF_H
4*a4b16dadSTom Zanussi #define ADF_GEN4_PFVF_H
5*a4b16dadSTom Zanussi 
6*a4b16dadSTom Zanussi #include "adf_accel_devices.h"
7*a4b16dadSTom Zanussi 
8*a4b16dadSTom Zanussi #ifdef CONFIG_PCI_IOV
9*a4b16dadSTom Zanussi void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
10*a4b16dadSTom Zanussi #else
adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops * pfvf_ops)11*a4b16dadSTom Zanussi static inline void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
12*a4b16dadSTom Zanussi {
13*a4b16dadSTom Zanussi 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
14*a4b16dadSTom Zanussi }
15*a4b16dadSTom Zanussi #endif
16*a4b16dadSTom Zanussi 
17*a4b16dadSTom Zanussi #endif /* ADF_GEN4_PFVF_H */
18