xref: /OK3568_Linux_fs/kernel/drivers/crypto/cavium/nitrox/nitrox_common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __NITROX_COMMON_H
3*4882a593Smuzhiyun #define __NITROX_COMMON_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include "nitrox_dev.h"
6*4882a593Smuzhiyun #include "nitrox_req.h"
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun int nitrox_crypto_register(void);
9*4882a593Smuzhiyun void nitrox_crypto_unregister(void);
10*4882a593Smuzhiyun int nitrox_register_aeads(void);
11*4882a593Smuzhiyun void nitrox_unregister_aeads(void);
12*4882a593Smuzhiyun int nitrox_register_skciphers(void);
13*4882a593Smuzhiyun void nitrox_unregister_skciphers(void);
14*4882a593Smuzhiyun void *crypto_alloc_context(struct nitrox_device *ndev);
15*4882a593Smuzhiyun void crypto_free_context(void *ctx);
16*4882a593Smuzhiyun struct nitrox_device *nitrox_get_first_device(void);
17*4882a593Smuzhiyun void nitrox_put_device(struct nitrox_device *ndev);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun int nitrox_common_sw_init(struct nitrox_device *ndev);
20*4882a593Smuzhiyun void nitrox_common_sw_cleanup(struct nitrox_device *ndev);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun void pkt_slc_resp_tasklet(unsigned long data);
23*4882a593Smuzhiyun int nitrox_process_se_request(struct nitrox_device *ndev,
24*4882a593Smuzhiyun 			      struct se_crypto_request *req,
25*4882a593Smuzhiyun 			      completion_t cb,
26*4882a593Smuzhiyun 			      void *cb_arg);
27*4882a593Smuzhiyun void backlog_qflush_work(struct work_struct *work);
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #endif /* __NITROX_COMMON_H */
31