diff options
author | Himanshu Sharma <Himanshu.Sharma@arm.com> | 2024-01-04 13:32:56 +0530 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-04 09:58:10 +0000 |
commit | 855f52819950673642ca1add72c8eb0fc3499ce9 (patch) | |
tree | 6dfd5af557165ec70d7acb6646af55129fcab06f | |
parent | 970aacd191eb006f280f285251343b3dc9e1fa81 (diff) | |
download | edk2-855f52819950673642ca1add72c8eb0fc3499ce9.tar.gz edk2-855f52819950673642ca1add72c8eb0fc3499ce9.tar.bz2 edk2-855f52819950673642ca1add72c8eb0fc3499ce9.zip |
ArmPkg/ArmGicArchLib: Add macros for SPI and extended SPI ranges
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.
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Himanshu Sharma <Himanshu.Sharma@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
-rw-r--r-- | ArmPkg/Include/Library/ArmGicArchLib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ArmPkg/Include/Library/ArmGicArchLib.h b/ArmPkg/Include/Library/ArmGicArchLib.h index 72ac17e13b..ed6fe6fecb 100644 --- a/ArmPkg/Include/Library/ArmGicArchLib.h +++ b/ArmPkg/Include/Library/ArmGicArchLib.h @@ -1,9 +1,15 @@ /** @file
*
* Copyright (c) 2015, Linaro Ltd. All rights reserved.
+* Copyright (c) 2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
+* @par Reference(s):
+* - Arm Generic Interrupt Controller Architecture Specification,
+* Issue H, January 2022.
+* (https://developer.arm.com/documentation/ihi0069/)
+*
**/
#ifndef ARM_GIC_ARCH_LIB_H_
@@ -23,4 +29,12 @@ ArmGicGetSupportedArchRevision ( VOID
);
+//
+// GIC SPI and extended SPI ranges
+//
+#define ARM_GIC_ARCH_SPI_MIN 32
+#define ARM_GIC_ARCH_SPI_MAX 1019
+#define ARM_GIC_ARCH_EXT_SPI_MIN 4096
+#define ARM_GIC_ARCH_EXT_SPI_MAX 5119
+
#endif // ARM_GIC_ARCH_LIB_H_
|