mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Some of the ACPI table generators are generic enough to be re-used by other architectures. Move the following generators to a 'Common' folder: - AcpiDbg2Lib - AcpiFadtLib - AcpiMcfgLib - AcpiPcctLib - AcpiPpttLib - AcpiRawLib - AcpiSpcrLib - AcpiSratLib - SsdtSerialPortLib - SsdtCpuTopologyLib - SsdtPcieLib and update DynamicTables.dsc.inc accordingly. Suggested-by: Sunil V L <sunilvl@ventanamicro.com> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/** @file
|
|
PCCT Table Generator
|
|
|
|
Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
@par Reference(s):
|
|
- ACPI 6.4 Specification - January 2021
|
|
s14 PLATFORM COMMUNICATIONS CHANNEL (PCC)
|
|
|
|
**/
|
|
|
|
#ifndef PCCT_GENERATOR_H_
|
|
#define PCCT_GENERATOR_H_
|
|
|
|
#pragma pack(1)
|
|
|
|
/** Structure used to map a Pcc Subspace to an index.
|
|
*/
|
|
typedef struct MappingTable {
|
|
/// Mapping table for Subspace Ids.
|
|
/// Subspace ID/Index <-> CM_ARCH_COMMON_PCC_SUBSPACE_TYPE[X]_INFO pointer
|
|
VOID **Table;
|
|
|
|
/// Number of entries in the Table.
|
|
UINT32 MaxIndex;
|
|
} MAPPING_TABLE;
|
|
|
|
/** A structure holding the Pcct generator and additional private data.
|
|
*/
|
|
typedef struct AcpiPcctGenerator {
|
|
/// ACPI Table generator header
|
|
ACPI_TABLE_GENERATOR Header;
|
|
|
|
// Private fields are defined from here.
|
|
|
|
/// Table to map:
|
|
/// Subspace ID/Index <-> CM_ARCH_COMMON_PCC_SUBSPACE_TYPE[X]_INFO pointer
|
|
MAPPING_TABLE MappingTable;
|
|
} ACPI_PCCT_GENERATOR;
|
|
|
|
#pragma pack()
|
|
|
|
#endif // PCCT_GENERATOR_H_
|