arm_sip_svc.h 945 Bytes
Newer Older
dp-arm's avatar
dp-arm committed
1
/*
2
 * Copyright (c) 2016-2019,2021, 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

Ambroise Vincent's avatar
Ambroise Vincent committed
19
20
21
/* PMF_SMC_GET_TIMESTAMP_32		0x82000010 */
/* PMF_SMC_GET_TIMESTAMP_64		0xC2000010 */

22
/* Function ID for requesting state switch of lower EL */
23
#define ARM_SIP_SVC_EXE_STATE_SWITCH	U(0x82000020)
24

Ambroise Vincent's avatar
Ambroise Vincent committed
25
26
27
/* DEBUGFS_SMC_32			0x82000030U */
/* DEBUGFS_SMC_64			0xC2000030U */

28
29
30
31
32
33
/*
 * Arm Ethos-N NPU SiP SMC function IDs
 * 0xC2000050-0xC200005F
 * 0x82000050-0x8200005F
 */

dp-arm's avatar
dp-arm committed
34
/* ARM SiP Service Calls version numbers */
35
36
#define ARM_SIP_SVC_VERSION_MAJOR		U(0x0)
#define ARM_SIP_SVC_VERSION_MINOR		U(0x2)
dp-arm's avatar
dp-arm committed
37

38
#endif /* ARM_SIP_SVC_H */