xref: /freebsd/sys/dev/qat/qat_api/include/icp_sal.h (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 /**
4  ***************************************************************************
5  * @file icp_sal.h
6  *
7  * @ingroup SalCommon
8  *
9  * Functions for both user space and kernel space.
10  *
11  ***************************************************************************/
12 
13 #ifndef ICP_SAL_H
14 #define ICP_SAL_H
15 
16 /*
17  * icp_sal_get_dc_error
18  *
19  * @description:
20  *  This function returns the occurrences of compression errors specified
21  *  in the input parameter
22  *
23  * @context
24  *      This function is called from the user process context
25  * @assumptions
26  *      None
27  * @sideEffects
28  *      None
29  * @reentrant
30  *      No
31  * @threadSafe
32  *      No
33  * @param[in] dcError                DC Error Type
34  *
35  * returns                           Number of failing requests of type dcError
36  */
37 Cpa64U icp_sal_get_dc_error(Cpa8S dcError);
38 
39 #endif
40