1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright 2019, 2021 NXP 4 * 5 * Brief Status code management utilities header. 6 */ 7 #ifndef __CAAM_UTILS_STATUS_H__ 8 #define __CAAM_UTILS_STATUS_H__ 9 10 #include <stdint.h> 11 #include <tee_api_types.h> 12 13 /* 14 * Convert Job status code to TEE Result 15 * 16 * @status Job status code 17 */ 18 TEE_Result job_status_to_tee_result(uint32_t status); 19 20 /* 21 * Convert caam status code to TEE Result 22 * 23 * @status caam status code 24 */ 25 TEE_Result caam_status_to_tee_result(enum caam_status status); 26 27 #endif /* __CAAM_UTILS_STATUS_H__ */ 28