diff options
author | Marco Chiappero <marco.chiappero@intel.com> | 2021-12-16 09:13:20 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-24 14:18:25 +1100 |
commit | db1c034801c402b1f600ef7f753494479950f78e (patch) | |
tree | 03902c617f0540d4eb95965d4e888d85bf35a53a /drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h | |
parent | crypto: qat - set PFVF_MSGORIGIN just before sending (diff) | |
download | linux-dev-db1c034801c402b1f600ef7f753494479950f78e.tar.xz linux-dev-db1c034801c402b1f600ef7f753494479950f78e.zip |
crypto: qat - abstract PFVF messages with struct pfvf_message
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h b/drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h index 6226d4d9d520..e32d1bc3a740 100644 --- a/drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h +++ b/drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h @@ -6,8 +6,9 @@ #include <linux/types.h> #include "adf_accel_devices.h" -int adf_send_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 msg); -int adf_send_vf2pf_req(struct adf_accel_dev *accel_dev, u32 msg, u32 *resp); +int adf_send_vf2pf_msg(struct adf_accel_dev *accel_dev, struct pfvf_message msg); +int adf_send_vf2pf_req(struct adf_accel_dev *accel_dev, struct pfvf_message msg, + struct pfvf_message *resp); int adf_enable_vf2pf_comms(struct adf_accel_dev *accel_dev); |