blob: 9d8a1697f9963c738a335a649df3144700b58c83 [file] [log] [blame]
Jens Wiklanderc2888862014-08-04 15:39:58 +02001/*
2 * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Jens Wiklanderc2888862014-08-04 15:39:58 +02005 */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00006#ifndef TEESMC_OPTEED_MACROS_H
7#define TEESMC_OPTEED_MACROS_H
Jens Wiklanderc2888862014-08-04 15:39:58 +02008
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00009#include <common/runtime_svc.h>
Jens Wiklanderc2888862014-08-04 15:39:58 +020010
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000017#endif /* TEESMC_OPTEED_MACROS_H */