adf_pfvf_vf_msg.h (719B)
1/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */ 2/* Copyright(c) 2021 Intel Corporation */ 3#ifndef ADF_PFVF_VF_MSG_H 4#define ADF_PFVF_VF_MSG_H 5 6#if defined(CONFIG_PCI_IOV) 7int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev); 8void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev); 9int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev); 10int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev); 11int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev); 12#else 13static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) 14{ 15 return 0; 16} 17 18static inline void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev) 19{ 20} 21#endif 22 23#endif /* ADF_PFVF_VF_MSG_H */