xref: /freebsd/sys/dev/qat/qat_api/common/compression/dc_chain.c (revision cccdaf507eee8fb34494b4624eb85bb951e323c8)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 /* $FreeBSD$ */
4 
5 /**
6  *****************************************************************************
7  * @file dc_chain.c
8  *
9  * @ingroup Dc_Chaining
10  *
11  * @description
12  *      Implementation of the chaining session operations.
13  *
14  *****************************************************************************/
15 
16 /*
17  *******************************************************************************
18  * Include public/global header files
19  *******************************************************************************
20  */
21 #include "cpa.h"
22 
23 #include "icp_qat_fw.h"
24 #include "icp_qat_fw_comp.h"
25 #include "icp_qat_hw.h"
26 
27 /*
28  *******************************************************************************
29  * Include private header files
30  *******************************************************************************
31  */
32 #include "sal_types_compression.h"
33 #include "cpa_dc_chain.h"
34 #include "lac_session.h"
35 #include "dc_session.h"
36 #include "dc_datapath.h"
37 #include "dc_stats.h"
38 #include "lac_mem_pools.h"
39 #include "lac_log.h"
40 #include "sal_types_compression.h"
41 #include "lac_buffer_desc.h"
42 #include "sal_service_state.h"
43 #include "sal_qat_cmn_msg.h"
44 #include "lac_sym_qat_hash_defs_lookup.h"
45 #include "sal_string_parse.h"
46 #include "lac_sym.h"
47 #include "lac_session.h"
48 #include "lac_sym_qat.h"
49 #include "lac_sym_hash.h"
50 #include "lac_sym_alg_chain.h"
51 #include "lac_sym_auth_enc.h"
52 
53 CpaStatus
54 cpaDcChainGetSessionSize(CpaInstanceHandle dcInstance,
55 			 CpaDcChainOperations operation,
56 			 Cpa8U numSessions,
57 			 CpaDcChainSessionSetupData *pSessionData,
58 			 Cpa32U *pSessionSize)
59 
60 {
61 	return CPA_STATUS_UNSUPPORTED;
62 }
63 
64 CpaStatus
65 cpaDcChainInitSession(CpaInstanceHandle dcInstance,
66 		      CpaDcSessionHandle pSessionHandle,
67 		      CpaDcChainOperations operation,
68 		      Cpa8U numSessions,
69 		      CpaDcChainSessionSetupData *pSessionData,
70 		      CpaDcCallbackFn callbackFn)
71 
72 {
73 	return CPA_STATUS_UNSUPPORTED;
74 }
75 
76 CpaStatus
77 cpaDcChainRemoveSession(const CpaInstanceHandle dcInstance,
78 			CpaDcSessionHandle pSessionHandle)
79 {
80 	return CPA_STATUS_UNSUPPORTED;
81 }
82 
83 CpaStatus
84 cpaDcChainResetSession(const CpaInstanceHandle dcInstance,
85 		       CpaDcSessionHandle pSessionHandle)
86 {
87 	return CPA_STATUS_UNSUPPORTED;
88 }
89 
90 CpaStatus
91 cpaDcChainPerformOp(CpaInstanceHandle dcInstance,
92 		    CpaDcSessionHandle pSessionHandle,
93 		    CpaBufferList *pSrcBuff,
94 		    CpaBufferList *pDestBuff,
95 		    CpaDcChainOperations operation,
96 		    Cpa8U numOpDatas,
97 		    CpaDcChainOpData *pChainOpData,
98 		    CpaDcChainRqResults *pResults,
99 		    void *callbackTag)
100 {
101 	return CPA_STATUS_UNSUPPORTED;
102 }
103