]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DynamicTablesPkg: Make AmlNodeGetIntegerValue public
authorPierre Gondois <Pierre.Gondois@arm.com>
Fri, 8 Oct 2021 14:46:20 +0000 (15:46 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 8 Oct 2021 15:39:42 +0000 (15:39 +0000)
Remove the STATIC qualifier for the AmlUtility function
AmlNodeGetIntegerValue() and add the definition to the
header file so that it can be used by other AmlLib
sub-modules.

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
DynamicTablesPkg/Library/Common/AmlLib/Utils/AmlUtility.c
DynamicTablesPkg/Library/Common/AmlLib/Utils/AmlUtility.h

index ef159e3b831e2c65a311e1112af5fd10ded8a6d5..8b5153f916a4a26c113ebc74bb6188afcbda81f8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AML Utility.\r
 \r
-  Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>\r
+  Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
@@ -192,7 +192,6 @@ AmlComputeSize (
   @retval EFI_SUCCESS             The function completed successfully.\r
   @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
 **/\r
-STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 AmlNodeGetIntegerValue (\r
index 4667f57d7f08498c04bb9d66ea07c17281d50e69..0c42d23cbdb95d413d147b926e7803c844355da3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AML Utility.\r
 \r
-  Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>\r
+  Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
@@ -39,6 +39,22 @@ AmlComputeSize (
   IN  OUT       UINT32            * Size\r
   );\r
 \r
+/** Get the value contained in an integer node.\r
+\r
+  @param  [in]  Node    Pointer to an integer node.\r
+                        Must be an object node.\r
+  @param  [out] Value   Value contained in the integer node.\r
+\r
+  @retval EFI_SUCCESS             The function completed successfully.\r
+  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+AmlNodeGetIntegerValue (\r
+  IN  AML_OBJECT_NODE   * Node,\r
+  OUT UINT64            * Value\r
+  );\r
+\r
 /** Set the value contained in an integer node.\r
 \r
   The OpCode is updated accordingly to the new value\r