1 /* 2 * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 #ifndef __TEESMC_OPTEED_MACROS_H__ 7 #define __TEESMC_OPTEED_MACROS_H__ 8 9 #include <runtime_svc.h> 10 11 #define TEESMC_OPTEED_RV(func_num) \ 12 ((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \ 13 ((SMC_32) << FUNCID_CC_SHIFT) | \ 14 (62 << FUNCID_OEN_SHIFT) | \ 15 ((func_num) & FUNCID_NUM_MASK)) 16 17 #endif /*__TEESMC_OPTEED_MACROS_H__*/ 18