xref: /freebsd/sys/dev/qat/include/adf_gen2_pfvf.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 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 static inline void
15 adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
16 {
17 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
18 }
19 
20 static inline void
21 adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
22 {
23 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
24 }
25 
26 #endif /* ADF_GEN2_PFVF_H */
27