]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/MdeModulePkg: Move AML_NAME_SEG_SIZE definition
authorPierre Gondois <Pierre.Gondois@arm.com>
Tue, 1 Jun 2021 22:04:49 +0000 (23:04 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 2 Jun 2021 09:57:17 +0000 (09:57 +0000)
commit039e07f626e3234cdd56d47f9fd024c68f135319
treea1da9cc1b5beabc47b71e99303c3429778ee9b91
parentb5379899b38ed84561db6dc07dc4641a049ae238
MdePkg/MdeModulePkg: Move AML_NAME_SEG_SIZE definition

A NameSeg is made 4 chars.
Cf. ACPI 6.4 s20.2.2 "Name Objects Encoding":
NameSeg := <leadnamechar namechar namechar namechar>
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 <Pierre.Gondois@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h
MdePkg/Include/IndustryStandard/AcpiAml.h