mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
crypto: hisilicon/qm - get qp num and depth from hardware registers
Hardware V3 and later versions can obtain qp num and depth supported by the hardware from registers. To be compatible with later hardware versions, get qp num and depth from registers instead of fixed marcos. Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#define SEC_BD_ERR_CHK_EN3 0xffffbfff
|
||||
|
||||
#define SEC_SQE_SIZE 128
|
||||
#define SEC_SQ_SIZE (SEC_SQE_SIZE * QM_Q_DEPTH)
|
||||
#define SEC_PF_DEF_Q_NUM 256
|
||||
#define SEC_PF_DEF_Q_BASE 0
|
||||
#define SEC_CTX_Q_NUM_DEF 2
|
||||
|
||||
Reference in New Issue
Block a user