2018-12-15 12:58:07 +01:00
|
|
|
/** @file
|
|
|
|
|
2024-01-04 09:02:57 +01:00
|
|
|
Copyright (c) 2017 - 2024, Arm Limited. All rights reserved.<BR>
|
2018-12-15 12:58:07 +01:00
|
|
|
|
2019-04-04 01:03:32 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
@par Glossary:
|
|
|
|
- Cm or CM - Configuration Manager
|
|
|
|
- Obj or OBJ - Object
|
|
|
|
- Std or STD - Standard
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef ARM_NAMESPACE_OBJECTS_H_
|
|
|
|
#define ARM_NAMESPACE_OBJECTS_H_
|
|
|
|
|
2024-01-25 16:18:43 +01:00
|
|
|
#include <AcpiObjects.h>
|
2018-12-15 12:58:07 +01:00
|
|
|
#include <StandardNameSpaceObjects.h>
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
/** The EARM_OBJECT_ID enum describes the Object IDs
|
|
|
|
in the ARM Namespace
|
2024-03-06 17:45:47 +01:00
|
|
|
|
|
|
|
Note: Whenever an entry in this enum is updated,
|
|
|
|
the following data structures must also be
|
|
|
|
updated:
|
|
|
|
- CM_OBJECT_TOKEN_FIXER TokenFixer[] in
|
|
|
|
Library\Common\DynamicPlatRepoLib\CmObjectTokenFixer.c
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef enum ArmObjectID {
|
2022-10-10 11:20:54 +02:00
|
|
|
EArmObjReserved, ///< 0 - Reserved
|
|
|
|
EArmObjBootArchInfo, ///< 1 - Boot Architecture Info
|
2024-03-05 17:34:46 +01:00
|
|
|
EArmObjGicCInfo, ///< 2 - GIC CPU Interface Info
|
|
|
|
EArmObjGicDInfo, ///< 3 - GIC Distributor Info
|
|
|
|
EArmObjGicMsiFrameInfo, ///< 4 - GIC MSI Frame Info
|
|
|
|
EArmObjGicRedistributorInfo, ///< 5 - GIC Redistributor Info
|
|
|
|
EArmObjGicItsInfo, ///< 6 - GIC ITS Info
|
2024-03-06 11:08:09 +01:00
|
|
|
EArmObjGenericTimerInfo, ///< 7 - Generic Timer Info
|
|
|
|
EArmObjPlatformGTBlockInfo, ///< 8 - Platform GT Block Info
|
|
|
|
EArmObjGTBlockTimerFrameInfo, ///< 9 - Generic Timer Block Frame Info
|
|
|
|
EArmObjPlatformGenericWatchdogInfo, ///< 10 - Platform Generic Watchdog
|
2024-03-08 12:24:00 +01:00
|
|
|
EArmObjItsGroup, ///< 11 - ITS Group
|
|
|
|
EArmObjNamedComponent, ///< 12 - Named Component
|
|
|
|
EArmObjRootComplex, ///< 13 - Root Complex
|
|
|
|
EArmObjSmmuV1SmmuV2, ///< 14 - SMMUv1 or SMMUv2
|
|
|
|
EArmObjSmmuV3, ///< 15 - SMMUv3
|
|
|
|
EArmObjPmcg, ///< 16 - PMCG
|
|
|
|
EArmObjGicItsIdentifierArray, ///< 17 - GIC ITS Identifier Array
|
|
|
|
EArmObjIdMappingArray, ///< 18 - ID Mapping Array
|
|
|
|
EArmObjSmmuInterruptArray, ///< 19 - SMMU Interrupt Array
|
2024-03-11 14:36:32 +01:00
|
|
|
EArmObjCacheInfo, ///< 20 - Cache Info
|
|
|
|
EArmObjCmn600Info, ///< 21 - CMN-600 Info
|
|
|
|
EArmObjRmr, ///< 22 - Reserved Memory Range Node
|
|
|
|
EArmObjMemoryRangeDescriptor, ///< 23 - Memory Range Descriptor
|
|
|
|
EArmObjCpcInfo, ///< 24 - Continuous Performance Control Info
|
|
|
|
EArmObjPccSubspaceType0Info, ///< 25 - Pcc Subspace Type 0 Info
|
|
|
|
EArmObjPccSubspaceType1Info, ///< 26 - Pcc Subspace Type 2 Info
|
|
|
|
EArmObjPccSubspaceType2Info, ///< 27 - Pcc Subspace Type 2 Info
|
|
|
|
EArmObjPccSubspaceType3Info, ///< 28 - Pcc Subspace Type 3 Info
|
|
|
|
EArmObjPccSubspaceType4Info, ///< 29 - Pcc Subspace Type 4 Info
|
|
|
|
EArmObjPccSubspaceType5Info, ///< 30 - Pcc Subspace Type 5 Info
|
|
|
|
EArmObjEtInfo, ///< 31 - Embedded Trace Extension/Module Info
|
|
|
|
EArmObjPsdInfo, ///< 32 - P-State Dependency (PSD) Info
|
2018-12-15 12:58:07 +01:00
|
|
|
EArmObjMax
|
|
|
|
} EARM_OBJECT_ID;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
ARM Boot Architecture flags.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjBootArchInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmBootArchInfo {
|
|
|
|
/** This is the ARM_BOOT_ARCH flags field of the FADT Table
|
|
|
|
described in the ACPI Table Specification.
|
|
|
|
*/
|
2019-07-09 16:04:45 +02:00
|
|
|
UINT16 BootArchFlags;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_BOOT_ARCH_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
GIC CPU Interface for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGicCInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGicCInfo {
|
|
|
|
/// The GIC CPU Interface number.
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 CPUInterfaceNumber;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The ACPI Processor UID. This must match the
|
|
|
|
_UID of the CPU Device object information described
|
|
|
|
in the DSDT/SSDT for the CPU.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 AcpiProcessorUid;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The flags field as described by the GICC structure
|
|
|
|
in the ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 Flags;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The parking protocol version field as described by
|
|
|
|
the GICC structure in the ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 ParkingProtocolVersion;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The Performance Interrupt field as described by
|
|
|
|
the GICC structure in the ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 PerformanceInterruptGsiv;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The CPU Parked address field as described by
|
|
|
|
the GICC structure in the ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 ParkedAddress;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The base address for the GIC CPU Interface
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 PhysicalBaseAddress;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The base address for GICV interface
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 GICV;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The base address for GICH interface
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 GICH;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The GICV maintenance interrupt
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 VGICMaintenanceInterrupt;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The base address for GICR interface
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 GICRBaseAddress;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The MPIDR for the CPU
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT64 MPIDR;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
|
|
|
/** The Processor Power Efficiency class
|
|
|
|
as described by the GICC structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT8 ProcessorPowerEfficiencyClass;
|
2019-04-09 15:44:37 +02:00
|
|
|
|
|
|
|
/** Statistical Profiling Extension buffer overflow GSIV. Zero if
|
|
|
|
unsupported by this processor. This field was introduced in
|
|
|
|
ACPI 6.3 (MADT revision 5) and is therefore ignored when
|
|
|
|
generating MADT revision 4 or lower.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT16 SpeOverflowInterrupt;
|
2019-10-18 11:49:20 +02:00
|
|
|
|
|
|
|
/** The proximity domain to which the logical processor belongs.
|
|
|
|
This field is used to populate the GICC affinity structure
|
|
|
|
in the SRAT table.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 ProximityDomain;
|
2019-10-18 11:49:20 +02:00
|
|
|
|
|
|
|
/** The clock domain to which the logical processor belongs.
|
|
|
|
This field is used to populate the GICC affinity structure
|
|
|
|
in the SRAT table.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 ClockDomain;
|
2019-10-18 11:49:20 +02:00
|
|
|
|
|
|
|
/** The GICC Affinity flags field as described by the GICC Affinity structure
|
|
|
|
in the SRAT table.
|
|
|
|
*/
|
2022-09-22 22:36:44 +02:00
|
|
|
UINT32 AffinityFlags;
|
|
|
|
|
|
|
|
/** Optional field: Reference Token for the Cpc info of this processor.
|
|
|
|
i.e. a token referencing a CM_ARM_CPC_INFO object.
|
|
|
|
*/
|
|
|
|
CM_OBJECT_TOKEN CpcToken;
|
2023-09-22 16:35:06 +02:00
|
|
|
|
|
|
|
/** Trace Buffer Extension interrupt GSIV. Zero if
|
|
|
|
unsupported by this processor. This field was introduced in
|
|
|
|
ACPI 6.5 (MADT revision 6) and is therefore ignored when
|
|
|
|
generating MADT revision 5 or lower.
|
|
|
|
*/
|
|
|
|
UINT16 TrbeInterrupt;
|
2023-09-22 16:35:11 +02:00
|
|
|
|
|
|
|
/** Optional field: Reference Token for the Embedded Trace device info for
|
|
|
|
this processing element.
|
|
|
|
i.e. a token referencing a CM_ARM_ET_INFO object.
|
|
|
|
*/
|
|
|
|
CM_OBJECT_TOKEN EtToken;
|
2024-01-25 16:18:45 +01:00
|
|
|
|
|
|
|
/** Optional field: Reference Token for the Psd info of this processor.
|
|
|
|
i.e. a token referencing a CM_ARM_PSD_INFO object.
|
|
|
|
*/
|
|
|
|
CM_OBJECT_TOKEN PsdToken;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_GICC_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
GIC Distributor information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGicDInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGicDInfo {
|
|
|
|
/// The Physical Base address for the GIC Distributor.
|
|
|
|
UINT64 PhysicalBaseAddress;
|
|
|
|
|
|
|
|
/** The global system interrupt
|
|
|
|
number where this GIC Distributor's
|
|
|
|
interrupt inputs start.
|
|
|
|
*/
|
|
|
|
UINT32 SystemVectorBase;
|
|
|
|
|
|
|
|
/** The GIC version as described
|
|
|
|
by the GICD structure in the
|
|
|
|
ACPI Specification.
|
|
|
|
*/
|
|
|
|
UINT8 GicVersion;
|
|
|
|
} CM_ARM_GICD_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
GIC MSI Frame information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGicMsiFrameInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGicMsiFrameInfo {
|
|
|
|
/// The GIC MSI Frame ID
|
|
|
|
UINT32 GicMsiFrameId;
|
|
|
|
|
|
|
|
/// The Physical base address for the MSI Frame
|
|
|
|
UINT64 PhysicalBaseAddress;
|
|
|
|
|
|
|
|
/** The GIC MSI Frame flags
|
|
|
|
as described by the GIC MSI frame
|
|
|
|
structure in the ACPI Specification.
|
|
|
|
*/
|
|
|
|
UINT32 Flags;
|
|
|
|
|
|
|
|
/// SPI Count used by this frame
|
|
|
|
UINT16 SPICount;
|
|
|
|
|
|
|
|
/// SPI Base used by this frame
|
|
|
|
UINT16 SPIBase;
|
|
|
|
} CM_ARM_GIC_MSI_FRAME_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
GIC Redistributor information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGicRedistributorInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGicRedistInfo {
|
|
|
|
/** The physical address of a page range
|
|
|
|
containing all GIC Redistributors.
|
|
|
|
*/
|
|
|
|
UINT64 DiscoveryRangeBaseAddress;
|
|
|
|
|
|
|
|
/// Length of the GIC Redistributor Discovery page range
|
|
|
|
UINT32 DiscoveryRangeLength;
|
|
|
|
} CM_ARM_GIC_REDIST_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
GIC Interrupt Translation Service information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGicItsInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGicItsInfo {
|
|
|
|
/// The GIC ITS ID
|
|
|
|
UINT32 GicItsId;
|
|
|
|
|
|
|
|
/// The physical address for the Interrupt Translation Service
|
|
|
|
UINT64 PhysicalBaseAddress;
|
2019-10-18 11:49:20 +02:00
|
|
|
|
|
|
|
/** The proximity domain to which the logical processor belongs.
|
|
|
|
This field is used to populate the GIC ITS affinity structure
|
|
|
|
in the SRAT table.
|
|
|
|
*/
|
|
|
|
UINT32 ProximityDomain;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_GIC_ITS_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
Generic Timer information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGenericTimerInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGenericTimerInfo {
|
|
|
|
/// The physical base address for the counter control frame
|
|
|
|
UINT64 CounterControlBaseAddress;
|
|
|
|
|
|
|
|
/// The physical base address for the counter read frame
|
|
|
|
UINT64 CounterReadBaseAddress;
|
|
|
|
|
|
|
|
/// The secure PL1 timer interrupt
|
|
|
|
UINT32 SecurePL1TimerGSIV;
|
|
|
|
|
|
|
|
/// The secure PL1 timer flags
|
|
|
|
UINT32 SecurePL1TimerFlags;
|
|
|
|
|
|
|
|
/// The non-secure PL1 timer interrupt
|
|
|
|
UINT32 NonSecurePL1TimerGSIV;
|
|
|
|
|
|
|
|
/// The non-secure PL1 timer flags
|
|
|
|
UINT32 NonSecurePL1TimerFlags;
|
|
|
|
|
|
|
|
/// The virtual timer interrupt
|
|
|
|
UINT32 VirtualTimerGSIV;
|
|
|
|
|
|
|
|
/// The virtual timer flags
|
|
|
|
UINT32 VirtualTimerFlags;
|
|
|
|
|
|
|
|
/// The non-secure PL2 timer interrupt
|
|
|
|
UINT32 NonSecurePL2TimerGSIV;
|
|
|
|
|
|
|
|
/// The non-secure PL2 timer flags
|
|
|
|
UINT32 NonSecurePL2TimerFlags;
|
2019-03-19 18:46:50 +01:00
|
|
|
|
|
|
|
/// GSIV for the virtual EL2 timer
|
|
|
|
UINT32 VirtualPL2TimerGSIV;
|
|
|
|
|
|
|
|
/// Flags for the virtual EL2 timer
|
|
|
|
UINT32 VirtualPL2TimerFlags;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_GENERIC_TIMER_INFO;
|
|
|
|
|
2022-10-10 11:20:49 +02:00
|
|
|
/** A structure that describes the
|
|
|
|
Platform Generic Block Timer information for the Platform.
|
|
|
|
|
|
|
|
ID: EArmObjPlatformGTBlockInfo
|
|
|
|
*/
|
|
|
|
typedef struct CmArmGTBlockInfo {
|
|
|
|
/// The physical base address for the GT Block Timer structure
|
|
|
|
UINT64 GTBlockPhysicalAddress;
|
|
|
|
|
|
|
|
/// The number of timer frames implemented in the GT Block
|
|
|
|
UINT32 GTBlockTimerFrameCount;
|
|
|
|
|
|
|
|
/// Reference token for the GT Block timer frame list
|
|
|
|
CM_OBJECT_TOKEN GTBlockTimerFrameToken;
|
|
|
|
} CM_ARM_GTBLOCK_INFO;
|
|
|
|
|
2018-12-15 12:58:07 +01:00
|
|
|
/** A structure that describes the
|
|
|
|
Platform Generic Block Timer Frame information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjGTBlockTimerFrameInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGTBlockTimerFrameInfo {
|
|
|
|
/// The Generic Timer frame number
|
|
|
|
UINT8 FrameNumber;
|
|
|
|
|
|
|
|
/// The physical base address for the CntBase block
|
|
|
|
UINT64 PhysicalAddressCntBase;
|
|
|
|
|
|
|
|
/// The physical base address for the CntEL0Base block
|
|
|
|
UINT64 PhysicalAddressCntEL0Base;
|
|
|
|
|
|
|
|
/// The physical timer interrupt
|
|
|
|
UINT32 PhysicalTimerGSIV;
|
|
|
|
|
|
|
|
/** The physical timer flags as described by the GT Block
|
|
|
|
Timer frame Structure in the ACPI Specification.
|
|
|
|
*/
|
|
|
|
UINT32 PhysicalTimerFlags;
|
|
|
|
|
|
|
|
/// The virtual timer interrupt
|
|
|
|
UINT32 VirtualTimerGSIV;
|
|
|
|
|
|
|
|
/** The virtual timer flags as described by the GT Block
|
|
|
|
Timer frame Structure in the ACPI Specification.
|
|
|
|
*/
|
|
|
|
UINT32 VirtualTimerFlags;
|
|
|
|
|
|
|
|
/** The common timer flags as described by the GT Block
|
|
|
|
Timer frame Structure in the ACPI Specification.
|
|
|
|
*/
|
|
|
|
UINT32 CommonFlags;
|
|
|
|
} CM_ARM_GTBLOCK_TIMER_FRAME_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
2021-08-16 16:52:17 +02:00
|
|
|
Arm Generic Watchdog information for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjPlatformGenericWatchdogInfo
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmGenericWatchdogInfo {
|
2021-08-16 16:52:17 +02:00
|
|
|
/// The physical base address of the Arm Watchdog control frame
|
2018-12-15 12:58:07 +01:00
|
|
|
UINT64 ControlFrameAddress;
|
|
|
|
|
2021-08-16 16:52:17 +02:00
|
|
|
/// The physical base address of the Arm Watchdog refresh frame
|
2018-12-15 12:58:07 +01:00
|
|
|
UINT64 RefreshFrameAddress;
|
|
|
|
|
|
|
|
/// The watchdog interrupt
|
|
|
|
UINT32 TimerGSIV;
|
|
|
|
|
2021-08-16 16:52:17 +02:00
|
|
|
/** The flags for the watchdog as described by the Arm watchdog
|
2018-12-15 12:58:07 +01:00
|
|
|
structure in the ACPI specification.
|
|
|
|
*/
|
|
|
|
UINT32 Flags;
|
|
|
|
} CM_ARM_GENERIC_WATCHDOG_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
ITS Group node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjItsGroup
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmItsGroupNode {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// The number of ITS identifiers in the ITS node
|
|
|
|
UINT32 ItsIdCount;
|
|
|
|
/// Reference token for the ITS identifier array
|
|
|
|
CM_OBJECT_TOKEN ItsIdToken;
|
2022-07-14 18:50:30 +02:00
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_ITS_GROUP_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
Named component node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjNamedComponent
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmNamedComponentNode {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// Flags for the named component
|
|
|
|
UINT32 Flags;
|
|
|
|
|
|
|
|
/// Memory access properties : Cache coherent attributes
|
|
|
|
UINT32 CacheCoherent;
|
|
|
|
/// Memory access properties : Allocation hints
|
|
|
|
UINT8 AllocationHints;
|
|
|
|
/// Memory access properties : Memory access flags
|
|
|
|
UINT8 MemoryAccessFlags;
|
|
|
|
|
|
|
|
/// Memory access properties : Address size limit
|
|
|
|
UINT8 AddressSizeLimit;
|
2021-12-05 23:53:55 +01:00
|
|
|
|
2018-12-15 12:58:07 +01:00
|
|
|
/** ASCII Null terminated string with the full path to
|
|
|
|
the entry in the namespace for this object.
|
|
|
|
*/
|
|
|
|
CHAR8 *ObjectName;
|
2022-07-14 18:50:30 +02:00
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_NAMED_COMPONENT_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
Root complex node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjRootComplex
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmRootComplexNode {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// Memory access properties : Cache coherent attributes
|
|
|
|
UINT32 CacheCoherent;
|
|
|
|
/// Memory access properties : Allocation hints
|
|
|
|
UINT8 AllocationHints;
|
|
|
|
/// Memory access properties : Memory access flags
|
|
|
|
UINT8 MemoryAccessFlags;
|
|
|
|
|
|
|
|
/// ATS attributes
|
|
|
|
UINT32 AtsAttribute;
|
|
|
|
/// PCI segment number
|
|
|
|
UINT32 PciSegmentNumber;
|
|
|
|
/// Memory address size limit
|
|
|
|
UINT8 MemoryAddressSize;
|
2022-07-14 18:50:30 +02:00
|
|
|
/// PASID capabilities
|
|
|
|
UINT16 PasidCapabilities;
|
|
|
|
/// Flags
|
|
|
|
UINT32 Flags;
|
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_ROOT_COMPLEX_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
SMMUv1 or SMMUv2 node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjSmmuV1SmmuV2
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmSmmuV1SmmuV2Node {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// SMMU Base Address
|
|
|
|
UINT64 BaseAddress;
|
|
|
|
/// Length of the memory range covered by the SMMU
|
|
|
|
UINT64 Span;
|
|
|
|
/// SMMU Model
|
|
|
|
UINT32 Model;
|
|
|
|
/// SMMU flags
|
|
|
|
UINT32 Flags;
|
|
|
|
|
|
|
|
/// Number of context interrupts
|
|
|
|
UINT32 ContextInterruptCount;
|
|
|
|
/// Reference token for the context interrupt array
|
|
|
|
CM_OBJECT_TOKEN ContextInterruptToken;
|
|
|
|
|
|
|
|
/// Number of PMU interrupts
|
|
|
|
UINT32 PmuInterruptCount;
|
|
|
|
/// Reference token for the PMU interrupt array
|
|
|
|
CM_OBJECT_TOKEN PmuInterruptToken;
|
|
|
|
|
|
|
|
/// GSIV of the SMMU_NSgIrpt interrupt
|
|
|
|
UINT32 SMMU_NSgIrpt;
|
|
|
|
/// SMMU_NSgIrpt interrupt flags
|
|
|
|
UINT32 SMMU_NSgIrptFlags;
|
|
|
|
/// GSIV of the SMMU_NSgCfgIrpt interrupt
|
|
|
|
UINT32 SMMU_NSgCfgIrpt;
|
|
|
|
/// SMMU_NSgCfgIrpt interrupt flags
|
|
|
|
UINT32 SMMU_NSgCfgIrptFlags;
|
2022-07-14 18:50:30 +02:00
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_SMMUV1_SMMUV2_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
SMMUv3 node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjSmmuV3
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmSmmuV3Node {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// SMMU Base Address
|
|
|
|
UINT64 BaseAddress;
|
|
|
|
/// SMMU flags
|
|
|
|
UINT32 Flags;
|
|
|
|
/// VATOS address
|
|
|
|
UINT64 VatosAddress;
|
|
|
|
/// Model
|
|
|
|
UINT32 Model;
|
|
|
|
/// GSIV of the Event interrupt if SPI based
|
|
|
|
UINT32 EventInterrupt;
|
|
|
|
/// PRI Interrupt if SPI based
|
|
|
|
UINT32 PriInterrupt;
|
|
|
|
/// GERR interrupt if GSIV based
|
|
|
|
UINT32 GerrInterrupt;
|
|
|
|
/// Sync interrupt if GSIV based
|
|
|
|
UINT32 SyncInterrupt;
|
|
|
|
|
|
|
|
/// Proximity domain flag
|
|
|
|
UINT32 ProximityDomain;
|
|
|
|
/// Index into the array of ID mapping
|
|
|
|
UINT32 DeviceIdMappingIndex;
|
2022-07-14 18:50:30 +02:00
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_SMMUV3_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
PMCG node for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjPmcg
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmPmcgNode {
|
2019-02-21 16:38:26 +01:00
|
|
|
/// An unique token used to identify this object
|
2018-12-15 12:58:07 +01:00
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// Base Address for performance monitor counter group
|
|
|
|
UINT64 BaseAddress;
|
|
|
|
/// GSIV for the Overflow interrupt
|
|
|
|
UINT32 OverflowInterrupt;
|
|
|
|
/// Page 1 Base address
|
|
|
|
UINT64 Page1BaseAddress;
|
|
|
|
|
|
|
|
/// Reference token for the IORT node associated with this node
|
|
|
|
CM_OBJECT_TOKEN ReferenceToken;
|
2022-07-14 18:50:30 +02:00
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
2018-12-15 12:58:07 +01:00
|
|
|
} CM_ARM_PMCG_NODE;
|
|
|
|
|
2021-03-15 14:26:31 +01:00
|
|
|
/** A structure that describes the
|
|
|
|
GIC ITS Identifiers for an ITS Group node.
|
|
|
|
|
|
|
|
ID: EArmObjGicItsIdentifierArray
|
|
|
|
*/
|
|
|
|
typedef struct CmArmGicItsIdentifier {
|
|
|
|
/// The ITS Identifier
|
|
|
|
UINT32 ItsId;
|
|
|
|
} CM_ARM_ITS_IDENTIFIER;
|
|
|
|
|
2018-12-15 12:58:07 +01:00
|
|
|
/** A structure that describes the
|
|
|
|
ID Mappings for the Platform.
|
2019-02-21 16:38:26 +01:00
|
|
|
|
|
|
|
ID: EArmObjIdMappingArray
|
2018-12-15 12:58:07 +01:00
|
|
|
*/
|
|
|
|
typedef struct CmArmIdMapping {
|
|
|
|
/// Input base
|
|
|
|
UINT32 InputBase;
|
|
|
|
/// Number of input IDs
|
|
|
|
UINT32 NumIds;
|
|
|
|
/// Output Base
|
|
|
|
UINT32 OutputBase;
|
|
|
|
/// Reference token for the output node
|
|
|
|
CM_OBJECT_TOKEN OutputReferenceToken;
|
|
|
|
/// Flags
|
|
|
|
UINT32 Flags;
|
|
|
|
} CM_ARM_ID_MAPPING;
|
|
|
|
|
2020-08-06 15:59:32 +02:00
|
|
|
/** A structure that describes the SMMU interrupts for the Platform.
|
|
|
|
|
|
|
|
Interrupt Interrupt number.
|
|
|
|
Flags Interrupt flags as defined for SMMU node.
|
|
|
|
|
|
|
|
ID: EArmObjSmmuInterruptArray
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
typedef CM_ARCH_COMMON_GENERIC_INTERRUPT CM_ARM_SMMU_INTERRUPT;
|
2020-08-06 15:59:32 +02:00
|
|
|
|
|
|
|
/** A structure that describes the AML Extended Interrupts.
|
|
|
|
|
|
|
|
Interrupt Interrupt number.
|
|
|
|
Flags Interrupt flags as defined by the Interrupt
|
|
|
|
Vector Flags (Byte 3) of the Extended Interrupt
|
|
|
|
resource descriptor.
|
|
|
|
See EFI_ACPI_EXTENDED_INTERRUPT_FLAG_xxx in Acpi10.h
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
typedef CM_ARCH_COMMON_GENERIC_INTERRUPT CM_ARM_EXTENDED_INTERRUPT;
|
2018-12-15 12:58:07 +01:00
|
|
|
|
2019-02-22 18:42:27 +01:00
|
|
|
/** A structure that describes the Cache Type Structure (Type 1) in PPTT
|
|
|
|
|
|
|
|
ID: EArmObjCacheInfo
|
|
|
|
*/
|
|
|
|
typedef struct CmArmCacheInfo {
|
|
|
|
/// A unique token used to identify this object
|
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Reference token for the next level of cache that is private to the same
|
2024-03-11 14:36:32 +01:00
|
|
|
/// CM_ARCH_COMMON_PROC_HIERARCHY_INFO instance. A value of CM_NULL_TOKEN
|
|
|
|
/// means this entry represents the last cache level appropriate to the
|
|
|
|
/// processor hierarchy node structures using this entry.
|
2019-02-22 18:42:27 +01:00
|
|
|
CM_OBJECT_TOKEN NextLevelOfCacheToken;
|
|
|
|
/// Size of the cache in bytes
|
|
|
|
UINT32 Size;
|
|
|
|
/// Number of sets in the cache
|
|
|
|
UINT32 NumberOfSets;
|
|
|
|
/// Integer number of ways. The maximum associativity supported by
|
|
|
|
/// ACPI Cache type structure is limited to MAX_UINT8. However,
|
|
|
|
/// the maximum number of ways supported by the architecture is
|
|
|
|
/// PPTT_ARM_CCIDX_CACHE_ASSOCIATIVITY_MAX. Therfore this field
|
|
|
|
/// is 32-bit wide.
|
|
|
|
UINT32 Associativity;
|
2021-12-08 17:06:30 +01:00
|
|
|
/// Cache attributes (ACPI 6.4 - January 2021, PPTT, Table 5.140)
|
2019-02-22 18:42:27 +01:00
|
|
|
UINT8 Attributes;
|
|
|
|
/// Line size in bytes
|
|
|
|
UINT16 LineSize;
|
2021-12-08 17:06:30 +01:00
|
|
|
/// Unique ID for the cache
|
|
|
|
UINT32 CacheId;
|
2019-02-22 18:42:27 +01:00
|
|
|
} CM_ARM_CACHE_INFO;
|
|
|
|
|
2020-08-06 15:59:32 +02:00
|
|
|
/** A structure that describes the CMN-600 hardware.
|
|
|
|
|
|
|
|
ID: EArmObjCmn600Info
|
|
|
|
*/
|
|
|
|
typedef struct CmArmCmn600Info {
|
|
|
|
/// The PERIPHBASE address.
|
|
|
|
/// Corresponds to the Configuration Node Region (CFGR) base address.
|
|
|
|
UINT64 PeriphBaseAddress;
|
|
|
|
|
|
|
|
/// The PERIPHBASE address length.
|
|
|
|
/// Corresponds to the CFGR base address length.
|
|
|
|
UINT64 PeriphBaseAddressLength;
|
|
|
|
|
|
|
|
/// The ROOTNODEBASE address.
|
|
|
|
/// Corresponds to the Root node (ROOT) base address.
|
|
|
|
UINT64 RootNodeBaseAddress;
|
|
|
|
|
|
|
|
/// The Debug and Trace Logic Controller (DTC) count.
|
|
|
|
/// CMN-600 can have maximum 4 DTCs.
|
|
|
|
UINT8 DtcCount;
|
|
|
|
|
|
|
|
/// DTC Interrupt list.
|
|
|
|
/// The first interrupt resource descriptor pertains to
|
|
|
|
/// DTC[0], the second to DTC[1] and so on.
|
|
|
|
/// DtcCount determines the number of DTC Interrupts that
|
|
|
|
/// are populated. If DTC count is 2 then DtcInterrupt[2]
|
|
|
|
/// and DtcInterrupt[3] are ignored.
|
|
|
|
/// Note: The size of CM_ARM_CMN_600_INFO structure remains
|
|
|
|
/// constant and does not vary with the DTC count.
|
|
|
|
CM_ARM_EXTENDED_INTERRUPT DtcInterrupt[4];
|
|
|
|
} CM_ARM_CMN_600_INFO;
|
|
|
|
|
2022-07-14 18:50:30 +02:00
|
|
|
/** A structure that describes the
|
|
|
|
RMR node for the Platform.
|
|
|
|
|
|
|
|
ID: EArmObjRmr
|
|
|
|
*/
|
|
|
|
typedef struct CmArmRmrNode {
|
|
|
|
/// An unique token used to identify this object
|
|
|
|
CM_OBJECT_TOKEN Token;
|
|
|
|
/// Number of ID mappings
|
|
|
|
UINT32 IdMappingCount;
|
|
|
|
/// Reference token for the ID mapping array
|
|
|
|
CM_OBJECT_TOKEN IdMappingToken;
|
|
|
|
|
|
|
|
/// Unique identifier for this node.
|
|
|
|
UINT32 Identifier;
|
|
|
|
|
|
|
|
/// Reserved Memory Range flags.
|
|
|
|
UINT32 Flags;
|
|
|
|
|
|
|
|
/// Memory range descriptor count.
|
|
|
|
UINT32 MemRangeDescCount;
|
|
|
|
/// Reference token for the Memory Range descriptor array
|
|
|
|
CM_OBJECT_TOKEN MemRangeDescToken;
|
|
|
|
} CM_ARM_RMR_NODE;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
Memory Range descriptor.
|
|
|
|
|
|
|
|
ID: EArmObjMemoryRangeDescriptor
|
|
|
|
*/
|
|
|
|
typedef struct CmArmRmrDescriptor {
|
|
|
|
/// Base address of Reserved Memory Range,
|
|
|
|
/// aligned to a page size of 64K.
|
|
|
|
UINT64 BaseAddress;
|
|
|
|
|
|
|
|
/// Length of the Reserved Memory range.
|
|
|
|
/// Must be a multiple of the page size of 64K.
|
|
|
|
UINT64 Length;
|
|
|
|
} CM_ARM_MEMORY_RANGE_DESCRIPTOR;
|
|
|
|
|
2022-09-22 22:36:44 +02:00
|
|
|
/** A structure that describes the Cpc information.
|
|
|
|
|
|
|
|
Continuous Performance Control is described in DSDT/SSDT and associated
|
|
|
|
to cpus/clusters in the cpu topology.
|
|
|
|
|
|
|
|
Unsupported Optional registers should be encoded with NULL resource
|
|
|
|
Register {(SystemMemory, 0, 0, 0, 0)}
|
|
|
|
|
|
|
|
For values that support Integer or Buffer, integer will be used
|
|
|
|
if buffer is NULL resource.
|
|
|
|
If resource is not NULL then Integer must be 0
|
|
|
|
|
|
|
|
Cf. ACPI 6.4, s8.4.7.1 _CPC (Continuous Performance Control)
|
|
|
|
|
|
|
|
ID: EArmObjCpcInfo
|
|
|
|
*/
|
|
|
|
typedef AML_CPC_INFO CM_ARM_CPC_INFO;
|
|
|
|
|
2022-10-10 11:20:54 +02:00
|
|
|
/** A structure that describes a
|
|
|
|
PCC Mailbox Register.
|
|
|
|
*/
|
|
|
|
typedef struct PccMailboxRegisterInfo {
|
|
|
|
/// GAS describing the Register.
|
|
|
|
EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE Register;
|
|
|
|
|
|
|
|
/** Mask of bits to preserve when writing.
|
|
|
|
|
|
|
|
This mask is also used for registers. The Register is only read
|
|
|
|
and there is no write mask required. E.g.:
|
|
|
|
- Error Status mask (Cf. PCC Subspace types 3/4/5).
|
|
|
|
- Command Complete Check mask (Cf. PCC Subspace types 3/4/5).
|
|
|
|
*/
|
|
|
|
UINT64 PreserveMask;
|
|
|
|
|
|
|
|
/// Mask of bits to set when writing.
|
|
|
|
UINT64 WriteMask;
|
|
|
|
} PCC_MAILBOX_REGISTER_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes the
|
|
|
|
PCC Subspace CHannel Timings.
|
|
|
|
*/
|
|
|
|
typedef struct PccSubspaceChannelTimingInfo {
|
|
|
|
/// Expected latency to process a command, in microseconds.
|
|
|
|
UINT32 NominalLatency;
|
|
|
|
|
|
|
|
/** Maximum number of periodic requests that the subspace channel can
|
|
|
|
support, reported in commands per minute. 0 indicates no limitation.
|
|
|
|
|
|
|
|
This field is ignored for the PCC Subspace type 5 (HW Registers based).
|
|
|
|
*/
|
|
|
|
UINT32 MaxPeriodicAccessRate;
|
|
|
|
|
|
|
|
/** Minimum amount of time that OSPM must wait after the completion
|
|
|
|
of a command before issuing the next command, in microseconds.
|
|
|
|
*/
|
|
|
|
UINT16 MinRequestTurnaroundTime;
|
|
|
|
} PCC_SUBSPACE_CHANNEL_TIMING_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
Generic PCC Subspace (Type 0).
|
|
|
|
*/
|
|
|
|
typedef struct CmArmPccSubspaceGenericInfo {
|
|
|
|
/** Subspace Id.
|
|
|
|
|
|
|
|
Cf. ACPI 6.4, s14.7 Referencing the PCC address space
|
|
|
|
Cf. s14.1.2 Platform Communications Channel Subspace Structures
|
|
|
|
The subspace ID of a PCC subspace is its index in the array of
|
|
|
|
subspace structures, starting with subspace 0.
|
|
|
|
|
|
|
|
At most 256 subspaces are supported.
|
|
|
|
*/
|
|
|
|
UINT8 SubspaceId;
|
|
|
|
|
|
|
|
/// Table type (or subspace).
|
|
|
|
UINT8 Type;
|
|
|
|
|
|
|
|
/// Base address of the shared memory range.
|
|
|
|
/// This field is ignored for the PCC Subspace type 5 (HW Registers based).
|
|
|
|
UINT64 BaseAddress;
|
|
|
|
|
|
|
|
/// Address length.
|
|
|
|
UINT64 AddressLength;
|
|
|
|
|
|
|
|
/// Doorbell Register.
|
|
|
|
PCC_MAILBOX_REGISTER_INFO DoorbellReg;
|
|
|
|
|
|
|
|
/// Mailbox Timings.
|
|
|
|
PCC_SUBSPACE_CHANNEL_TIMING_INFO ChannelTiming;
|
|
|
|
} PCC_SUBSPACE_GENERIC_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 0 (Generic).
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType0Info
|
|
|
|
*/
|
|
|
|
typedef PCC_SUBSPACE_GENERIC_INFO CM_ARM_PCC_SUBSPACE_TYPE0_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 1 (HW-Reduced).
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType1Info
|
|
|
|
*/
|
|
|
|
typedef struct CmArmPccSubspaceType1Info {
|
|
|
|
/** Generic Pcc information.
|
|
|
|
|
|
|
|
The Subspace of Type0 contains information that can be re-used
|
|
|
|
in other Subspace types.
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_SUBSPACE_GENERIC_INFO GenericPccInfo;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt.
|
2024-03-08 13:14:54 +01:00
|
|
|
CM_ARCH_COMMON_GENERIC_INTERRUPT PlatIrq;
|
2022-10-10 11:20:54 +02:00
|
|
|
} CM_ARM_PCC_SUBSPACE_TYPE1_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 2 (HW-Reduced).
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType2Info
|
|
|
|
*/
|
|
|
|
typedef struct CmArmPccSubspaceType2Info {
|
|
|
|
/** Generic Pcc information.
|
|
|
|
|
|
|
|
The Subspace of Type0 contains information that can be re-used
|
|
|
|
in other Subspace types.
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_SUBSPACE_GENERIC_INFO GenericPccInfo;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt.
|
2024-03-08 13:14:54 +01:00
|
|
|
CM_ARCH_COMMON_GENERIC_INTERRUPT PlatIrq;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt Register.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO PlatIrqAckReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
} CM_ARM_PCC_SUBSPACE_TYPE2_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 3 (Extended)
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType3Info
|
|
|
|
*/
|
|
|
|
typedef struct CmArmPccSubspaceType3Info {
|
|
|
|
/** Generic Pcc information.
|
|
|
|
|
|
|
|
The Subspace of Type0 contains information that can be re-used
|
|
|
|
in other Subspace types.
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_SUBSPACE_GENERIC_INFO GenericPccInfo;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt.
|
2024-03-08 13:14:54 +01:00
|
|
|
CM_ARCH_COMMON_GENERIC_INTERRUPT PlatIrq;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt Register.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO PlatIrqAckReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Command Complete Check Register.
|
|
|
|
/// The WriteMask field is not used.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO CmdCompleteCheckReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Command Complete Update Register.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO CmdCompleteUpdateReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Error Status Register.
|
|
|
|
/// The WriteMask field is not used.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO ErrorStatusReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
} CM_ARM_PCC_SUBSPACE_TYPE3_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 4 (Extended)
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType4Info
|
|
|
|
*/
|
|
|
|
typedef CM_ARM_PCC_SUBSPACE_TYPE3_INFO CM_ARM_PCC_SUBSPACE_TYPE4_INFO;
|
|
|
|
|
|
|
|
/** A structure that describes a
|
|
|
|
PCC Subspace of type 5 (HW-Registers).
|
|
|
|
|
|
|
|
ID: EArmObjPccSubspaceType5Info
|
|
|
|
*/
|
|
|
|
typedef struct CmArmPccSubspaceType5Info {
|
|
|
|
/** Generic Pcc information.
|
|
|
|
|
|
|
|
The Subspace of Type0 contains information that can be re-used
|
|
|
|
in other Subspace types.
|
|
|
|
|
|
|
|
MaximumPeriodicAccessRate doesn't need to be populated for
|
|
|
|
this structure.
|
|
|
|
*/
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_SUBSPACE_GENERIC_INFO GenericPccInfo;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Version.
|
2024-03-08 13:14:54 +01:00
|
|
|
UINT16 Version;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Platform Interrupt.
|
2024-03-08 13:14:54 +01:00
|
|
|
CM_ARCH_COMMON_GENERIC_INTERRUPT PlatIrq;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Command Complete Check Register.
|
|
|
|
/// The WriteMask field is not used.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO CmdCompleteCheckReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
|
|
|
|
/// Error Status Register.
|
|
|
|
/// The WriteMask field is not used.
|
2024-03-08 13:14:54 +01:00
|
|
|
PCC_MAILBOX_REGISTER_INFO ErrorStatusReg;
|
2022-10-10 11:20:54 +02:00
|
|
|
} CM_ARM_PCC_SUBSPACE_TYPE5_INFO;
|
|
|
|
|
2023-09-22 16:35:11 +02:00
|
|
|
/** An enum describing the Arm Embedded Trace device type.
|
|
|
|
*/
|
|
|
|
typedef enum ArmEtType {
|
|
|
|
ArmEtTypeEtm, ///< Embedded Trace module.
|
|
|
|
ArmEtTypeEte, ///< Embedded Trace Extension.
|
|
|
|
ArmEtTypeMax
|
|
|
|
} ARM_ET_TYPE;
|
|
|
|
|
|
|
|
/** A structure that describes the Embedded Trace Extension/Module.
|
|
|
|
|
|
|
|
ID: EArmObjEtInfo
|
|
|
|
*/
|
|
|
|
typedef struct CmArmEtInfo {
|
|
|
|
ARM_ET_TYPE EtType;
|
|
|
|
} CM_ARM_ET_INFO;
|
|
|
|
|
2024-01-25 16:18:44 +01:00
|
|
|
/** A structure that describes a
|
|
|
|
P-State Dependency (PSD) Info.
|
|
|
|
|
|
|
|
Cf. ACPI 6.5, s8.4.5.5 _PSD (P-State Dependency).
|
|
|
|
|
|
|
|
ID: EArmObjPsdInfo
|
|
|
|
*/
|
|
|
|
typedef AML_PSD_INFO CM_ARM_PSD_INFO;
|
|
|
|
|
2018-12-15 12:58:07 +01:00
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
#endif // ARM_NAMESPACE_OBJECTS_H_
|