summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/psci/smccc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/psci/smccc.h b/sys/dev/psci/smccc.h
index ea0fa4494a26..25de6631d618 100644
--- a/sys/dev/psci/smccc.h
+++ b/sys/dev/psci/smccc.h
@@ -49,6 +49,10 @@
#define SMCCC_32BIT_CALL 0
#define SMCCC_64BIT_CALL 1
+/*
+ * Arm Architecture Calls.
+ * These are documented in the document ARM DEN 0070A.
+ */
#define SMCCC_VERSION \
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0)
#define SMCCC_ARCH_FEATURES \
@@ -56,6 +60,11 @@
#define SMCCC_ARCH_WORKAROUND_1 \
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0x8000)
+/* The return values from ARM DEN 0070A. */
+#define SMCCC_RET_SUCCESS 0
+#define SMCCC_RET_NOT_SUPPORTED -1
+#define SMCCC_RET_NOT_REQUIRED -2
+
int32_t smccc_arch_features(uint32_t);
int smccc_arch_workaround_1(void);