The ARM SMC Architecture functions were missing from ArmStdSmc.h.
Add them, based on the SMC Calling Convention version 1.2 specification.
Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
+* Copyright (c) 2020, NUVIA Inc. All rights reserved.<BR>\r
* Copyright (c) 2012-2017, ARM Limited. All rights reserved.\r
*\r
* SPDX-License-Identifier: BSD-2-Clause-Patent\r
*\r
* Copyright (c) 2012-2017, ARM Limited. All rights reserved.\r
*\r
* SPDX-License-Identifier: BSD-2-Clause-Patent\r
*\r
+* @par Revision Reference:\r
+* - SMC Calling Convention version 1.2\r
+* (https://developer.arm.com/documentation/den0028/c/?lang=en)\r
**/\r
\r
#ifndef __ARM_STD_SMC_H__\r
**/\r
\r
#ifndef __ARM_STD_SMC_H__\r
#define ARM_SMC_MM_RET_DENIED -3\r
#define ARM_SMC_MM_RET_NO_MEMORY -4\r
\r
#define ARM_SMC_MM_RET_DENIED -3\r
#define ARM_SMC_MM_RET_NO_MEMORY -4\r
\r
+// ARM Architecture Calls\r
+#define SMCCC_VERSION 0x80000000\r
+#define SMCCC_ARCH_FEATURES 0x80000001\r
+#define SMCCC_ARCH_SOC_ID 0x80000002\r
+#define SMCCC_ARCH_WORKAROUND_1 0x80008000\r
+#define SMCCC_ARCH_WORKAROUND_2 0x80007FFF\r
+\r
+#define SMC_ARCH_CALL_SUCCESS 0\r
+#define SMC_ARCH_CALL_NOT_SUPPORTED -1\r
+#define SMC_ARCH_CALL_NOT_REQUIRED -2\r
+#define SMC_ARCH_CALL_INVALID_PARAMETER -3\r
+\r
/*\r
* Power State Coordination Interface (PSCI) calls cover a subset of the\r
* Standard Service Call range.\r
/*\r
* Power State Coordination Interface (PSCI) calls cover a subset of the\r
* Standard Service Call range.\r