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