1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2021 Intel Corporation */
3 #ifndef ADF_GEN2_PFVF_H
4 #define ADF_GEN2_PFVF_H
5 
6 #include <linux/types.h>
7 #include "adf_accel_devices.h"
8 
9 #define ADF_GEN2_ERRSOU3 (0x3A000 + 0x0C)
10 #define ADF_GEN2_ERRSOU5 (0x3A000 + 0xD8)
11 #define ADF_GEN2_ERRMSK3 (0x3A000 + 0x1C)
12 #define ADF_GEN2_ERRMSK5 (0x3A000 + 0xDC)
13 
14 #if defined(CONFIG_PCI_IOV)
15 void adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
16 void adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
17 #else
adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops * pfvf_ops)18 static inline void adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
19 {
20 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
21 }
22 
adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops * pfvf_ops)23 static inline void adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
24 {
25 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
26 }
27 #endif
28 
29 #endif /* ADF_GEN2_PFVF_H */
30