1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright 2018-2019, 2021 NXP
4  *
5  * Brief   CAAM driver internal status definition
6  */
7 
8 #ifndef __CAAM_STATUS_H__
9 #define __CAAM_STATUS_H__
10 
11 /*
12  * Internal CAAM Driver status codes
13  */
14 enum caam_status {
15 	CAAM_NO_ERROR = 0,   /* No Error */
16 	CAAM_FAILURE,        /* General failure */
17 	CAAM_OUT_MEMORY,     /* Out of memory */
18 	CAAM_BAD_PARAM,      /* Bad parameters */
19 	CAAM_SHORT_BUFFER,   /* Buffer is too short */
20 	CAAM_BUSY,           /* Operation is not possible, system busy */
21 	CAAM_PENDING,        /* Operation is pending */
22 	CAAM_TIMEOUT,        /* Operation timeout */
23 	CAAM_OUT_OF_BOUND,   /* Value is out of boundary */
24 	CAAM_JOB_STATUS,     /* A job status is available */
25 	CAAM_NOT_INIT,	     /* Feature is not initialized */
26 };
27 
28 #endif /* __CAAM_STATUS_H__ */
29