From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 70104AC0DA1 for ; Thu, 4 Jan 2024 08:03:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=XWM936VnnYnbaqJXJDUCp1GeXZv3ptWRwK6VwobzOzE=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704355389; v=1; b=ErwLIssMNKK/UCRmOilRHBvBqZR3nn4HAiiJJgPLSTRZzhn+fwmxV4/GMH2DrTN5nlW+TOfp jCJGkR7Wj7c7nfnnABFi4xlSNrrr8V9gZdf2L0icdSrB66jeFehm3Mdw6f066XX/h2di8Y1gOXd 53zbtEHDXNPAuNXoZvDRm5Z8= X-Received: by 127.0.0.2 with SMTP id vzTgYY7687511xDzvlVnwfy5; Thu, 04 Jan 2024 00:03:09 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.49724.1704355388372376228 for ; Thu, 04 Jan 2024 00:03:08 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C62751007; Thu, 4 Jan 2024 00:03:53 -0800 (PST) X-Received: from usa.arm.com (a076756.arm.com [10.162.16.85]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 206263F7A6; Thu, 4 Jan 2024 00:03:05 -0800 (PST) From: "Himanshu Sharma" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Pierre Gondois , Himanshu Sharma Subject: [edk2-devel] [edk2][PATCH V2 1/2] ArmPkg/ArmGicArchLib: Add macros for SPI and extended SPI ranges Date: Thu, 4 Jan 2024 13:32:56 +0530 Message-Id: <20240104080257.319631-2-Himanshu.Sharma@arm.com> In-Reply-To: <20240104080257.319631-1-Himanshu.Sharma@arm.com> References: <20240104080257.319631-1-Himanshu.Sharma@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,Himanshu.Sharma@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0rJfpJ0yPlKLThA2gEmXWB9qx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ErwLIssM; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Taking reference from Table 2-1 of the Arm Generic Interrupt Controller Architecture Specification, Issue H, January 2022, add macros for the SPI and extended SPI ranges with the purpose of reusability on including the ArmPkg. Signed-off-by: Himanshu Sharma --- ArmPkg/Include/Library/ArmGicArchLib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ArmPkg/Include/Library/ArmGicArchLib.h b/ArmPkg/Include/Librar= y/ArmGicArchLib.h index 72ac17e13b5a..ed6fe6fecb09 100644 --- a/ArmPkg/Include/Library/ArmGicArchLib.h +++ b/ArmPkg/Include/Library/ArmGicArchLib.h @@ -1,9 +1,15 @@ /** @file=0D *=0D * Copyright (c) 2015, Linaro Ltd. All rights reserved.=0D +* Copyright (c) 2024, Arm Limited. All rights reserved.=0D *=0D * SPDX-License-Identifier: BSD-2-Clause-Patent=0D *=0D +* @par Reference(s):=0D +* - Arm Generic Interrupt Controller Architecture Specification,=0D +* Issue H, January 2022.=0D +* (https://developer.arm.com/documentation/ihi0069/)=0D +*=0D **/=0D =0D #ifndef ARM_GIC_ARCH_LIB_H_=0D @@ -23,4 +29,12 @@ ArmGicGetSupportedArchRevision ( VOID=0D );=0D =0D +//=0D +// GIC SPI and extended SPI ranges=0D +//=0D +#define ARM_GIC_ARCH_SPI_MIN 32=0D +#define ARM_GIC_ARCH_SPI_MAX 1019=0D +#define ARM_GIC_ARCH_EXT_SPI_MIN 4096=0D +#define ARM_GIC_ARCH_EXT_SPI_MAX 5119=0D +=0D #endif // ARM_GIC_ARCH_LIB_H_=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113141): https://edk2.groups.io/g/devel/message/113141 Mute This Topic: https://groups.io/mt/103518972/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-