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) 7 int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev); 8 void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev); 9 int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev); 10 int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev); 11 int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev); 12 #else adf_vf2pf_notify_init(struct adf_accel_dev * accel_dev)13static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) 14 { 15 return 0; 16 } 17 adf_vf2pf_notify_shutdown(struct adf_accel_dev * accel_dev)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 */ 24