License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / drivers / crypto / cavium / nitrox / nitrox_common.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
14fa93cd
SJ
2#ifndef __NITROX_COMMON_H
3#define __NITROX_COMMON_H
4
5#include "nitrox_dev.h"
6#include "nitrox_req.h"
7
f2663872
SJ
8int nitrox_crypto_register(void);
9void nitrox_crypto_unregister(void);
10void *crypto_alloc_context(struct nitrox_device *ndev);
11void crypto_free_context(void *ctx);
12struct nitrox_device *nitrox_get_first_device(void);
13void nitrox_put_device(struct nitrox_device *ndev);
14
14fa93cd
SJ
15void nitrox_pf_cleanup_isr(struct nitrox_device *ndev);
16int nitrox_pf_init_isr(struct nitrox_device *ndev);
17
18int nitrox_common_sw_init(struct nitrox_device *ndev);
19void nitrox_common_sw_cleanup(struct nitrox_device *ndev);
20
21void pkt_slc_resp_handler(unsigned long data);
22int nitrox_process_se_request(struct nitrox_device *ndev,
23 struct se_crypto_request *req,
24 completion_t cb,
25 struct skcipher_request *skreq);
26void backlog_qflush_work(struct work_struct *work);
27
28void nitrox_config_emu_unit(struct nitrox_device *ndev);
29void nitrox_config_pkt_input_rings(struct nitrox_device *ndev);
30void nitrox_config_pkt_solicit_ports(struct nitrox_device *ndev);
31void nitrox_config_vfmode(struct nitrox_device *ndev, int mode);
32void nitrox_config_nps_unit(struct nitrox_device *ndev);
33void nitrox_config_pom_unit(struct nitrox_device *ndev);
34void nitrox_config_rand_unit(struct nitrox_device *ndev);
35void nitrox_config_efl_unit(struct nitrox_device *ndev);
36void nitrox_config_bmi_unit(struct nitrox_device *ndev);
37void nitrox_config_bmo_unit(struct nitrox_device *ndev);
38void nitrox_config_lbc_unit(struct nitrox_device *ndev);
39void invalidate_lbc(struct nitrox_device *ndev);
40void enable_pkt_input_ring(struct nitrox_device *ndev, int ring);
41void enable_pkt_solicit_port(struct nitrox_device *ndev, int port);
42
43#endif /* __NITROX_COMMON_H */