Lines Matching +full:0 +full:xa000
19 #define ASPEED_HACE_SRC 0x00 /* Crypto Data Source Base Address Register */
20 #define ASPEED_HACE_DEST 0x04 /* Crypto Data Destination Base Address Register */
21 #define ASPEED_HACE_CONTEXT 0x08 /* Crypto Context Buffer Base Address Register */
22 #define ASPEED_HACE_DATA_LEN 0x0C /* Crypto Data Length Register */
23 #define ASPEED_HACE_CMD 0x10 /* Crypto Engine Command Register */
26 #define ASPEED_HACE_TAG 0x18 /* HACE Tag Register */
28 #define ASPEED_HACE_GCM_ADD_LEN 0x14 /* Crypto AES-GCM Additional Data Length Register */
29 #define ASPEED_HACE_GCM_TAG_BASE_ADDR 0x18 /* Crypto AES-GCM Tag Write Buff Base Address Reg */
31 #define ASPEED_HACE_STS 0x1C /* HACE Status Register */
33 #define ASPEED_HACE_HASH_SRC 0x20 /* Hash Data Source Base Address Register */
34 #define ASPEED_HACE_HASH_DIGEST_BUFF 0x24 /* Hash Digest Write Buffer Base Address Register */
35 #define ASPEED_HACE_HASH_KEY_BUFF 0x28 /* Hash HMAC Key Buffer Base Address Register */
36 #define ASPEED_HACE_HASH_DATA_LEN 0x2C /* Hash Data Length Register */
37 #define ASPEED_HACE_HASH_CMD 0x30 /* Hash Engine Command Register */
40 #define HACE_CMD_SINGLE_DES 0
42 #define HACE_CMD_AES_SELECT 0
45 #define HACE_CMD_CONTEXT_SAVE_ENABLE (0)
47 #define HACE_CMD_AES (0)
48 #define HACE_CMD_DES (0)
50 #define HACE_CMD_DECRYPT (0)
53 #define HACE_CMD_ECB (0x0 << 4)
54 #define HACE_CMD_CBC (0x1 << 4)
55 #define HACE_CMD_CFB (0x2 << 4)
56 #define HACE_CMD_OFB (0x3 << 4)
57 #define HACE_CMD_CTR (0x4 << 4)
58 #define HACE_CMD_OP_MODE_MASK (0x7 << 4)
60 #define HACE_CMD_AES128 (0x0 << 2)
61 #define HACE_CMD_AES192 (0x1 << 2)
62 #define HACE_CMD_AES256 (0x2 << 2)
63 #define HACE_CMD_OP_CASCADE (0x3)
64 #define HACE_CMD_OP_INDEPENDENT (0x1)
67 #define HACE_CMD_RI_WO_DATA_ENABLE (0)
69 #define HACE_CMD_CONTEXT_LOAD_ENABLE (0)
79 #define HACE_CMD_CTR_IV_AES_96 (0x1 << 14)
80 #define HACE_CMD_CTR_IV_DES_32 (0x1 << 14)
81 #define HACE_CMD_CTR_IV_AES_64 (0x2 << 14)
82 #define HACE_CMD_CTR_IV_AES_32 (0x3 << 14)
84 #define HACE_CMD_GCM (0x5 << 4)
89 #define HACE_HASH_BUSY BIT(0)
94 #define HASH_CMD_SHA512_224 (0x3 << 10)
95 #define HASH_CMD_SHA512_256 (0x2 << 10)
96 #define HASH_CMD_SHA384 (0x1 << 10)
97 #define HASH_CMD_SHA512 (0)
99 #define HASH_CMD_HMAC (0x1 << 7)
100 #define HASH_CMD_ACC_MODE (0x2 << 7)
101 #define HASH_CMD_HMAC_KEY (0x3 << 7)
102 #define HASH_CMD_SHA1 (0x2 << 4)
103 #define HASH_CMD_SHA224 (0x4 << 4)
104 #define HASH_CMD_SHA256 (0x5 << 4)
105 #define HASH_CMD_SHA512_SER (0x6 << 4)
106 #define HASH_CMD_SHA_SWAP (0x2 << 2)
115 #define SHA_FLAGS_SHA1 BIT(0)
124 #define SHA_FLAGS_MASK (0xff)
126 #define ASPEED_CRYPTO_SRC_DMA_BUF_LEN 0xa000
127 #define ASPEED_CRYPTO_DST_DMA_BUF_LEN 0xa000
128 #define ASPEED_CRYPTO_GCM_TAG_OFFSET 0x9ff0
129 #define ASPEED_HASH_SRC_DMA_BUF_LEN 0xa000