From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.1404.1685947075921792213 for ; Sun, 04 Jun 2023 23:37:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=softfail (domain: linaro.org, ip: 213.251.184.221, mailfrom: marcin.juszkiewicz@linaro.org) Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 6F145260202; Mon, 5 Jun 2023 08:37:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k2KKxfkcKNcQ; Mon, 5 Jun 2023 08:37:50 +0200 (CEST) Received: from applejack.lan (83.21.93.182.ipv4.supernova.orange.pl [83.21.93.182]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id EF93426069C; Mon, 5 Jun 2023 08:37:49 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Sami Mujawar , Ard Biesheuvel , Leif Lindholm , Marcin Juszkiewicz Subject: [PATCH v2 1/1] ArmPkg: add SMC defines for SiP service calls Date: Mon, 5 Jun 2023 08:37:35 +0200 Message-Id: <20230605063743.405487-2-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230605063743.405487-1-marcin.juszkiewicz@linaro.org> References: <20230605063743.405487-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable They are useful for those platforms where SMC SiP calls exist. Signed-off-by: Marcin Juszkiewicz --- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include= /IndustryStandard/ArmStdSmc.h index 374b9ded7f5f..616c650d07c8 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) =20 +/* + * 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_ --=20 2.40.1