TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlApi.c File Reference
#include <AmlNodeDefines.h>
#include <AmlCoreInterface.h>
#include <AmlInclude.h>
#include <Api/AmlApiHelper.h>
#include <String/AmlString.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI AmlDeviceOpUpdateName (IN AML_OBJECT_NODE_HANDLE DeviceOpNode, IN CONST CHAR8 *NewNameString)
 
EFI_STATUS EFIAPI AmlNameOpUpdateInteger (IN AML_OBJECT_NODE_HANDLE NameOpNode, IN UINT64 NewInt)
 
EFI_STATUS EFIAPI AmlNameOpUpdateString (IN AML_OBJECT_NODE_HANDLE NameOpNode, IN CONST CHAR8 *NewName)
 
EFI_STATUS EFIAPI AmlNameOpGetFirstRdNode (IN AML_OBJECT_NODE_HANDLE NameOpNode, OUT AML_DATA_NODE_HANDLE *OutRdNode)
 
EFI_STATUS EFIAPI AmlNameOpGetNextRdNode (IN AML_DATA_NODE_HANDLE CurrRdNode, OUT AML_DATA_NODE_HANDLE *OutRdNode)
 
EFI_STATUS EFIAPI AmlAttachNode (IN AML_NODE_HANDLE ParentNode, IN AML_NODE_HANDLE NewNode)
 

Detailed Description

AML Api.

Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AmlApi.c.

Function Documentation

◆ AmlAttachNode()

EFI_STATUS EFIAPI AmlAttachNode ( IN AML_NODE_HANDLE  ParentNode,
IN AML_NODE_HANDLE  NewNode 
)

Attach a node in an AML tree.

The node will be added as the last statement of the ParentNode. E.g.: ASL code corresponding to NewNode: Name (_UID, 0)

ASL code corresponding to ParentNode: Device (PCI0) { Name(_HID, EISAID("PNP0A08")) }

"AmlAttachNode (ParentNode, NewNode)" will result in: ASL code: Device (PCI0) { Name(_HID, EISAID("PNP0A08")) Name (_UID, 0) }

Parameters
[in]ParentNodePointer to the parent node. Must be a root or an object node.
[in]NewNodePointer to the node to add.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.

Definition at line 425 of file AmlApi.c.