This implementation of the PFVF protocol was designed around the GEN2 devices and its CSR format. In order to support future generations, which come with differently sized fields, change the definition of the PFVF message and make it abstract by means of a new pfvf_message struct. Also, introduce some utilities to translate to and from the new message format and the device specific CSR format. Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 lines
406 B
C
14 lines
406 B
C
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
|
|
/* Copyright(c) 2021 Intel Corporation */
|
|
#ifndef ADF_PFVF_PF_PROTO_H
|
|
#define ADF_PFVF_PF_PROTO_H
|
|
|
|
#include <linux/types.h>
|
|
#include "adf_accel_devices.h"
|
|
|
|
int adf_send_pf2vf_msg(struct adf_accel_dev *accel_dev, u8 vf_nr, struct pfvf_message msg);
|
|
|
|
int adf_enable_pf2vf_comms(struct adf_accel_dev *accel_dev);
|
|
|
|
#endif /* ADF_PFVF_PF_PROTO_H */
|