summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2020-03-30 16:52:38 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-04-17 03:36:43 +0000
commitc884b23ac40a1b1f56e21ebbb1f602fa2e0f05c9 (patch)
tree7c827ec4c27201d7713c6453b0fd8b5c5dde7fcb /MdePkg
parenta7947b6366a660d4d655371fe6bc96315097c06d (diff)
downloadedk2-c884b23ac40a1b1f56e21ebbb1f602fa2e0f05c9.tar.gz
edk2-c884b23ac40a1b1f56e21ebbb1f602fa2e0f05c9.tar.bz2
edk2-c884b23ac40a1b1f56e21ebbb1f602fa2e0f05c9.zip
MdePkg: Add AML FieldList OpCode definitions
The ACPI specification, version 6.3, January 2019, defines the Named Objects Encoding for FieldElements in section '20.2.5.2 Named Objects Encoding'. FieldElements can be one of the following: NamedField | ReservedField | AccessField | ExtendedAccessField | ConnectField Some of these keywords are starting with an opcode, allowing to identify their type. E.g.: ReservedField := 0x00 PkgLength This patch adds these FieldElement opcodes definitions to the list of AML Opcode definitions. Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/IndustryStandard/AcpiAml.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/AcpiAml.h b/MdePkg/Include/IndustryStandard/AcpiAml.h
index 3dd5408b35..74622e912e 100644
--- a/MdePkg/Include/IndustryStandard/AcpiAml.h
+++ b/MdePkg/Include/IndustryStandard/AcpiAml.h
@@ -168,4 +168,12 @@
#define AML_EXT_BANK_FIELD_OP 0x87
#define AML_EXT_DATA_REGION_OP 0x88
+//
+// FieldElement OpCode
+//
+#define AML_FIELD_RESERVED_OP 0x00
+#define AML_FIELD_ACCESS_OP 0x01
+#define AML_FIELD_CONNECTION_OP 0x02
+#define AML_FIELD_EXT_ACCESS_OP 0x03
+
#endif