audk/DynamicTablesPkg/Include/Library
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
..
AmlLib DynamicTablesPkg: AML code generation to add an _LPI state 2021-10-08 15:39:42 +00:00
AcpiHelperLib.h DynamicTablesPkg: Add AmlGetEisaIdFromString() to AcpiHelperLib 2021-10-01 10:57:43 +00:00
SsdtSerialPortFixupLib.h DynamicTablesPkg: SSDT Serial Port Fixup library 2020-08-13 18:00:06 +00:00
TableHelperLib.h DynamicTablesPkg: Add AddSsdtAcpiHeader() 2021-10-08 15:39:42 +00:00