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#include "adf_common_drv.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#if defined(CONFIG_PCI_IOV)
16void adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
17void adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
18#else
19static inline void adf_gen2_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
20{
21 pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
22}
23
24static inline void adf_gen2_init_vf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
25{
26 pfvf_ops->enable_comms = adf_pfvf_comms_disabled;
27}
28#endif
29
30#endif /* ADF_GEN2_PFVF_H */
31

source code of linux/drivers/crypto/intel/qat/qat_common/adf_gen2_pfvf.h