xref: /freebsd/sys/dev/qat/include/adf_gen2_pfvf.h (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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