summaryrefslogtreecommitdiff
path: root/drivers/crypto/hisilicon/Kconfig
diff options
context:
space:
mode:
authorZhou Wang <wangzhou1@hisilicon.com>2019-08-02 10:57:51 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-09 08:11:53 +0300
commitdfed0098ab91f647b5720ab6f1e03b5b55139408 (patch)
tree7e195fc299279dd885b41527ee4bb003951a09a6 /drivers/crypto/hisilicon/Kconfig
parent263c9959c9376ec0217d6adc61222a53469eed3c (diff)
downloadlinux-dfed0098ab91f647b5720ab6f1e03b5b55139408.tar.xz
crypto: hisilicon - add hardware SGL support
HiSilicon accelerators in Hip08 use same hardware scatterlist for data format. We support it in this module. Specific accelerator drivers can use hisi_acc_create_sgl_pool to allocate hardware SGLs ahead. Then use hisi_acc_sg_buf_map_to_hw_sgl to get one hardware SGL and pass related information to hardware SGL. The DMA address of mapped hardware SGL can be passed to SGL src/dst field in QM SQE. Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/Kconfig')
-rw-r--r--drivers/crypto/hisilicon/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig
index b79be8dc78e7..457d9bcb0d4e 100644
--- a/drivers/crypto/hisilicon/Kconfig
+++ b/drivers/crypto/hisilicon/Kconfig
@@ -19,3 +19,11 @@ config CRYPTO_DEV_HISI_QM
help
HiSilicon accelerator engines use a common queue management
interface. Specific engine driver may use this module.
+
+config CRYPTO_HISI_SGL
+ tristate
+ depends on ARM64
+ help
+ HiSilicon accelerator engines use a common hardware scatterlist
+ interface for data format. Specific engine driver may use this
+ module.