arm_sip_svc.h 684 Bytes
Newer Older
dp-arm's avatar
dp-arm committed
1
/*
2
 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
dp-arm's avatar
dp-arm committed
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
dp-arm's avatar
dp-arm committed
5
6
 */

7
8
9
#ifndef ARM_SIP_SVC_H
#define ARM_SIP_SVC_H

10
#include <lib/utils_def.h>
dp-arm's avatar
dp-arm committed
11
12
13

/* SMC function IDs for SiP Service queries */

14
15
16
17
#define ARM_SIP_SVC_CALL_COUNT		U(0x8200ff00)
#define ARM_SIP_SVC_UID			U(0x8200ff01)
/*					U(0x8200ff02) is reserved */
#define ARM_SIP_SVC_VERSION		U(0x8200ff03)
dp-arm's avatar
dp-arm committed
18

19
/* Function ID for requesting state switch of lower EL */
20
#define ARM_SIP_SVC_EXE_STATE_SWITCH	U(0x82000020)
21

dp-arm's avatar
dp-arm committed
22
/* ARM SiP Service Calls version numbers */
23
24
#define ARM_SIP_SVC_VERSION_MAJOR		U(0x0)
#define ARM_SIP_SVC_VERSION_MINOR		U(0x2)
dp-arm's avatar
dp-arm committed
25

26
#endif /* ARM_SIP_SVC_H */