summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2023-06-01 19:14:25 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-06-02 11:21:26 +0000
commit4354c22f38778a2bb4644d1f1f43a47e4313fe42 (patch)
tree3b2fec791f1cd09c5f0796d50f65d48fefe7f4c5 /ArmPkg
parent0364ccfeadd4c88445092cbed8be76d7c0315c52 (diff)
downloadedk2-4354c22f38778a2bb4644d1f1f43a47e4313fe42.tar.gz
edk2-4354c22f38778a2bb4644d1f1f43a47e4313fe42.tar.bz2
edk2-4354c22f38778a2bb4644d1f1f43a47e4313fe42.zip
ArmPkg: add SMC defines for SiP service calls
They are useful for those platforms where SMC SiP calls exist. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Include/IndustryStandard/ArmStdSmc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
index 374b9ded7f..616c650d07 100644
--- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
+++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
@@ -244,4 +244,13 @@
#define TRNG_STATUS_INVALID_PARAMETER (INT32)(-2)
#define TRNG_STATUS_NO_ENTROPY (INT32)(-3)
+/*
+ * SMC64 SiP Service Calls
+ */
+
+#define SMC_FASTCALL 0x80000000
+#define SMC64_FUNCTION (SMC_FASTCALL | 0x40000000)
+#define SMC_SIP_FUNCTION (SMC64_FUNCTION | 0x02000000)
+#define SMC_SIP_FUNCTION_ID(n) (SMC_SIP_FUNCTION | (n))
+
#endif // ARM_STD_SMC_H_