/***************************************************************************** * * Copyright 2016 NXP * SPDX-License-Identifier: Apache-2.0 ****************************************************************************/ #include #include #include #include #include /* For mode constants */ #include #ifdef __gnu_linux__ #include #include // #include /* For O_* constants */ #include #include #endif #include #include #include "ax_cryptoIpc.h" #include "sm_printf.h" #include "sm_types.h" /*Local Defines*/ /** * Initialization for Crypto Library Mutex. This should be invoked as part of App initialization. * Note:- In a system only 1 application (and the first one to be launched) shall invoke this * API with parameter AX_CI_TRUE. All other API's invoke with parameter AX_CI_FALSE. * Dummy function * * @param bool - AX_CI_TRUE - set mutex value to 1, AX_CI_FALSE- Do not set Mutex val * @return 0 always */ int axCi_MutexInit(int setval) { return 0; } /** * Grab mutex before entering Critical Section * Dummy function * @return void */ void axCi_MutexLock() { return; } /** * Release mutex and after exit from Critical Section * Dummy function * @return void */ void axCi_MutexUnlock() { return; } /** * Clean up of IPC resources. API to be invoked at App exit * @retval AX_CI_TRUE: OK to exit application * @retval AX_CI_FALSE: Application is in Critical section and shall clean up upon out from Critical Section. And then invoke App exit(). */ int axCi_Close() { return AX_CI_TRUE; }