FILE
adf_pfvf_pf_msg.h
File preview with syntax highlighting.
linux-6.19.14/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) 9void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev); 10void adf_pf2vf_wait_for_restarting_complete(struct adf_accel_dev *accel_dev); 11void adf_pf2vf_notify_restarted(struct adf_accel_dev *accel_dev); 12void adf_pf2vf_notify_fatal_error(struct adf_accel_dev *accel_dev); 13#else 14static inline void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev) 15{ 16} 17 18static inline void adf_pf2vf_wait_for_restarting_complete(struct adf_accel_dev *accel_dev) 19{ 20} 21 22static inline void adf_pf2vf_notify_restarted(struct adf_accel_dev *accel_dev) 23{ 24} 25 26static inline void adf_pf2vf_notify_fatal_error(struct adf_accel_dev *accel_dev) 27{ 28} 29#endif 30 31typedef int (*adf_pf2vf_blkmsg_provider)(struct adf_accel_dev *accel_dev, 32 u8 *buffer, u8 compat); 33 34int adf_pf_capabilities_msg_provider(struct adf_accel_dev *accel_dev, 35 u8 *buffer, u8 comapt); 36int 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 */
~/
Read-only file preview.