From 039e07f626e3234cdd56d47f9fd024c68f135319 Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Tue, 1 Jun 2021 23:04:49 +0100 Subject: MdePkg/MdeModulePkg: Move AML_NAME_SEG_SIZE definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A NameSeg is made 4 chars. Cf. ACPI 6.4 s20.2.2 "Name Objects Encoding": NameSeg := Notice that NameSegs shorter than 4 characters are filled with trailing underscores (‘_’s). AML_NAME_SEG_SIZE is currently defined in: - DynamicTablesPkg/Library/Common/AmlLib/AmlDefines.h - MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h Since the value can be inferred from the ACPI specification and to avoid multiple definitions, move it to MdePkg/Include/IndustryStandard/ Signed-off-by: Pierre Gondois Reviewed-by: Liming Gao Reviewed-by: Star Zeng Reviewed-by: Sami Mujawar --- MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h | 1 - 1 file changed, 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h index 50d4c96edb..1b26729e71 100644 --- a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h +++ b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h @@ -56,7 +56,6 @@ typedef struct _EFI_AML_NODE_LIST EFI_AML_NODE_LIST; // Size is the total size of this ACPI node buffer. // Children is the children linked list of this node. // -#define AML_NAME_SEG_SIZE 4 struct _EFI_AML_NODE_LIST { UINT32 Signature; -- cgit v1.2.3