teesmc_opteed_macros.h 446 Bytes
Newer Older
Jens Wiklander's avatar
Jens Wiklander committed
1
2
3
/*
 * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
Jens Wiklander's avatar
Jens Wiklander committed
5
6
7
8
9
10
11
12
13
14
15
16
17
 */
#ifndef __TEESMC_OPTEED_MACROS_H__
#define __TEESMC_OPTEED_MACROS_H__

#include <runtime_svc.h>

#define TEESMC_OPTEED_RV(func_num) \
		((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \
		 ((SMC_32) << FUNCID_CC_SHIFT) | \
		 (62 << FUNCID_OEN_SHIFT) | \
		 ((func_num) & FUNCID_NUM_MASK))

#endif /*__TEESMC_OPTEED_MACROS_H__*/