TianoCore EDK2 master
|
#include <DynamicTablesPkg/Library/Acpi/Common/AcpiSsdtCpuTopologyLib/SsdtCpuTopologyGenerator.h>
Data Fields | |
CM_OBJECT_TOKEN * | Table |
UINT32 | LastIndex |
A structure used to handle the Lpi structures referencing.
A CM_ARCH_COMMON_PROC_HIERARCHY_INFO structure references a CM_ARCH_COMMON_OBJ_REF. This CM_ARCH_COMMON_OBJ_REF references CM_ARCH_COMMON_LPI_INFO structures.
Example: (Cpu0) (Cpu1) CM_ARCH_COMMON_PROC_HIERARCHY_INFO CM_ARCH_COMMON_PROC_HIERARCHY_INFO | | +-------------------------------------— | v (List of references to Lpi states) CM_ARCH_COMMON_OBJ_REF | +-------------------------------------— | | v v (A first Lpi state) (A second Lpi state) CM_ARCH_COMMON_LPI_INFO[0] CM_ARCH_COMMON_LPI_INFO[1]
Here, Cpu0 and Cpu1 have the same Lpi states. Both CM_ARCH_COMMON_PROC_HIERARCHY_INFO structures reference the same CM_ARCH_COMMON_OBJ_REF. An entry is created in the TokenTable such as: 0 <-> CM_ARCH_COMMON_OBJ_REF
This will lead to the creation of this pseudo-ASL code where Cpu0 and Cpu1 return the same object at _SB.L000: Scope (_SB) { Device (C000) { [...] Method (_LPI) { Return (_SB.L000) } } // C000
Device (C001) { [...] Method (_LPI) { Return (_SB.L000) } } // C001
Lpi states Name (L000, Package (0x05) { [...] } }
Definition at line 119 of file SsdtCpuTopologyGenerator.h.
UINT32 TokenTable::LastIndex |
Last used index of the TokenTable. LastIndex is bound by ProcNodeCount.
Definition at line 126 of file SsdtCpuTopologyGenerator.h.
CM_OBJECT_TOKEN* TokenTable::Table |
TokenTable, a table allowing to map: Index <-> CM_OBJECT_TOKEN (to CM_ARCH_COMMON_LPI_INFO structures).
Definition at line 122 of file SsdtCpuTopologyGenerator.h.