| /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */ |
| /* Copyright(c) 2021 Intel Corporation */ |
| #ifndef ADF_PFVF_VF_MSG_H |
| #define ADF_PFVF_VF_MSG_H |
| |
| #if defined(CONFIG_PCI_IOV) |
| int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev); |
| void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev); |
| void adf_vf2pf_notify_restart_complete(struct adf_accel_dev *accel_dev); |
| int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev); |
| int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev); |
| int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev); |
| #else |
| static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) |
| { |
| return 0; |
| } |
| |
| static inline void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev) |
| { |
| } |
| #endif |
| |
| #endif /* ADF_PFVF_VF_MSG_H */ |