#include <linux/bitfield.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include "adf_accel_devices.h"
#include "adf_common_drv.h"
#include "adf_pfvf_msg.h"
#include "adf_pfvf_pf_msg.h"
#include "adf_pfvf_pf_proto.h"
#include "adf_pfvf_utils.h"
pf2vf_blkmsg_data_getter_fn;
static const adf_pf2vf_blkmsg_provider pf2vf_blkmsg_providers[] = …;
int adf_send_pf2vf_msg(struct adf_accel_dev *accel_dev, u8 vf_nr, struct pfvf_message msg)
{ … }
static struct pfvf_message adf_recv_vf2pf_msg(struct adf_accel_dev *accel_dev, u8 vf_nr)
{ … }
static adf_pf2vf_blkmsg_provider get_blkmsg_response_provider(u8 type)
{ … }
static u8 adf_pf2vf_blkmsg_get_byte(u8 const *blkmsg, u8 index)
{ … }
static u8 adf_pf2vf_blkmsg_get_crc(u8 const *blkmsg, u8 count)
{ … }
static int adf_pf2vf_blkmsg_get_data(struct adf_accel_vf_info *vf_info,
u8 type, u8 byte, u8 max_size, u8 *data,
pf2vf_blkmsg_data_getter_fn data_getter)
{ … }
static struct pfvf_message handle_blkmsg_req(struct adf_accel_vf_info *vf_info,
struct pfvf_message req)
{ … }
static struct pfvf_message handle_rp_reset_req(struct adf_accel_dev *accel_dev, u8 vf_nr,
struct pfvf_message req)
{ … }
static int adf_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u8 vf_nr,
struct pfvf_message msg, struct pfvf_message *resp)
{ … }
bool adf_recv_and_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr)
{ … }
int adf_enable_pf2vf_comms(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);