crypto: qat - abstract PFVF messages with struct pfvf_message
authorMarco Chiappero <marco.chiappero@intel.com>
Thu, 16 Dec 2021 09:13:20 +0000 (09:13 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Dec 2021 03:18:25 +0000 (14:18 +1100)
commitdb1c034801c402b1f600ef7f753494479950f78e
tree03902c617f0540d4eb95965d4e888d85bf35a53a
parent0aeda694f1870f50900603c276423ffc05035f90
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>
12 files changed:
drivers/crypto/qat/qat_common/Makefile
drivers/crypto/qat/qat_common/adf_accel_devices.h
drivers/crypto/qat/qat_common/adf_gen2_pfvf.c
drivers/crypto/qat/qat_common/adf_pfvf_msg.h
drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c
drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c
drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.h
drivers/crypto/qat/qat_common/adf_pfvf_utils.c [new file with mode: 0644]
drivers/crypto/qat/qat_common/adf_pfvf_utils.h [new file with mode: 0644]
drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c
drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.c
drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.h