2015-07-28 22:44:44 +02:00
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* Copyright (c) 2015, Linaro Ltd. All rights reserved.
|
2024-01-04 09:02:56 +01:00
|
|
|
* Copyright (c) 2024, Arm Limited. All rights reserved.
|
2015-07-28 22:44:44 +02:00
|
|
|
*
|
2019-04-04 01:03:18 +02:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-07-28 22:44:44 +02:00
|
|
|
*
|
2024-01-04 09:02:56 +01:00
|
|
|
* @par Reference(s):
|
|
|
|
* - Arm Generic Interrupt Controller Architecture Specification,
|
|
|
|
* Issue H, January 2022.
|
|
|
|
* (https://developer.arm.com/documentation/ihi0069/)
|
|
|
|
*
|
2015-07-28 22:44:44 +02:00
|
|
|
**/
|
|
|
|
|
2021-04-20 13:00:23 +02:00
|
|
|
#ifndef ARM_GIC_ARCH_LIB_H_
|
|
|
|
#define ARM_GIC_ARCH_LIB_H_
|
2015-07-28 22:44:44 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// GIC definitions
|
|
|
|
//
|
|
|
|
typedef enum {
|
|
|
|
ARM_GIC_ARCH_REVISION_2,
|
|
|
|
ARM_GIC_ARCH_REVISION_3
|
|
|
|
} ARM_GIC_ARCH_REVISION;
|
|
|
|
|
|
|
|
ARM_GIC_ARCH_REVISION
|
|
|
|
EFIAPI
|
|
|
|
ArmGicGetSupportedArchRevision (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2024-01-04 09:02:56 +01:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2021-04-20 13:00:23 +02:00
|
|
|
#endif // ARM_GIC_ARCH_LIB_H_
|