1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NITROX_COMMON_H
3 #define __NITROX_COMMON_H
4 
5 #include "nitrox_dev.h"
6 #include "nitrox_req.h"
7 
8 int nitrox_crypto_register(void);
9 void nitrox_crypto_unregister(void);
10 void *crypto_alloc_context(struct nitrox_device *ndev);
11 void crypto_free_context(void *ctx);
12 struct nitrox_device *nitrox_get_first_device(void);
13 void nitrox_put_device(struct nitrox_device *ndev);
14 
15 int nitrox_common_sw_init(struct nitrox_device *ndev);
16 void nitrox_common_sw_cleanup(struct nitrox_device *ndev);
17 
18 void pkt_slc_resp_tasklet(unsigned long data);
19 int nitrox_process_se_request(struct nitrox_device *ndev,
20 			      struct se_crypto_request *req,
21 			      completion_t cb,
22 			      struct skcipher_request *skreq);
23 void backlog_qflush_work(struct work_struct *work);
24 
25 
26 #endif /* __NITROX_COMMON_H */
27