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 C7C5FAC0F7A for ; Wed, 6 Dec 2023 10:11:59 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=XFP9c0ChTstPjxdN0BoRKxQFkMP1Y4KBxp61i7y4TQw=; 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=1701857518; v=1; b=YL8+cRluxkn+J48xNx2kZOcrenA6KUwGwM8ivQE7Pfuuf0T4FYh+KPpdaNKwchT5aaX419rn ZYXzwDngIAo2W1balf6oQCfoMKPzL6ubNRT6ZC3WPfPBVzvakDOD+XPH3Mex3HcmENzmPM/UAbr EMcc8B3wTegRYuVTXwAt2UUs= X-Received: by 127.0.0.2 with SMTP id AVbkYY7687511x4wC6raxSRs; Wed, 06 Dec 2023 02:11:58 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.28488.1701857517872862107 for ; Wed, 06 Dec 2023 02:11:58 -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 8E249150C; Wed, 6 Dec 2023 02:12:43 -0800 (PST) X-Received: from usa.arm.com (a076756.arm.com [10.162.16.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 78F8F3F762; Wed, 6 Dec 2023 02:11:55 -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 V1 1/2] ArmPkg/ArmGicArchLib: Add macros for SPI and extended SPI ranges Date: Wed, 6 Dec 2023 15:41:45 +0530 Message-Id: <20231206101146.1309296-2-Himanshu.Sharma@arm.com> In-Reply-To: <20231206101146.1309296-1-Himanshu.Sharma@arm.com> References: <20231206101146.1309296-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: xRsSG3LXceVjaixv7h8xQUVKx7686176AA= 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=YL8+cRlu; 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ArmPkg/Include/Library/ArmGicArchLib.h b/ArmPkg/Include/Librar= y/ArmGicArchLib.h index 72ac17e13b5a..1b90b354f785 100644 --- a/ArmPkg/Include/Library/ArmGicArchLib.h +++ b/ArmPkg/Include/Library/ArmGicArchLib.h @@ -1,6 +1,7 @@ /** @file=0D *=0D * Copyright (c) 2015, Linaro Ltd. All rights reserved.=0D +* Copyright (c) 2023, Arm Limited. All rights reserved.=0D *=0D * SPDX-License-Identifier: BSD-2-Clause-Patent=0D *=0D @@ -23,4 +24,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 (#112117): https://edk2.groups.io/g/devel/message/112117 Mute This Topic: https://groups.io/mt/103010240/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-