cc_driver.h (27988c96687667e74df1a9a3b8662519bc1c29c9) | cc_driver.h (e6e6600c001c3aa3760aeb83dbd4630063e926ee) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */ 3 4/* \file cc_driver.h 5 * ARM CryptoCell Linux Crypto Driver 6 */ 7 8#ifndef __CC_DRIVER_H__ --- 112 unchanged lines hidden (view full) --- 121 enum cc_cpp_alg alg; 122 u8 slot; 123}; 124 125#define CC_MAX_IVGEN_DMA_ADDRESSES 3 126struct cc_crypto_req { 127 void (*user_cb)(struct device *dev, void *req, int err); 128 void *user_arg; | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */ 3 4/* \file cc_driver.h 5 * ARM CryptoCell Linux Crypto Driver 6 */ 7 8#ifndef __CC_DRIVER_H__ --- 112 unchanged lines hidden (view full) --- 121 enum cc_cpp_alg alg; 122 u8 slot; 123}; 124 125#define CC_MAX_IVGEN_DMA_ADDRESSES 3 126struct cc_crypto_req { 127 void (*user_cb)(struct device *dev, void *req, int err); 128 void *user_arg; |
129 dma_addr_t ivgen_dma_addr[CC_MAX_IVGEN_DMA_ADDRESSES]; 130 /* For the first 'ivgen_dma_addr_len' addresses of this array, 131 * generated IV would be placed in it by send_request(). 132 * Same generated IV for all addresses! 133 */ 134 /* Amount of 'ivgen_dma_addr' elements to be filled. */ 135 unsigned int ivgen_dma_addr_len; 136 /* The generated IV size required, 8/16 B allowed. */ 137 unsigned int ivgen_size; | |
138 struct completion seq_compl; /* request completion */ 139 struct cc_cpp_req cpp; 140}; 141 142/** 143 * struct cc_drvdata - driver private data context 144 * @cc_base: virt address of the CC registers 145 * @irq: device IRQ number --- 7 unchanged lines hidden (view full) --- 153 struct platform_device *plat_dev; 154 cc_sram_addr_t mlli_sram_addr; 155 void *buff_mgr_handle; 156 void *cipher_handle; 157 void *hash_handle; 158 void *aead_handle; 159 void *request_mgr_handle; 160 void *fips_handle; | 129 struct completion seq_compl; /* request completion */ 130 struct cc_cpp_req cpp; 131}; 132 133/** 134 * struct cc_drvdata - driver private data context 135 * @cc_base: virt address of the CC registers 136 * @irq: device IRQ number --- 7 unchanged lines hidden (view full) --- 144 struct platform_device *plat_dev; 145 cc_sram_addr_t mlli_sram_addr; 146 void *buff_mgr_handle; 147 void *cipher_handle; 148 void *hash_handle; 149 void *aead_handle; 150 void *request_mgr_handle; 151 void *fips_handle; |
161 void *ivgen_handle; | |
162 void *sram_mgr_handle; 163 void *debugfs; 164 struct clk *clk; 165 bool coherent; 166 char *hw_rev_name; 167 enum cc_hw_rev hw_rev; 168 u32 axim_mon_offset; 169 u32 sig_offset; --- 85 unchanged lines hidden --- | 152 void *sram_mgr_handle; 153 void *debugfs; 154 struct clk *clk; 155 bool coherent; 156 char *hw_rev_name; 157 enum cc_hw_rev hw_rev; 158 u32 axim_mon_offset; 159 u32 sig_offset; --- 85 unchanged lines hidden --- |