xref: /freebsd/sys/dev/qat/include/adf_gen2_pfvf.h (revision 9f23cbd6cae82fd77edfad7173432fa8dccd0a95)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 /* $FreeBSD$ */
4 #ifndef ADF_GEN2_PFVF_H
5 #define ADF_GEN2_PFVF_H
6 
7 #include <linux/types.h>
8 #include "adf_accel_devices.h"
9 
10 #define ADF_GEN2_ERRSOU3 (0x3A000 + 0x0C)
11 #define ADF_GEN2_ERRSOU5 (0x3A000 + 0xD8)
12 #define ADF_GEN2_ERRMSK3 (0x3A000 + 0x1C)
13 #define ADF_GEN2_ERRMSK5 (0x3A000 + 0xDC)
14 
15 static inline void
16 adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
17 {
18 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
19 }
20 
21 static inline void
22 adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
23 {
24 	pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
25 }
26 
27 #endif /* ADF_GEN2_PFVF_H */
28