crypto: qat - relocate portions of qat_4xxx code
authorJie Wang <jie.wang@intel.com>
Fri, 15 Dec 2023 10:01:46 +0000 (05:01 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2023 04:30:19 +0000 (12:30 +0800)
commitde51d22364921dcdb28ef34cd6276c38e126b899
tree1c474876355952bf2bb7bf1249890f6a38ea04da
parentb34bd0fd563df763ccca998b3d5fc824c536c28a
crypto: qat - relocate portions of qat_4xxx code

Move logic that is common between QAT GEN4 accelerators to the
qat_common folder. This includes addresses of CSRs, setters and
configuration logic.
When moved, functions and defines have been renamed from 4XXX to GEN4.

Code specific to the device is moved to the file adf_gen4_hw_data.c.
Code related to configuration is moved to the newly created
adf_gen4_config.c.

This does not introduce any functional change.

Signed-off-by: Jie Wang <jie.wang@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.h
drivers/crypto/intel/qat/qat_4xxx/adf_drv.c
drivers/crypto/intel/qat/qat_common/Makefile
drivers/crypto/intel/qat/qat_common/adf_gen4_config.c [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_gen4_config.h [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.h