TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlLib.h
Go to the documentation of this file.
1
10#ifndef AML_LIB_H_
11#define AML_LIB_H_
12
40#include <AcpiObjects.h>
42
43#ifndef AML_HANDLE
44
47typedef void *AML_NODE_HANDLE;
48
52
56
60
61#endif // AML_HANDLE
62
76typedef enum {
77 AmlMemoryNonCacheable = 0,
78 AmlMemoryCacheable = 1,
79 AmlMemoryCacheableWriteCombine = 2,
80 AmlMemoryCacheablePrefetch = 3,
81 AmlMemoryCacheablityMax = 4
83
96typedef enum {
97 AmlAddressRangeMemory = 0,
98 AmlAddressRangeReserved = 1,
99 AmlAddressRangeACPI = 2,
100 AmlAddressRangeNVS = 3,
101 AmlAddressRangeMax = 4
103
116typedef enum {
117 AmlMethodParamTypeInteger = 0,
118 AmlMethodParamTypeString = 1,
119 AmlMethodParamTypeArg = 2,
120 AmlMethodParamTypeLocal = 3
122
126typedef union {
127 UINT8 Arg;
128 UINT8 Local;
129 UINT64 Integer;
130 VOID *Buffer;
132
148typedef struct {
151 UINTN DataSize;
153
172EFIAPI
174 IN CONST EFI_ACPI_DESCRIPTION_HEADER *DefinitionBlock,
176 );
177
195EFIAPI
197 IN AML_ROOT_NODE_HANDLE RootNode,
199 );
200
217EFIAPI
219 IN AML_NODE_HANDLE Node,
220 OUT AML_NODE_HANDLE *ClonedNode
221 );
222
236EFIAPI
239 );
240
257EFIAPI
260 );
261
289EFIAPI
291 IN AML_NODE_HANDLE ParentNode,
292 IN AML_NODE_HANDLE NewNode
293 );
294
339EFIAPI
341 IN AML_NODE_HANDLE ReferenceNode,
342 IN CONST CHAR8 *AslPath,
343 OUT AML_NODE_HANDLE *OutNode
344 );
345
374EFIAPI
376 IN AML_OBJECT_NODE_HANDLE DeviceOpNode,
377 IN CONST CHAR8 *NewNameString
378 );
379
398EFIAPI
400 IN AML_OBJECT_NODE_HANDLE NameOpNode,
401 IN UINT64 NewInt
402 );
403
424EFIAPI
426 IN AML_OBJECT_NODE_HANDLE NameOpNode,
427 IN CONST CHAR8 *NewName
428 );
429
458EFIAPI
460 IN AML_OBJECT_NODE_HANDLE NameOpNode,
461 OUT AML_DATA_NODE_HANDLE *OutRdNode
462 );
463
494EFIAPI
496 IN AML_DATA_NODE_HANDLE CurrRdNode,
497 OUT AML_DATA_NODE_HANDLE *OutRdNode
498 );
499
520EFIAPI
522 IN AML_DATA_NODE_HANDLE InterruptRdNode,
523 IN UINT32 Irq
524 );
525
540EFIAPI
542 IN AML_DATA_NODE_HANDLE QWordRdNode,
543 IN UINT64 BaseAddress,
544 IN UINT64 BaseAddressLength
545 );
546
594EFIAPI
596 IN BOOLEAN IsResourceConsumer,
597 IN BOOLEAN IsMinFixed,
598 IN BOOLEAN IsMaxFixed,
599 IN BOOLEAN IsPosDecode,
600 IN UINT8 IsaRanges,
601 IN UINT32 AddressGranularity,
602 IN UINT32 AddressMinimum,
603 IN UINT32 AddressMaximum,
604 IN UINT32 AddressTranslation,
605 IN UINT32 RangeLength,
606 IN UINT8 ResourceSourceIndex,
607 IN CONST CHAR8 *ResourceSource,
608 IN BOOLEAN IsDenseTranslation,
609 IN BOOLEAN IsTypeStatic,
610 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
611 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
612 );
613
667EFIAPI
669 IN BOOLEAN IsResourceConsumer,
670 IN BOOLEAN IsPosDecode,
671 IN BOOLEAN IsMinFixed,
672 IN BOOLEAN IsMaxFixed,
674 IN BOOLEAN IsReadWrite,
675 IN UINT32 AddressGranularity,
676 IN UINT32 AddressMinimum,
677 IN UINT32 AddressMaximum,
678 IN UINT32 AddressTranslation,
679 IN UINT32 RangeLength,
680 IN UINT8 ResourceSourceIndex,
681 IN CONST CHAR8 *ResourceSource,
682 IN AML_MEMORY_ATTRIBUTES_MTP MemoryRangeType,
683 IN BOOLEAN IsTypeStatic,
684 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
685 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
686 );
687
712EFIAPI
714 BOOLEAN IsReadWrite,
715 UINT32 Address,
716 UINT32 RangeLength,
717 AML_OBJECT_NODE_HANDLE NameOpNode,
718 AML_DATA_NODE_HANDLE *NewMemNode
719 );
720
761EFIAPI
763 IN BOOLEAN IsResourceConsumer,
764 IN BOOLEAN IsMinFixed,
765 IN BOOLEAN IsMaxFixed,
766 IN BOOLEAN IsPosDecode,
767 IN UINT16 AddressGranularity,
768 IN UINT16 AddressMinimum,
769 IN UINT16 AddressMaximum,
770 IN UINT16 AddressTranslation,
771 IN UINT16 RangeLength,
772 IN UINT8 ResourceSourceIndex,
773 IN CONST CHAR8 *ResourceSource,
774 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
775 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
776 );
777
822EFIAPI
824 IN BOOLEAN IsResourceConsumer,
825 IN BOOLEAN IsMinFixed,
826 IN BOOLEAN IsMaxFixed,
827 IN BOOLEAN IsPosDecode,
828 IN UINT8 IsaRanges,
829 IN UINT16 AddressGranularity,
830 IN UINT16 AddressMinimum,
831 IN UINT16 AddressMaximum,
832 IN UINT16 AddressTranslation,
833 IN UINT16 RangeLength,
834 IN UINT8 ResourceSourceIndex,
835 IN CONST CHAR8 *ResourceSource,
836 IN BOOLEAN IsDenseTranslation,
837 IN BOOLEAN IsTypeStatic,
838 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
839 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
840 );
841
889EFIAPI
891 IN BOOLEAN IsResourceConsumer,
892 IN BOOLEAN IsMinFixed,
893 IN BOOLEAN IsMaxFixed,
894 IN BOOLEAN IsPosDecode,
895 IN UINT8 IsaRanges,
896 IN UINT64 AddressGranularity,
897 IN UINT64 AddressMinimum,
898 IN UINT64 AddressMaximum,
899 IN UINT64 AddressTranslation,
900 IN UINT64 RangeLength,
901 IN UINT8 ResourceSourceIndex,
902 IN CONST CHAR8 *ResourceSource,
903 IN BOOLEAN IsDenseTranslation,
904 IN BOOLEAN IsTypeStatic,
905 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
906 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
907 );
908
962EFIAPI
964 IN BOOLEAN IsResourceConsumer,
965 IN BOOLEAN IsPosDecode,
966 IN BOOLEAN IsMinFixed,
967 IN BOOLEAN IsMaxFixed,
969 IN BOOLEAN IsReadWrite,
970 IN UINT64 AddressGranularity,
971 IN UINT64 AddressMinimum,
972 IN UINT64 AddressMaximum,
973 IN UINT64 AddressTranslation,
974 IN UINT64 RangeLength,
975 IN UINT8 ResourceSourceIndex,
976 IN CONST CHAR8 *ResourceSource,
977 IN AML_MEMORY_ATTRIBUTES_MTP MemoryRangeType,
978 IN BOOLEAN IsTypeStatic,
979 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
980 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
981 );
982
1019EFIAPI
1021 IN BOOLEAN ResourceConsumer,
1022 IN BOOLEAN EdgeTriggered,
1023 IN BOOLEAN ActiveLow,
1024 IN BOOLEAN Shared,
1025 IN UINT32 *IrqList,
1026 IN UINT8 IrqCount,
1027 IN AML_OBJECT_NODE_HANDLE NameOpNode OPTIONAL,
1028 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
1029 );
1030
1062EFIAPI
1064 IN BOOLEAN IsDecoder16,
1065 IN UINT16 AddressMinimum,
1066 IN UINT16 AddressMaximum,
1067 IN UINT8 Alignment,
1068 IN UINT8 RangeLength,
1069 IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL
1070 OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL
1071 );
1072
1100EFIAPI
1102 IN CONST CHAR8 *TableSignature,
1103 IN CONST CHAR8 *OemId,
1104 IN CONST CHAR8 *OemTableId,
1105 IN UINT32 OemRevision,
1106 OUT AML_ROOT_NODE_HANDLE *NewRootNode
1107 );
1108
1132EFIAPI
1134 IN CONST CHAR8 *NameString,
1135 IN CONST CHAR8 *String,
1136 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1137 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1138 );
1139
1162EFIAPI
1164 IN CONST CHAR8 *NameString,
1165 IN UINT64 Integer,
1166 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1167 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1168 );
1169
1191EFIAPI
1193 IN CONST CHAR8 *NameString,
1194 IN AML_NODE_HANDLE ParentNode, OPTIONAL
1195 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1196 );
1197
1219EFIAPI
1221 IN CONST CHAR8 *NameString,
1222 IN AML_NODE_HANDLE ParentNode, OPTIONAL
1223 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1224 );
1225
1249EFIAPI
1251 IN CONST CHAR8 *NameString,
1252 IN CHAR16 *String,
1253 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1254 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1255 );
1256
1300EFIAPI
1302 IN UINT32 Address,
1303 IN UINT8 Pin,
1304 IN CONST CHAR8 *LinkName,
1305 IN UINT32 SourceIndex,
1306 IN AML_OBJECT_NODE_HANDLE PrtNameNode
1307 );
1308
1330EFIAPI
1332 IN CONST CHAR8 *NameString,
1333 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1334 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1335 );
1336
1358EFIAPI
1360 IN CONST CHAR8 *NameString,
1361 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1362 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1363 );
1364
1386EFIAPI
1388 IN CONST CHAR8 *NameString,
1389 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1390 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1391 );
1392
1435EFIAPI
1437 IN CONST CHAR8 *MethodNameString,
1438 IN CONST CHAR8 *ReturnedNameString OPTIONAL,
1439 IN UINT8 NumArgs,
1440 IN BOOLEAN IsSerialized,
1441 IN UINT8 SyncLevel,
1442 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1443 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1444 );
1445
1482EFIAPI
1484 IN CONST CHAR8 *MethodNameString,
1485 IN UINT64 ReturnedInteger,
1486 IN UINT8 NumArgs,
1487 IN BOOLEAN IsSerialized,
1488 IN UINT8 SyncLevel,
1489 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1490 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1491 );
1492
1535EFIAPI
1537 IN CONST CHAR8 *MethodNameString,
1538 IN CONST CHAR8 *ReturnedNameString OPTIONAL,
1539 IN UINT8 NumArgs,
1540 IN BOOLEAN IsSerialized,
1541 IN UINT8 SyncLevel,
1542 IN UINT64 IntegerArgument,
1543 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1544 OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL
1545 );
1546
1582EFIAPI
1584 IN CONST CHAR8 *LpiNameString,
1585 IN UINT16 Revision,
1586 IN UINT64 LevelId,
1587 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1588 OUT AML_OBJECT_NODE_HANDLE *NewLpiNode OPTIONAL
1589 );
1590
1646EFIAPI
1648 IN UINT32 MinResidency,
1649 IN UINT32 WorstCaseWakeLatency,
1650 IN UINT32 Flags,
1651 IN UINT32 ArchFlags,
1652 IN UINT32 ResCntFreq,
1653 IN UINT32 EnableParentState,
1654 IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *GenericRegisterDescriptor OPTIONAL,
1655 IN UINT64 Integer OPTIONAL,
1656 IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *ResidencyCounterRegister OPTIONAL,
1657 IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *UsageCounterRegister OPTIONAL,
1658 IN CONST CHAR8 *StateName OPTIONAL,
1660 );
1661
1685EFIAPI
1687 IN CONST EFI_GUID *Uuid,
1688 IN AML_OBJECT_NODE_HANDLE DsdNode,
1689 OUT AML_OBJECT_NODE_HANDLE *PackageNode
1690 );
1691
1711EFIAPI
1713 IN CONST CHAR8 *Name,
1714 IN UINT64 Value,
1715 IN AML_OBJECT_NODE_HANDLE PackageNode
1716 );
1717
1764EFIAPI
1766 IN AML_CPC_INFO *CpcInfo,
1767 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1768 OUT AML_OBJECT_NODE_HANDLE *NewCpcNode OPTIONAL
1769 );
1770
1782EFIAPI
1784 IN CONST CHAR8 *NameString,
1785 IN AML_OBJECT_NODE_HANDLE NamedNode
1786 );
1787
1821EFIAPI
1823 IN UINT32 Integer,
1825 );
1826
1881EFIAPI
1883 IN CONST CHAR8 *MethodNameString,
1884 IN UINT8 NumArgs,
1885 IN AML_METHOD_PARAM *Parameters OPTIONAL,
1886 IN AML_NODE_HANDLE ParentNode
1887 );
1888
1915EFIAPI
1917 IN AML_PSD_INFO *PsdInfo,
1918 IN AML_NODE_HANDLE ParentNode OPTIONAL,
1919 OUT AML_OBJECT_NODE_HANDLE *NewPsdNode OPTIONAL
1920 );
1921
1922#endif // AML_LIB_H_
UINT64 UINTN
AML_MEMORY_ATTRIBUTES_MTP
Definition: AmlLib.h:96
EFI_STATUS EFIAPI AmlCodeGenThermalZone(IN CONST CHAR8 *NameString, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
Definition: AmlCodeGen.c:1330
EFI_STATUS EFIAPI AmlCodeGenRdDWordIo(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN BOOLEAN IsPosDecode, IN UINT8 IsaRanges, IN UINT32 AddressGranularity, IN UINT32 AddressMinimum, IN UINT32 AddressMaximum, IN UINT32 AddressTranslation, IN UINT32 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN BOOLEAN IsDenseTranslation, IN BOOLEAN IsTypeStatic, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
void * AML_ROOT_NODE_HANDLE
Definition: AmlLib.h:51
EFI_STATUS EFIAPI AmlCreateCpcNode(IN AML_CPC_INFO *CpcInfo, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewCpcNode OPTIONAL)
Definition: AmlCodeGen.c:3508
EFI_STATUS EFIAPI AmlAddNameIntegerPackage(IN CONST CHAR8 *Name, IN UINT64 Value, IN AML_OBJECT_NODE_HANDLE PackageNode)
Definition: AmlCodeGen.c:3206
EFI_STATUS EFIAPI AmlAddIntegerToNamedPackage(IN UINT32 Integer, IN OUT AML_OBJECT_NODE_HANDLE NameNode)
Definition: AmlCodeGen.c:3908
EFI_STATUS EFIAPI AmlAddLpiState(IN UINT32 MinResidency, IN UINT32 WorstCaseWakeLatency, IN UINT32 Flags, IN UINT32 ArchFlags, IN UINT32 ResCntFreq, IN UINT32 EnableParentState, IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *GenericRegisterDescriptor OPTIONAL, IN UINT64 Integer OPTIONAL, IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *ResidencyCounterRegister OPTIONAL, IN EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE *UsageCounterRegister OPTIONAL, IN CONST CHAR8 *StateName OPTIONAL, IN AML_OBJECT_NODE_HANDLE LpiNode)
Definition: AmlCodeGen.c:2607
EFI_STATUS EFIAPI AmlCreatePsdNode(IN AML_PSD_INFO *PsdInfo, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewPsdNode OPTIONAL)
Definition: AmlCodeGen.c:4210
EFI_STATUS EFIAPI AmlAddPrtEntry(IN UINT32 Address, IN UINT8 Pin, IN CONST CHAR8 *LinkName, IN UINT32 SourceIndex, IN AML_OBJECT_NODE_HANDLE PrtNameNode)
Definition: AmlCodeGen.c:1008
EFI_STATUS EFIAPI AmlCodeGenDevice(IN CONST CHAR8 *NameString, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenNameResourceTemplate(IN CONST CHAR8 *NameString, IN AML_NODE_HANDLE ParentNode, OPTIONAL OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenRdQWordIo(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN BOOLEAN IsPosDecode, IN UINT8 IsaRanges, IN UINT64 AddressGranularity, IN UINT64 AddressMinimum, IN UINT64 AddressMaximum, IN UINT64 AddressTranslation, IN UINT64 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN BOOLEAN IsDenseTranslation, IN BOOLEAN IsTypeStatic, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenScope(IN CONST CHAR8 *NameString, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenNameString(IN CONST CHAR8 *NameString, IN CONST CHAR8 *String, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenRdDWordMemory(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsPosDecode, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN AML_MEMORY_ATTRIBUTES_MEM Cacheable, IN BOOLEAN IsReadWrite, IN UINT32 AddressGranularity, IN UINT32 AddressMinimum, IN UINT32 AddressMaximum, IN UINT32 AddressTranslation, IN UINT32 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN AML_MEMORY_ATTRIBUTES_MTP MemoryRangeType, IN BOOLEAN IsTypeStatic, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlAddNameStringToNamedPackage(IN CONST CHAR8 *NameString, IN AML_OBJECT_NODE_HANDLE NamedNode)
Definition: AmlCodeGen.c:3802
AML_METHOD_PARAM_TYPE
Definition: AmlLib.h:116
EFI_STATUS EFIAPI AmlCodeGenMethodRetInteger(IN CONST CHAR8 *MethodNameString, IN UINT64 ReturnedInteger, IN UINT8 NumArgs, IN BOOLEAN IsSerialized, IN UINT8 SyncLevel, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
Definition: AmlCodeGen.c:2354
EFI_STATUS EFIAPI AmlCodeGenNamePackage(IN CONST CHAR8 *NameString, IN AML_NODE_HANDLE ParentNode, OPTIONAL OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
AML_MEMORY_ATTRIBUTES_MEM
Definition: AmlLib.h:76
EFI_STATUS EFIAPI AmlAddDeviceDataDescriptorPackage(IN CONST EFI_GUID *Uuid, IN AML_OBJECT_NODE_HANDLE DsdNode, OUT AML_OBJECT_NODE_HANDLE *PackageNode)
Definition: AmlCodeGen.c:3070
EFI_STATUS EFIAPI AmlCodeGenMethodRetNameStringIntegerArgument(IN CONST CHAR8 *MethodNameString, IN CONST CHAR8 *ReturnedNameString OPTIONAL, IN UINT8 NumArgs, IN BOOLEAN IsSerialized, IN UINT8 SyncLevel, IN UINT64 IntegerArgument, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
Definition: AmlCodeGen.c:2248
EFI_STATUS EFIAPI AmlCodeGenRdWordIo(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN BOOLEAN IsPosDecode, IN UINT8 IsaRanges, IN UINT16 AddressGranularity, IN UINT16 AddressMinimum, IN UINT16 AddressMaximum, IN UINT16 AddressTranslation, IN UINT16 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN BOOLEAN IsDenseTranslation, IN BOOLEAN IsTypeStatic, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenDefinitionBlock(IN CONST CHAR8 *TableSignature, IN CONST CHAR8 *OemId, IN CONST CHAR8 *OemTableId, IN UINT32 OemRevision, OUT AML_ROOT_NODE_HANDLE *NewRootNode)
EFI_STATUS EFIAPI AmlCreateLpiNode(IN CONST CHAR8 *LpiNameString, IN UINT16 Revision, IN UINT64 LevelId, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewLpiNode OPTIONAL)
Definition: AmlCodeGen.c:2452
EFI_STATUS EFIAPI AmlCodeGenNameUnicodeString(IN CONST CHAR8 *NameString, IN CHAR16 *String, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
Definition: AmlCodeGen.c:897
void * AML_DATA_NODE_HANDLE
Definition: AmlLib.h:59
EFI_STATUS EFIAPI AmlCodeGenNameInteger(IN CONST CHAR8 *NameString, IN UINT64 Integer, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenRdInterrupt(IN BOOLEAN ResourceConsumer, IN BOOLEAN EdgeTriggered, IN BOOLEAN ActiveLow, IN BOOLEAN Shared, IN UINT32 *IrqList, IN UINT8 IrqCount, IN AML_OBJECT_NODE_HANDLE NameOpNode OPTIONAL, OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenInvokeMethod(IN CONST CHAR8 *MethodNameString, IN UINT8 NumArgs, IN AML_METHOD_PARAM *Parameters OPTIONAL, IN AML_NODE_HANDLE ParentNode)
Definition: AmlCodeGen.c:3997
EFI_STATUS EFIAPI AmlAttachNode(IN AML_NODE_HANDLE ParentNode, IN AML_NODE_HANDLE NewNode)
Definition: AmlApi.c:425
void * AML_OBJECT_NODE_HANDLE
Definition: AmlLib.h:55
void * AML_NODE_HANDLE
Definition: AmlLib.h:47
EFI_STATUS EFIAPI AmlCodeGenRdIo(IN BOOLEAN IsDecoder16, IN UINT16 AddressMinimum, IN UINT16 AddressMaximum, IN UINT8 Alignment, IN UINT8 RangeLength, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenMethodRetNameString(IN CONST CHAR8 *MethodNameString, IN CONST CHAR8 *ReturnedNameString OPTIONAL, IN UINT8 NumArgs, IN BOOLEAN IsSerialized, IN UINT8 SyncLevel, IN AML_NODE_HANDLE ParentNode OPTIONAL, OUT AML_OBJECT_NODE_HANDLE *NewObjectNode OPTIONAL)
Definition: AmlCodeGen.c:2138
EFI_STATUS EFIAPI AmlCodeGenRdQWordMemory(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsPosDecode, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN AML_MEMORY_ATTRIBUTES_MEM Cacheable, IN BOOLEAN IsReadWrite, IN UINT64 AddressGranularity, IN UINT64 AddressMinimum, IN UINT64 AddressMaximum, IN UINT64 AddressTranslation, IN UINT64 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN AML_MEMORY_ATTRIBUTES_MTP MemoryRangeType, IN BOOLEAN IsTypeStatic, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
EFI_STATUS EFIAPI AmlCodeGenRdMemory32Fixed(BOOLEAN IsReadWrite, UINT32 Address, UINT32 RangeLength, AML_OBJECT_NODE_HANDLE NameOpNode, AML_DATA_NODE_HANDLE *NewMemNode)
EFI_STATUS EFIAPI AmlCodeGenRdWordBusNumber(IN BOOLEAN IsResourceConsumer, IN BOOLEAN IsMinFixed, IN BOOLEAN IsMaxFixed, IN BOOLEAN IsPosDecode, IN UINT16 AddressGranularity, IN UINT16 AddressMinimum, IN UINT16 AddressMaximum, IN UINT16 AddressTranslation, IN UINT16 RangeLength, IN UINT8 ResourceSourceIndex, IN CONST CHAR8 *ResourceSource, IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS EFIAPI AmlFindNode(IN AML_NODE_HANDLE ReferenceNode, IN CONST CHAR8 *AslPath, OUT AML_NODE_HANDLE *OutNode)
EFI_STATUS EFIAPI AmlCloneTree(IN AML_NODE_HANDLE Node, OUT AML_NODE_HANDLE *ClonedNode)
EFI_STATUS EFIAPI AmlDeleteTree(IN AML_NODE_HANDLE Node)
EFI_STATUS EFIAPI AmlUpdateRdQWord(IN AML_DATA_NODE_HANDLE QWordRdNode, IN UINT64 BaseAddress, IN UINT64 BaseAddressLength)
EFI_STATUS EFIAPI AmlUpdateRdInterrupt(IN AML_DATA_NODE_HANDLE InterruptRdNode, IN UINT32 Irq)
EFI_STATUS EFIAPI AmlParseDefinitionBlock(IN CONST EFI_ACPI_DESCRIPTION_HEADER *DefinitionBlock, OUT AML_ROOT_NODE_HANDLE *RootPtr)
EFI_STATUS EFIAPI AmlNameOpGetNextRdNode(IN AML_DATA_NODE_HANDLE CurrRdNode, OUT AML_DATA_NODE_HANDLE *OutRdNode)
Definition: AmlApi.c:339
EFI_STATUS EFIAPI AmlNameOpGetFirstRdNode(IN AML_OBJECT_NODE_HANDLE NameOpNode, OUT AML_DATA_NODE_HANDLE *OutRdNode)
Definition: AmlApi.c:259
EFI_STATUS EFIAPI AmlDeviceOpUpdateName(IN AML_OBJECT_NODE_HANDLE DeviceOpNode, IN CONST CHAR8 *NewNameString)
Definition: AmlApi.c:41
EFI_STATUS EFIAPI AmlNameOpUpdateInteger(IN AML_OBJECT_NODE_HANDLE NameOpNode, IN UINT64 NewInt)
Definition: AmlApi.c:119
EFI_STATUS EFIAPI AmlNameOpUpdateString(IN AML_OBJECT_NODE_HANDLE NameOpNode, IN CONST CHAR8 *NewName)
Definition: AmlApi.c:176
EFI_STATUS EFIAPI AmlDetachNode(IN AML_NODE_HANDLE Node)
EFI_STATUS EFIAPI AmlSerializeDefinitionBlock(IN AML_ROOT_NODE_HANDLE RootNode, OUT EFI_ACPI_DESCRIPTION_HEADER **Table)
Definition: Base.h:213