1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2014, STMicroelectronics International N.V. 4 */ 5 #ifndef GUARD_TEE_MATHAPI_H 6 #define GUARD_TEE_MATHAPI_H 7 8 #include <stddef.h> /* for size_t */ 9 #include <stdint.h> /* for uint32_t and friends */ 10 #include <stdbool.h> /* for bool (!) */ 11 12 /************************************************************* 13 * 14 * MACRO DEFINITIONS 15 * 16 *************************************************************/ 17 18 /*------------------------------------------------------------ 19 * 20 * How functions are exported 21 * 22 */ 23 #define TEE_MATHAPI_EXPORT 24 25 /*------------------------------------------------------------ 26 * 27 * Define IN, OUT, INBUF and OUTBUF to keep format from the spec. 28 * 29 */ 30 #define IN const 31 #define OUT 32 #define INOUT 33 #define INBUF const 34 #define OUTBUF 35 36 /************************************************************* 37 * 38 * MEMORY ALLOCATION AND SIZE 39 * 40 *************************************************************/ 41 42 /************************************************************* 43 * 44 * INITIALIZATION FUNCTIONS 45 * 46 *************************************************************/ 47 48 /* 49 * !!! This function must be called before you do anything else !!! 50 * NOTE: Not part of the spec 51 */ 52 TEE_MATHAPI_EXPORT void _TEE_MathAPI_Init(void); 53 54 #endif 55