audk/DynamicTablesPkg/Library/Common/AmlLib
Pierre Gondois a5e36ad9bc DynamicTablesPkg: AML code generation to add an _LPI state
Add AmlAddLpiState() to generates AML code to add an _LPI state
to an _LPI object created using AmlCreateLpiNode().

AmlAddLpiState increments the count of LPI states in the LPI
node by one, and adds the following package:
  Package() {
    MinResidency,
    WorstCaseWakeLatency,
    Flags,
    ArchFlags,
    ResCntFreq,
    EnableParentState,
    (GenericRegisterDescriptor != NULL) ?           // Entry method. If a
      ResourceTemplate(GenericRegisterDescriptor) : // Register is given,
      Integer,                                      // use it. Use the
                                                    // Integer otherwise
    ResourceTemplate() {                            // NULL Residency
      Register (SystemMemory, 0, 0, 0, 0)           // Counter
    },
    ResourceTemplate() {                            // NULL Usage Counter
      Register (SystemMemory, 0, 0, 0, 0)
    },
    ""                                              // NULL State Name
  },

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
2021-10-08 15:39:42 +00:00
..
AmlDbgPrint DynamicTablesPkg: Use %a formatter in AmlDbgPrint 2021-10-01 10:57:43 +00:00
AmlEncoding DynamicTablesPkg: Helper function to compute package length 2021-10-08 15:39:42 +00:00
Api DynamicTablesPkg: Deprecate Crs specific methods in AmlLib 2021-10-01 10:57:43 +00:00
CodeGen DynamicTablesPkg: AML code generation to add an _LPI state 2021-10-08 15:39:42 +00:00
NameSpace DynamicTablesPkg/AmlLib: Remove unused variables 2021-02-15 23:31:03 +00:00
Parser DynamicTablesPkg: AmlLib\AmlDbgPrint fix ECC error 2020-10-21 13:33:03 +00:00
ResourceData DynamicTablesPkg: Add AmlRdSetEndTagChecksum() 2021-10-08 15:39:42 +00:00
Serialize DynamicTablesPkg: AML serialise interface 2020-08-13 18:00:06 +00:00
Stream DynamicTablesPkg: AmlLib fix ECC errors 2020-10-21 13:33:03 +00:00
String DynamicTablesPkg: AML and ASL string helper 2020-08-13 18:00:06 +00:00
Tree DynamicTablesPkg: Update error handling for node creation 2021-10-08 15:39:42 +00:00
Utils DynamicTablesPkg: Make AmlNodeGetIntegerValue public 2021-10-08 15:39:42 +00:00
AmlCoreInterface.h DynamicTablesPkg: AML Core interface 2020-08-13 18:00:06 +00:00
AmlDefines.h DynamicTablesPkg: Use AML_NAME_SEG_SIZE define 2021-06-02 09:57:17 +00:00
AmlInclude.h
AmlLib.inf DynamicTablesPkg: Extract AcpiHelperLib from TableHelperLib 2021-10-01 10:57:43 +00:00
AmlNodeDefines.h DynamicTablesPkg: AML node definitions 2020-08-13 18:00:06 +00:00