#include <linux/iopoll.h>
#include <linux/mutex.h>
#include <linux/types.h>
#include "adf_accel_devices.h"
#include "adf_common_drv.h"
#include "adf_gen4_pfvf.h"
#include "adf_gen4_hw_data.h"
#include "adf_pfvf_pf_proto.h"
#include "adf_pfvf_utils.h"
#define ADF_4XXX_VM2PF_SOU …
#define ADF_4XXX_VM2PF_MSK …
#define ADF_GEN4_VF_MSK …
#define ADF_PFVF_GEN4_MSGTYPE_SHIFT …
#define ADF_PFVF_GEN4_MSGTYPE_MASK …
#define ADF_PFVF_GEN4_MSGDATA_SHIFT …
#define ADF_PFVF_GEN4_MSGDATA_MASK …
static const struct pfvf_csr_format csr_gen4_fmt = …;
static u32 adf_gen4_pf_get_pf2vf_offset(u32 i)
{ … }
static u32 adf_gen4_pf_get_vf2pf_offset(u32 i)
{ … }
static void adf_gen4_enable_vf2pf_interrupts(void __iomem *pmisc_addr, u32 vf_mask)
{ … }
static void adf_gen4_disable_all_vf2pf_interrupts(void __iomem *pmisc_addr)
{ … }
static u32 adf_gen4_disable_pending_vf2pf_interrupts(void __iomem *pmisc_addr)
{ … }
static int adf_gen4_pfvf_send(struct adf_accel_dev *accel_dev,
struct pfvf_message msg, u32 pfvf_offset,
struct mutex *csr_lock)
{ … }
static struct pfvf_message adf_gen4_pfvf_recv(struct adf_accel_dev *accel_dev,
u32 pfvf_offset, u8 compat_ver)
{ … }
void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops)
{ … }
EXPORT_SYMBOL_GPL(…);