TianoCore EDK2 master
Loading...
Searching...
No Matches
TokenTable Struct Reference

#include <DynamicTablesPkg/Library/Acpi/Common/AcpiSsdtCpuTopologyLib/SsdtCpuTopologyGenerator.h>

Data Fields

CM_OBJECT_TOKENTable
 
UINT32 LastIndex
 

Detailed Description

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.

Field Documentation

◆ LastIndex

UINT32 TokenTable::LastIndex

Last used index of the TokenTable. LastIndex is bound by ProcNodeCount.

Definition at line 126 of file SsdtCpuTopologyGenerator.h.

◆ Table

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.


The documentation for this struct was generated from the following file: