^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) config CRYPTO_DEV_HISI_SEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) tristate "Support for Hisilicon SEC crypto block cipher accelerator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) select CRYPTO_SKCIPHER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) select CRYPTO_ALGAPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) select CRYPTO_LIB_DES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) select SG_SPLIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) depends on ARM64 || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) depends on HAS_IOMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Support for Hisilicon SEC Engine in Hip06 and Hip07
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) To compile this as a module, choose M here: the module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) will be called hisi_sec.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) config CRYPTO_DEV_HISI_SEC2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) tristate "Support for HiSilicon SEC2 crypto block cipher accelerator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) select CRYPTO_SKCIPHER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) select CRYPTO_ALGAPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) select CRYPTO_LIB_DES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) select CRYPTO_DEV_HISI_QM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) select CRYPTO_AEAD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) select CRYPTO_AUTHENC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) select CRYPTO_HMAC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) select CRYPTO_SHA1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) select CRYPTO_SHA256
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) select CRYPTO_SHA512
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) depends on PCI && PCI_MSI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) depends on UACCE || UACCE=n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) depends on ARM64 || (COMPILE_TEST && 64BIT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) depends on ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) It provides AES, SM4, and 3DES algorithms with ECB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) CBC, and XTS cipher mode, and AEAD algorithms.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) To compile this as a module, choose M here: the module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) will be called hisi_sec2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) config CRYPTO_DEV_HISI_QM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) tristate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) depends on ARM64 || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) depends on PCI && PCI_MSI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) depends on UACCE || UACCE=n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) depends on ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) HiSilicon accelerator engines use a common queue management
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) interface. Specific engine driver may use this module.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) config CRYPTO_DEV_HISI_ZIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) tristate "Support for HiSilicon ZIP accelerator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) depends on PCI && PCI_MSI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) depends on ARM64 || (COMPILE_TEST && 64BIT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) depends on !CPU_BIG_ENDIAN || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) depends on UACCE || UACCE=n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) depends on ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) select CRYPTO_DEV_HISI_QM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) Support for HiSilicon ZIP Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) config CRYPTO_DEV_HISI_HPRE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) tristate "Support for HISI HPRE accelerator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) depends on PCI && PCI_MSI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) depends on UACCE || UACCE=n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) depends on ARM64 || (COMPILE_TEST && 64BIT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) depends on ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) select CRYPTO_DEV_HISI_QM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) select CRYPTO_DH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) select CRYPTO_RSA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Support for HiSilicon HPRE(High Performance RSA Engine)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) accelerator, which can accelerate RSA and DH algorithms.