mirror of https://github.com/acidanthera/audk.git
DynamicTablesPkg: Use AML_NAME_SEG_SIZE define
Use the newly introduced defined value in: MdePkg/Include/IndustryStandard/AcpiAml.h Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
039e07f626
commit
1f515342d8
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
SSDT CMN-600 AML Table Generator.
|
||||
|
||||
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
|
@ -511,7 +511,7 @@ BuildSsdtCmn600TableEx (
|
|||
UINT64 Index;
|
||||
CM_ARM_CMN_600_INFO * Cmn600Info;
|
||||
UINT32 Cmn600Count;
|
||||
CHAR8 NewName[5];
|
||||
CHAR8 NewName[AML_NAME_SEG_SIZE + 1];
|
||||
EFI_ACPI_DESCRIPTION_HEADER ** TableList;
|
||||
|
||||
ASSERT (This != NULL);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
SSDT Serial Port Table Generator.
|
||||
|
||||
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
@ -171,7 +171,7 @@ BuildSsdtSerialPortTableEx (
|
|||
CM_ARM_SERIAL_PORT_INFO * SerialPortInfo;
|
||||
UINT32 SerialPortCount;
|
||||
UINTN Index;
|
||||
CHAR8 NewName[5];
|
||||
CHAR8 NewName[AML_NAME_SEG_SIZE + 1];
|
||||
UINT64 Uid;
|
||||
EFI_ACPI_DESCRIPTION_HEADER ** TableList;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
AML Defines.
|
||||
|
||||
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
@ -138,13 +138,6 @@ typedef enum EAmlParseIndex {
|
|||
*/
|
||||
#define AML_FIELD_NAMED_OP 0x04
|
||||
|
||||
/** Size of a NameSeg.
|
||||
Cf. ACPI 6.3 specification, s20.2.
|
||||
|
||||
@ingroup TreeStructures
|
||||
*/
|
||||
#define AML_NAME_SEG_SIZE 4U
|
||||
|
||||
/** AML object types.
|
||||
|
||||
The ACPI specification defines several object types. They are listed
|
||||
|
|
Loading…
Reference in New Issue