162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _REGS_V5_H_ 762306a36Sopenharmony_ci#define _REGS_V5_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/bitops.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define REG_VERSION 0x000 1262306a36Sopenharmony_ci#define REG_STATUS 0x100 1362306a36Sopenharmony_ci#define REG_STATUS2 0x104 1462306a36Sopenharmony_ci#define REG_ENGINES_AVAIL 0x108 1562306a36Sopenharmony_ci#define REG_FIFO_SIZES 0x10c 1662306a36Sopenharmony_ci#define REG_SEG_SIZE 0x110 1762306a36Sopenharmony_ci#define REG_GOPROC 0x120 1862306a36Sopenharmony_ci#define REG_ENCR_SEG_CFG 0x200 1962306a36Sopenharmony_ci#define REG_ENCR_SEG_SIZE 0x204 2062306a36Sopenharmony_ci#define REG_ENCR_SEG_START 0x208 2162306a36Sopenharmony_ci#define REG_CNTR0_IV0 0x20c 2262306a36Sopenharmony_ci#define REG_CNTR1_IV1 0x210 2362306a36Sopenharmony_ci#define REG_CNTR2_IV2 0x214 2462306a36Sopenharmony_ci#define REG_CNTR3_IV3 0x218 2562306a36Sopenharmony_ci#define REG_CNTR_MASK 0x21C 2662306a36Sopenharmony_ci#define REG_ENCR_CCM_INT_CNTR0 0x220 2762306a36Sopenharmony_ci#define REG_ENCR_CCM_INT_CNTR1 0x224 2862306a36Sopenharmony_ci#define REG_ENCR_CCM_INT_CNTR2 0x228 2962306a36Sopenharmony_ci#define REG_ENCR_CCM_INT_CNTR3 0x22c 3062306a36Sopenharmony_ci#define REG_ENCR_XTS_DU_SIZE 0x230 3162306a36Sopenharmony_ci#define REG_CNTR_MASK2 0x234 3262306a36Sopenharmony_ci#define REG_CNTR_MASK1 0x238 3362306a36Sopenharmony_ci#define REG_CNTR_MASK0 0x23c 3462306a36Sopenharmony_ci#define REG_AUTH_SEG_CFG 0x300 3562306a36Sopenharmony_ci#define REG_AUTH_SEG_SIZE 0x304 3662306a36Sopenharmony_ci#define REG_AUTH_SEG_START 0x308 3762306a36Sopenharmony_ci#define REG_AUTH_IV0 0x310 3862306a36Sopenharmony_ci#define REG_AUTH_IV1 0x314 3962306a36Sopenharmony_ci#define REG_AUTH_IV2 0x318 4062306a36Sopenharmony_ci#define REG_AUTH_IV3 0x31c 4162306a36Sopenharmony_ci#define REG_AUTH_IV4 0x320 4262306a36Sopenharmony_ci#define REG_AUTH_IV5 0x324 4362306a36Sopenharmony_ci#define REG_AUTH_IV6 0x328 4462306a36Sopenharmony_ci#define REG_AUTH_IV7 0x32c 4562306a36Sopenharmony_ci#define REG_AUTH_IV8 0x330 4662306a36Sopenharmony_ci#define REG_AUTH_IV9 0x334 4762306a36Sopenharmony_ci#define REG_AUTH_IV10 0x338 4862306a36Sopenharmony_ci#define REG_AUTH_IV11 0x33c 4962306a36Sopenharmony_ci#define REG_AUTH_IV12 0x340 5062306a36Sopenharmony_ci#define REG_AUTH_IV13 0x344 5162306a36Sopenharmony_ci#define REG_AUTH_IV14 0x348 5262306a36Sopenharmony_ci#define REG_AUTH_IV15 0x34c 5362306a36Sopenharmony_ci#define REG_AUTH_INFO_NONCE0 0x350 5462306a36Sopenharmony_ci#define REG_AUTH_INFO_NONCE1 0x354 5562306a36Sopenharmony_ci#define REG_AUTH_INFO_NONCE2 0x358 5662306a36Sopenharmony_ci#define REG_AUTH_INFO_NONCE3 0x35c 5762306a36Sopenharmony_ci#define REG_AUTH_BYTECNT0 0x390 5862306a36Sopenharmony_ci#define REG_AUTH_BYTECNT1 0x394 5962306a36Sopenharmony_ci#define REG_AUTH_BYTECNT2 0x398 6062306a36Sopenharmony_ci#define REG_AUTH_BYTECNT3 0x39c 6162306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC0 0x3a0 6262306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC1 0x3a4 6362306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC2 0x3a8 6462306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC3 0x3ac 6562306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC4 0x3b0 6662306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC5 0x3b4 6762306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC6 0x3b8 6862306a36Sopenharmony_ci#define REG_AUTH_EXP_MAC7 0x3bc 6962306a36Sopenharmony_ci#define REG_CONFIG 0x400 7062306a36Sopenharmony_ci#define REG_GOPROC_QC_KEY 0x1000 7162306a36Sopenharmony_ci#define REG_GOPROC_OEM_KEY 0x2000 7262306a36Sopenharmony_ci#define REG_ENCR_KEY0 0x3000 7362306a36Sopenharmony_ci#define REG_ENCR_KEY1 0x3004 7462306a36Sopenharmony_ci#define REG_ENCR_KEY2 0x3008 7562306a36Sopenharmony_ci#define REG_ENCR_KEY3 0x300c 7662306a36Sopenharmony_ci#define REG_ENCR_KEY4 0x3010 7762306a36Sopenharmony_ci#define REG_ENCR_KEY5 0x3014 7862306a36Sopenharmony_ci#define REG_ENCR_KEY6 0x3018 7962306a36Sopenharmony_ci#define REG_ENCR_KEY7 0x301c 8062306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY0 0x3020 8162306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY1 0x3024 8262306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY2 0x3028 8362306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY3 0x302c 8462306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY4 0x3030 8562306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY5 0x3034 8662306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY6 0x3038 8762306a36Sopenharmony_ci#define REG_ENCR_XTS_KEY7 0x303c 8862306a36Sopenharmony_ci#define REG_AUTH_KEY0 0x3040 8962306a36Sopenharmony_ci#define REG_AUTH_KEY1 0x3044 9062306a36Sopenharmony_ci#define REG_AUTH_KEY2 0x3048 9162306a36Sopenharmony_ci#define REG_AUTH_KEY3 0x304c 9262306a36Sopenharmony_ci#define REG_AUTH_KEY4 0x3050 9362306a36Sopenharmony_ci#define REG_AUTH_KEY5 0x3054 9462306a36Sopenharmony_ci#define REG_AUTH_KEY6 0x3058 9562306a36Sopenharmony_ci#define REG_AUTH_KEY7 0x305c 9662306a36Sopenharmony_ci#define REG_AUTH_KEY8 0x3060 9762306a36Sopenharmony_ci#define REG_AUTH_KEY9 0x3064 9862306a36Sopenharmony_ci#define REG_AUTH_KEY10 0x3068 9962306a36Sopenharmony_ci#define REG_AUTH_KEY11 0x306c 10062306a36Sopenharmony_ci#define REG_AUTH_KEY12 0x3070 10162306a36Sopenharmony_ci#define REG_AUTH_KEY13 0x3074 10262306a36Sopenharmony_ci#define REG_AUTH_KEY14 0x3078 10362306a36Sopenharmony_ci#define REG_AUTH_KEY15 0x307c 10462306a36Sopenharmony_ci 10562306a36Sopenharmony_ci/* Register bits - REG_VERSION */ 10662306a36Sopenharmony_ci#define CORE_STEP_REV_SHIFT 0 10762306a36Sopenharmony_ci#define CORE_STEP_REV_MASK GENMASK(15, 0) 10862306a36Sopenharmony_ci#define CORE_MINOR_REV_SHIFT 16 10962306a36Sopenharmony_ci#define CORE_MINOR_REV_MASK GENMASK(23, 16) 11062306a36Sopenharmony_ci#define CORE_MAJOR_REV_SHIFT 24 11162306a36Sopenharmony_ci#define CORE_MAJOR_REV_MASK GENMASK(31, 24) 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci/* Register bits - REG_STATUS */ 11462306a36Sopenharmony_ci#define MAC_FAILED_SHIFT 31 11562306a36Sopenharmony_ci#define DOUT_SIZE_AVAIL_SHIFT 26 11662306a36Sopenharmony_ci#define DOUT_SIZE_AVAIL_MASK GENMASK(30, 26) 11762306a36Sopenharmony_ci#define DIN_SIZE_AVAIL_SHIFT 21 11862306a36Sopenharmony_ci#define DIN_SIZE_AVAIL_MASK GENMASK(25, 21) 11962306a36Sopenharmony_ci#define HSD_ERR_SHIFT 20 12062306a36Sopenharmony_ci#define ACCESS_VIOL_SHIFT 19 12162306a36Sopenharmony_ci#define PIPE_ACTIVE_ERR_SHIFT 18 12262306a36Sopenharmony_ci#define CFG_CHNG_ERR_SHIFT 17 12362306a36Sopenharmony_ci#define DOUT_ERR_SHIFT 16 12462306a36Sopenharmony_ci#define DIN_ERR_SHIFT 15 12562306a36Sopenharmony_ci#define AXI_ERR_SHIFT 14 12662306a36Sopenharmony_ci#define CRYPTO_STATE_SHIFT 10 12762306a36Sopenharmony_ci#define CRYPTO_STATE_MASK GENMASK(13, 10) 12862306a36Sopenharmony_ci#define ENCR_BUSY_SHIFT 9 12962306a36Sopenharmony_ci#define AUTH_BUSY_SHIFT 8 13062306a36Sopenharmony_ci#define DOUT_INTR_SHIFT 7 13162306a36Sopenharmony_ci#define DIN_INTR_SHIFT 6 13262306a36Sopenharmony_ci#define OP_DONE_INTR_SHIFT 5 13362306a36Sopenharmony_ci#define ERR_INTR_SHIFT 4 13462306a36Sopenharmony_ci#define DOUT_RDY_SHIFT 3 13562306a36Sopenharmony_ci#define DIN_RDY_SHIFT 2 13662306a36Sopenharmony_ci#define OPERATION_DONE_SHIFT 1 13762306a36Sopenharmony_ci#define SW_ERR_SHIFT 0 13862306a36Sopenharmony_ci 13962306a36Sopenharmony_ci/* Register bits - REG_STATUS2 */ 14062306a36Sopenharmony_ci#define AXI_EXTRA_SHIFT 1 14162306a36Sopenharmony_ci#define LOCKED_SHIFT 2 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci/* Register bits - REG_CONFIG */ 14462306a36Sopenharmony_ci#define REQ_SIZE_SHIFT 17 14562306a36Sopenharmony_ci#define REQ_SIZE_MASK GENMASK(20, 17) 14662306a36Sopenharmony_ci#define REQ_SIZE_ENUM_1_BEAT 0 14762306a36Sopenharmony_ci#define REQ_SIZE_ENUM_2_BEAT 1 14862306a36Sopenharmony_ci#define REQ_SIZE_ENUM_3_BEAT 2 14962306a36Sopenharmony_ci#define REQ_SIZE_ENUM_4_BEAT 3 15062306a36Sopenharmony_ci#define REQ_SIZE_ENUM_5_BEAT 4 15162306a36Sopenharmony_ci#define REQ_SIZE_ENUM_6_BEAT 5 15262306a36Sopenharmony_ci#define REQ_SIZE_ENUM_7_BEAT 6 15362306a36Sopenharmony_ci#define REQ_SIZE_ENUM_8_BEAT 7 15462306a36Sopenharmony_ci#define REQ_SIZE_ENUM_9_BEAT 8 15562306a36Sopenharmony_ci#define REQ_SIZE_ENUM_10_BEAT 9 15662306a36Sopenharmony_ci#define REQ_SIZE_ENUM_11_BEAT 10 15762306a36Sopenharmony_ci#define REQ_SIZE_ENUM_12_BEAT 11 15862306a36Sopenharmony_ci#define REQ_SIZE_ENUM_13_BEAT 12 15962306a36Sopenharmony_ci#define REQ_SIZE_ENUM_14_BEAT 13 16062306a36Sopenharmony_ci#define REQ_SIZE_ENUM_15_BEAT 14 16162306a36Sopenharmony_ci#define REQ_SIZE_ENUM_16_BEAT 15 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ci#define MAX_QUEUED_REQ_SHIFT 14 16462306a36Sopenharmony_ci#define MAX_QUEUED_REQ_MASK GENMASK(24, 16) 16562306a36Sopenharmony_ci#define ENUM_1_QUEUED_REQS 0 16662306a36Sopenharmony_ci#define ENUM_2_QUEUED_REQS 1 16762306a36Sopenharmony_ci#define ENUM_3_QUEUED_REQS 2 16862306a36Sopenharmony_ci 16962306a36Sopenharmony_ci#define IRQ_ENABLES_SHIFT 10 17062306a36Sopenharmony_ci#define IRQ_ENABLES_MASK GENMASK(13, 10) 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ci#define LITTLE_ENDIAN_MODE_SHIFT 9 17362306a36Sopenharmony_ci#define PIPE_SET_SELECT_SHIFT 5 17462306a36Sopenharmony_ci#define PIPE_SET_SELECT_MASK GENMASK(8, 5) 17562306a36Sopenharmony_ci 17662306a36Sopenharmony_ci#define HIGH_SPD_EN_N_SHIFT 4 17762306a36Sopenharmony_ci#define MASK_DOUT_INTR_SHIFT 3 17862306a36Sopenharmony_ci#define MASK_DIN_INTR_SHIFT 2 17962306a36Sopenharmony_ci#define MASK_OP_DONE_INTR_SHIFT 1 18062306a36Sopenharmony_ci#define MASK_ERR_INTR_SHIFT 0 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_ci/* Register bits - REG_AUTH_SEG_CFG */ 18362306a36Sopenharmony_ci#define COMP_EXP_MAC_SHIFT 24 18462306a36Sopenharmony_ci#define COMP_EXP_MAC_DISABLED 0 18562306a36Sopenharmony_ci#define COMP_EXP_MAC_ENABLED 1 18662306a36Sopenharmony_ci 18762306a36Sopenharmony_ci#define F9_DIRECTION_SHIFT 23 18862306a36Sopenharmony_ci#define F9_DIRECTION_UPLINK 0 18962306a36Sopenharmony_ci#define F9_DIRECTION_DOWNLINK 1 19062306a36Sopenharmony_ci 19162306a36Sopenharmony_ci#define AUTH_NONCE_NUM_WORDS_SHIFT 20 19262306a36Sopenharmony_ci#define AUTH_NONCE_NUM_WORDS_MASK GENMASK(22, 20) 19362306a36Sopenharmony_ci 19462306a36Sopenharmony_ci#define USE_PIPE_KEY_AUTH_SHIFT 19 19562306a36Sopenharmony_ci#define USE_HW_KEY_AUTH_SHIFT 18 19662306a36Sopenharmony_ci#define AUTH_FIRST_SHIFT 17 19762306a36Sopenharmony_ci#define AUTH_LAST_SHIFT 16 19862306a36Sopenharmony_ci 19962306a36Sopenharmony_ci#define AUTH_POS_SHIFT 14 20062306a36Sopenharmony_ci#define AUTH_POS_MASK GENMASK(15, 14) 20162306a36Sopenharmony_ci#define AUTH_POS_BEFORE 0 20262306a36Sopenharmony_ci#define AUTH_POS_AFTER 1 20362306a36Sopenharmony_ci 20462306a36Sopenharmony_ci#define AUTH_SIZE_SHIFT 9 20562306a36Sopenharmony_ci#define AUTH_SIZE_MASK GENMASK(13, 9) 20662306a36Sopenharmony_ci#define AUTH_SIZE_SHA1 0 20762306a36Sopenharmony_ci#define AUTH_SIZE_SHA256 1 20862306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_1_BYTES 0 20962306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_2_BYTES 1 21062306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_3_BYTES 2 21162306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_4_BYTES 3 21262306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_5_BYTES 4 21362306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_6_BYTES 5 21462306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_7_BYTES 6 21562306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_8_BYTES 7 21662306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_9_BYTES 8 21762306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_10_BYTES 9 21862306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_11_BYTES 10 21962306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_12_BYTES 11 22062306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_13_BYTES 12 22162306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_14_BYTES 13 22262306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_15_BYTES 14 22362306a36Sopenharmony_ci#define AUTH_SIZE_ENUM_16_BYTES 15 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci#define AUTH_MODE_SHIFT 6 22662306a36Sopenharmony_ci#define AUTH_MODE_MASK GENMASK(8, 6) 22762306a36Sopenharmony_ci#define AUTH_MODE_HASH 0 22862306a36Sopenharmony_ci#define AUTH_MODE_HMAC 1 22962306a36Sopenharmony_ci#define AUTH_MODE_CCM 0 23062306a36Sopenharmony_ci#define AUTH_MODE_CMAC 1 23162306a36Sopenharmony_ci 23262306a36Sopenharmony_ci#define AUTH_KEY_SIZE_SHIFT 3 23362306a36Sopenharmony_ci#define AUTH_KEY_SIZE_MASK GENMASK(5, 3) 23462306a36Sopenharmony_ci#define AUTH_KEY_SZ_AES128 0 23562306a36Sopenharmony_ci#define AUTH_KEY_SZ_AES256 2 23662306a36Sopenharmony_ci 23762306a36Sopenharmony_ci#define AUTH_ALG_SHIFT 0 23862306a36Sopenharmony_ci#define AUTH_ALG_MASK GENMASK(2, 0) 23962306a36Sopenharmony_ci#define AUTH_ALG_NONE 0 24062306a36Sopenharmony_ci#define AUTH_ALG_SHA 1 24162306a36Sopenharmony_ci#define AUTH_ALG_AES 2 24262306a36Sopenharmony_ci#define AUTH_ALG_KASUMI 3 24362306a36Sopenharmony_ci#define AUTH_ALG_SNOW3G 4 24462306a36Sopenharmony_ci#define AUTH_ALG_ZUC 5 24562306a36Sopenharmony_ci 24662306a36Sopenharmony_ci/* Register bits - REG_ENCR_XTS_DU_SIZE */ 24762306a36Sopenharmony_ci#define ENCR_XTS_DU_SIZE_SHIFT 0 24862306a36Sopenharmony_ci#define ENCR_XTS_DU_SIZE_MASK GENMASK(19, 0) 24962306a36Sopenharmony_ci 25062306a36Sopenharmony_ci/* Register bits - REG_ENCR_SEG_CFG */ 25162306a36Sopenharmony_ci#define F8_KEYSTREAM_ENABLE_SHIFT 17 25262306a36Sopenharmony_ci#define F8_KEYSTREAM_DISABLED 0 25362306a36Sopenharmony_ci#define F8_KEYSTREAM_ENABLED 1 25462306a36Sopenharmony_ci 25562306a36Sopenharmony_ci#define F8_DIRECTION_SHIFT 16 25662306a36Sopenharmony_ci#define F8_DIRECTION_UPLINK 0 25762306a36Sopenharmony_ci#define F8_DIRECTION_DOWNLINK 1 25862306a36Sopenharmony_ci 25962306a36Sopenharmony_ci#define USE_PIPE_KEY_ENCR_SHIFT 15 26062306a36Sopenharmony_ci#define USE_PIPE_KEY_ENCR_ENABLED 1 26162306a36Sopenharmony_ci#define USE_KEY_REGISTERS 0 26262306a36Sopenharmony_ci 26362306a36Sopenharmony_ci#define USE_HW_KEY_ENCR_SHIFT 14 26462306a36Sopenharmony_ci#define USE_KEY_REG 0 26562306a36Sopenharmony_ci#define USE_HW_KEY 1 26662306a36Sopenharmony_ci 26762306a36Sopenharmony_ci#define LAST_CCM_SHIFT 13 26862306a36Sopenharmony_ci#define LAST_CCM_XFR 1 26962306a36Sopenharmony_ci#define INTERM_CCM_XFR 0 27062306a36Sopenharmony_ci 27162306a36Sopenharmony_ci#define CNTR_ALG_SHIFT 11 27262306a36Sopenharmony_ci#define CNTR_ALG_MASK GENMASK(12, 11) 27362306a36Sopenharmony_ci#define CNTR_ALG_NIST 0 27462306a36Sopenharmony_ci 27562306a36Sopenharmony_ci#define ENCODE_SHIFT 10 27662306a36Sopenharmony_ci 27762306a36Sopenharmony_ci#define ENCR_MODE_SHIFT 6 27862306a36Sopenharmony_ci#define ENCR_MODE_MASK GENMASK(9, 6) 27962306a36Sopenharmony_ci#define ENCR_MODE_ECB 0 28062306a36Sopenharmony_ci#define ENCR_MODE_CBC 1 28162306a36Sopenharmony_ci#define ENCR_MODE_CTR 2 28262306a36Sopenharmony_ci#define ENCR_MODE_XTS 3 28362306a36Sopenharmony_ci#define ENCR_MODE_CCM 4 28462306a36Sopenharmony_ci 28562306a36Sopenharmony_ci#define ENCR_KEY_SZ_SHIFT 3 28662306a36Sopenharmony_ci#define ENCR_KEY_SZ_MASK GENMASK(5, 3) 28762306a36Sopenharmony_ci#define ENCR_KEY_SZ_DES 0 28862306a36Sopenharmony_ci#define ENCR_KEY_SZ_3DES 1 28962306a36Sopenharmony_ci#define ENCR_KEY_SZ_AES128 0 29062306a36Sopenharmony_ci#define ENCR_KEY_SZ_AES256 2 29162306a36Sopenharmony_ci 29262306a36Sopenharmony_ci#define ENCR_ALG_SHIFT 0 29362306a36Sopenharmony_ci#define ENCR_ALG_MASK GENMASK(2, 0) 29462306a36Sopenharmony_ci#define ENCR_ALG_NONE 0 29562306a36Sopenharmony_ci#define ENCR_ALG_DES 1 29662306a36Sopenharmony_ci#define ENCR_ALG_AES 2 29762306a36Sopenharmony_ci#define ENCR_ALG_KASUMI 4 29862306a36Sopenharmony_ci#define ENCR_ALG_SNOW_3G 5 29962306a36Sopenharmony_ci#define ENCR_ALG_ZUC 6 30062306a36Sopenharmony_ci 30162306a36Sopenharmony_ci/* Register bits - REG_GOPROC */ 30262306a36Sopenharmony_ci#define GO_SHIFT 0 30362306a36Sopenharmony_ci#define CLR_CNTXT_SHIFT 1 30462306a36Sopenharmony_ci#define RESULTS_DUMP_SHIFT 2 30562306a36Sopenharmony_ci 30662306a36Sopenharmony_ci/* Register bits - REG_ENGINES_AVAIL */ 30762306a36Sopenharmony_ci#define ENCR_AES_SEL_SHIFT 0 30862306a36Sopenharmony_ci#define DES_SEL_SHIFT 1 30962306a36Sopenharmony_ci#define ENCR_SNOW3G_SEL_SHIFT 2 31062306a36Sopenharmony_ci#define ENCR_KASUMI_SEL_SHIFT 3 31162306a36Sopenharmony_ci#define SHA_SEL_SHIFT 4 31262306a36Sopenharmony_ci#define SHA512_SEL_SHIFT 5 31362306a36Sopenharmony_ci#define AUTH_AES_SEL_SHIFT 6 31462306a36Sopenharmony_ci#define AUTH_SNOW3G_SEL_SHIFT 7 31562306a36Sopenharmony_ci#define AUTH_KASUMI_SEL_SHIFT 8 31662306a36Sopenharmony_ci#define BAM_PIPE_SETS_SHIFT 9 31762306a36Sopenharmony_ci#define BAM_PIPE_SETS_MASK GENMASK(12, 9) 31862306a36Sopenharmony_ci#define AXI_WR_BEATS_SHIFT 13 31962306a36Sopenharmony_ci#define AXI_WR_BEATS_MASK GENMASK(18, 13) 32062306a36Sopenharmony_ci#define AXI_RD_BEATS_SHIFT 19 32162306a36Sopenharmony_ci#define AXI_RD_BEATS_MASK GENMASK(24, 19) 32262306a36Sopenharmony_ci#define ENCR_ZUC_SEL_SHIFT 26 32362306a36Sopenharmony_ci#define AUTH_ZUC_SEL_SHIFT 27 32462306a36Sopenharmony_ci#define ZUC_ENABLE_SHIFT 28 32562306a36Sopenharmony_ci 32662306a36Sopenharmony_ci#endif /* _REGS_V5_H_ */ 327