]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Add AML FieldList OpCode definitions
authorPierre Gondois <pierre.gondois@arm.com>
Mon, 30 Mar 2020 08:52:38 +0000 (16:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 17 Apr 2020 03:36:43 +0000 (03:36 +0000)
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>
MdePkg/Include/IndustryStandard/AcpiAml.h

index 3dd5408b359f9192e2fa9cedd0260a0f6bb5603a..74622e912ea42c2a04379362843473cac5ea5856 100644 (file)
 #define AML_EXT_BANK_FIELD_OP        0x87\r
 #define AML_EXT_DATA_REGION_OP       0x88\r
 \r
+//\r
+// FieldElement OpCode\r
+//\r
+#define AML_FIELD_RESERVED_OP        0x00\r
+#define AML_FIELD_ACCESS_OP          0x01\r
+#define AML_FIELD_CONNECTION_OP      0x02\r
+#define AML_FIELD_EXT_ACCESS_OP      0x03\r
+\r
 #endif\r