]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/IndustryStandard/ArmStdSmc.h
ArmPkg/Include: Add standard SMC function IDs for MM interface.
[mirror_edk2.git] / ArmPkg / Include / IndustryStandard / ArmStdSmc.h
index 593a3ce729cec2333d3d4c65b9711ffd7348c0c8..37d079664986aea16370959a4f193cabc31ffc20 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2012-2014, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2012-2017, ARM Limited. All rights reserved.\r
 *\r
 *  This program and the accompanying materials\r
 *  are licensed and made available under the terms and conditions of the BSD License\r
 #define ARM_SMC_STD_REVISION_MAJOR    0x0\r
 #define ARM_SMC_STD_REVISION_MINOR    0x1\r
 \r
+/*\r
+ * Management Mode (MM) calls cover a subset of the Standard Service Call range.\r
+ * The list below is not exhaustive.\r
+ */\r
+#define ARM_SMC_ID_MM_VERSION_AARCH32              0x84000040\r
+#define ARM_SMC_ID_MM_VERSION_AARCH64              0xC4000040\r
+\r
+// Request service from secure standalone MM environment\r
+#define ARM_SMC_ID_MM_COMMUNICATE_AARCH32          0x84000041\r
+#define ARM_SMC_ID_MM_COMMUNICATE_AARCH64          0xC4000041\r
+\r
+/* MM return error codes */\r
+#define ARM_SMC_MM_RET_SUCCESS              0\r
+#define ARM_SMC_MM_RET_NOT_SUPPORTED       -1\r
+#define ARM_SMC_MM_RET_INVALID_PARAMS      -2\r
+#define ARM_SMC_MM_RET_DENIED              -3\r
+#define ARM_SMC_MM_RET_NO_MEMORY           -4\r
+\r
 /*\r
  * Power State Coordination Interface (PSCI) calls cover a subset of the\r
  * Standard Service Call range.\r