Loading...
Searching...
No Matches
Go to the documentation of this file.
27#define ARM_SMC_ID_STD_CALL_COUNT 0x8400ff00
28#define ARM_SMC_ID_STD_UID 0x8400ff01
30#define ARM_SMC_ID_STD_REVISION 0x8400ff03
36#define ARM_SMC_STD_UUID0 0x108d905b
37#define ARM_SMC_STD_UUID1 0x47e8f863
38#define ARM_SMC_STD_UUID2 0xfbc02dae
39#define ARM_SMC_STD_UUID3 0xe2f64156
45#define ARM_SMC_STD_REVISION_MAJOR 0x0
46#define ARM_SMC_STD_REVISION_MINOR 0x1
52#define ARM_SMC_ID_MM_VERSION_AARCH32 0x84000040
53#define ARM_SMC_ID_MM_VERSION_AARCH64 0xC4000040
56#define ARM_SMC_ID_MM_COMMUNICATE_AARCH32 0x84000041
57#define ARM_SMC_ID_MM_COMMUNICATE_AARCH64 0xC4000041
61#define ARM_SMC_ID_MM_COMMUNICATE ARM_SMC_ID_MM_COMMUNICATE_AARCH64
64#define ARM_SMC_ID_MM_COMMUNICATE ARM_SMC_ID_MM_COMMUNICATE_AARCH32
68#define ARM_SMC_MM_RET_SUCCESS 0
69#define ARM_SMC_MM_RET_NOT_SUPPORTED -1
70#define ARM_SMC_MM_RET_INVALID_PARAMS -2
71#define ARM_SMC_MM_RET_DENIED -3
72#define ARM_SMC_MM_RET_NO_MEMORY -4
75#define SMCCC_VERSION 0x80000000
76#define SMCCC_ARCH_FEATURES 0x80000001
77#define SMCCC_ARCH_SOC_ID 0x80000002
78#define SMCCC_ARCH_WORKAROUND_1 0x80008000
79#define SMCCC_ARCH_WORKAROUND_2 0x80007FFF
81#define SMC_ARCH_CALL_SUCCESS 0
82#define SMC_ARCH_CALL_NOT_SUPPORTED -1
83#define SMC_ARCH_CALL_NOT_REQUIRED -2
84#define SMC_ARCH_CALL_INVALID_PARAMETER -3
91#define ARM_SMC_ID_PSCI_VERSION 0x84000000
92#define ARM_SMC_ID_PSCI_CPU_SUSPEND_AARCH64 0xc4000001
93#define ARM_SMC_ID_PSCI_CPU_SUSPEND_AARCH32 0x84000001
94#define ARM_SMC_ID_PSCI_CPU_OFF 0x84000002
95#define ARM_SMC_ID_PSCI_CPU_ON_AARCH64 0xc4000003
96#define ARM_SMC_ID_PSCI_CPU_ON_AARCH32 0x84000003
97#define ARM_SMC_ID_PSCI_AFFINITY_INFO_AARCH64 0xc4000004
98#define ARM_SMC_ID_PSCI_AFFINITY_INFO_AARCH32 0x84000004
99#define ARM_SMC_ID_PSCI_MIGRATE_AARCH64 0xc4000005
100#define ARM_SMC_ID_PSCI_MIGRATE_AARCH32 0x84000005
101#define ARM_SMC_ID_PSCI_SYSTEM_OFF 0x84000008
102#define ARM_SMC_ID_PSCI_SYSTEM_RESET 0x84000009
103#define ARM_SMC_ID_PSCI_FEATURES 0x8400000A
104#define ARM_SMC_ID_PSCI_SYSTEM_RESET2_AARCH64 0xC4000012
107#define ARM_SMC_PSCI_VERSION_MAJOR 0
108#define ARM_SMC_PSCI_VERSION_MINOR 2
109#define ARM_SMC_PSCI_VERSION \
110 ((ARM_SMC_PSCI_VERSION_MAJOR << 16) | ARM_SMC_PSCI_VERSION_MINOR)
113#define ARM_SMC_PSCI_RET_SUCCESS 0
114#define ARM_SMC_PSCI_RET_NOT_SUPPORTED -1
115#define ARM_SMC_PSCI_RET_INVALID_PARAMS -2
116#define ARM_SMC_PSCI_RET_DENIED -3
117#define ARM_SMC_PSCI_RET_ALREADY_ON -4
118#define ARM_SMC_PSCI_RET_ON_PENDING -5
119#define ARM_SMC_PSCI_RET_INTERN_FAIL -6
120#define ARM_SMC_PSCI_RET_NOT_PRESENT -7
121#define ARM_SMC_PSCI_RET_DISABLED -8
123#define ARM_SMC_PSCI_TARGET_CPU32(Aff2, Aff1, Aff0) \
124 ((((Aff2) & 0xFF) << 16) | (((Aff1) & 0xFF) << 8) | ((Aff0) & 0xFF))
126#define ARM_SMC_PSCI_TARGET_CPU64(Aff3, Aff2, Aff1, Aff0) \
127 ((((Aff3) & 0xFFULL) << 32) | (((Aff2) & 0xFF) << 16) | (((Aff1) & 0xFF) << 8) | ((Aff0) & 0xFF))
129#define ARM_SMC_PSCI_TARGET_GET_AFF0(TargetId) ((TargetId) & 0xFF)
130#define ARM_SMC_PSCI_TARGET_GET_AFF1(TargetId) (((TargetId) >> 8) & 0xFF)
132#define ARM_SMC_ID_PSCI_AFFINITY_LEVEL_0 0
133#define ARM_SMC_ID_PSCI_AFFINITY_LEVEL_1 1
134#define ARM_SMC_ID_PSCI_AFFINITY_LEVEL_2 2
135#define ARM_SMC_ID_PSCI_AFFINITY_LEVEL_3 3
137#define ARM_SMC_ID_PSCI_AFFINITY_INFO_ON 0
138#define ARM_SMC_ID_PSCI_AFFINITY_INFO_OFF 1
139#define ARM_SMC_ID_PSCI_AFFINITY_INFO_ON_PENDING 2
144#define ARM_SMC_ID_TOS_CALL_COUNT 0xbf00ff00
145#define ARM_SMC_ID_TOS_UID 0xbf00ff01
147#define ARM_SMC_ID_TOS_REVISION 0xbf00ff03
165#define ARM_SMC_ID_TRNG_VERSION 0x84000050
184#define ARM_SMC_ID_TRNG_FEATURES 0x84000051
201#define ARM_SMC_ID_TRNG_GET_UUID 0x84000052
220#define ARM_SMC_ID_TRNG_RND_AARCH32 0x84000053
239#define ARM_SMC_ID_TRNG_RND_AARCH64 0xC4000053
242#define TRNG_STATUS_SUCCESS (INT32)(0)
243#define TRNG_STATUS_NOT_SUPPORTED (INT32)(-1)
244#define TRNG_STATUS_INVALID_PARAMETER (INT32)(-2)
245#define TRNG_STATUS_NO_ENTROPY (INT32)(-3)
251#define SMC_FASTCALL 0x80000000
252#define SMC64_FUNCTION (SMC_FASTCALL | 0x40000000)
253#define SMC_SIP_FUNCTION (SMC64_FUNCTION | 0x02000000)
254#define SMC_SIP_FUNCTION_ID(n) (SMC_SIP_FUNCTION | (n))