]> Git Repo - J-linux.git/blob - drivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / drivers / crypto / intel / qat / qat_common / adf_pfvf_pf_msg.h
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2021 Intel Corporation */
3 #ifndef ADF_PFVF_PF_MSG_H
4 #define ADF_PFVF_PF_MSG_H
5
6 #include "adf_accel_devices.h"
7
8 #if defined(CONFIG_PCI_IOV)
9 void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev);
10 void adf_pf2vf_wait_for_restarting_complete(struct adf_accel_dev *accel_dev);
11 void adf_pf2vf_notify_restarted(struct adf_accel_dev *accel_dev);
12 void adf_pf2vf_notify_fatal_error(struct adf_accel_dev *accel_dev);
13 #else
14 static inline void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev)
15 {
16 }
17
18 static inline void adf_pf2vf_wait_for_restarting_complete(struct adf_accel_dev *accel_dev)
19 {
20 }
21
22 static inline void adf_pf2vf_notify_restarted(struct adf_accel_dev *accel_dev)
23 {
24 }
25
26 static inline void adf_pf2vf_notify_fatal_error(struct adf_accel_dev *accel_dev)
27 {
28 }
29 #endif
30
31 typedef int (*adf_pf2vf_blkmsg_provider)(struct adf_accel_dev *accel_dev,
32                                          u8 *buffer, u8 compat);
33
34 int adf_pf_capabilities_msg_provider(struct adf_accel_dev *accel_dev,
35                                      u8 *buffer, u8 comapt);
36 int adf_pf_ring_to_svc_msg_provider(struct adf_accel_dev *accel_dev,
37                                     u8 *buffer, u8 comapt);
38
39 #endif /* ADF_PFVF_PF_MSG_H */
This page took 0.029244 seconds and 4 git commands to generate.