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