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 void adf_vf2pf_notify_restart_complete(struct adf_accel_dev *accel_dev); 10 int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev); 11 int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev); 12 int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev); 13 #else adf_vf2pf_notify_init(struct adf_accel_dev * accel_dev)14static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) 15 { 16 return 0; 17 } 18 adf_vf2pf_notify_shutdown(struct adf_accel_dev * accel_dev)19static inline void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev) 20 { 21 } 22 #endif 23 24 #endif /* ADF_PFVF_VF_MSG_H */ 25