summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEtienne Carriere <[email protected]>2022-06-01 10:27:31 +0200
committerTom Rini <[email protected]>2022-06-23 13:12:56 -0400
commitf7f124001540878b68b50c6d7ca188a9872a3cb5 (patch)
tree2a887f880f62c5fc3ff31a315739326dc9e261a2 /include/linux
parentc08decd29ec44b38262eaa93e0e66d3965d26232 (diff)
smccc: define generic IDs for feature discovery
Defines function IDs ARM_SMCCC_ARCH_FEATURES used to query SMCCC feature support, applicable from Arm SMCCC v1.1 specification. Defines macro ARM_SMCCC_RET_NOT_SUPPORTED as generic return identifier for when a SMCCC feature is not supported. Signed-off-by: Etienne Carriere <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/arm-smccc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h
index 7f2be233947..94a20c97937 100644
--- a/include/linux/arm-smccc.h
+++ b/include/linux/arm-smccc.h
@@ -51,6 +51,10 @@
#define ARM_SMCCC_QUIRK_NONE 0
#define ARM_SMCCC_QUIRK_QCOM_A6 1 /* Save/restore register a6 */
+#define ARM_SMCCC_ARCH_FEATURES 0x80000001
+
+#define ARM_SMCCC_RET_NOT_SUPPORTED ((unsigned long)-1)
+
#ifndef __ASSEMBLY__
#include <linux/linkage.h>