TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlResourceDataApi.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI AmlUpdateRdInterrupt (IN AML_DATA_NODE_HANDLE InterruptRdNode, IN UINT32 Irq)
 
EFI_STATUS EFIAPI AmlUpdateRdInterruptEx (IN AML_DATA_NODE_HANDLE InterruptRdNode, IN BOOLEAN ResourceConsumer, IN BOOLEAN EdgeTriggered, IN BOOLEAN ActiveLow, IN BOOLEAN Shared, IN UINT32 *IrqList, IN UINT8 IrqCount)
 
EFI_STATUS EFIAPI AmlUpdateRdQWord (IN AML_DATA_NODE_HANDLE QWordRdNode, IN UINT64 BaseAddress, IN UINT64 BaseAddressLength)
 

Detailed Description

AML Update Resource Data.

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

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

Definition in file AmlResourceDataApi.c.

Function Documentation

◆ AmlUpdateRdInterruptEx()

EFI_STATUS EFIAPI AmlUpdateRdInterruptEx ( IN AML_DATA_NODE_HANDLE  InterruptRdNode,
IN BOOLEAN  ResourceConsumer,
IN BOOLEAN  EdgeTriggered,
IN BOOLEAN  ActiveLow,
IN BOOLEAN  Shared,
IN UINT32 *  IrqList,
IN UINT8  IrqCount 
)

Update the interrupt list of an interrupt resource data node.

The InterruptRdNode corresponds to the Resource Data created by the "Interrupt ()" ASL function. It is an Extended Interrupt Resource Data. See ACPI 6.3 specification, s6.4.3.6 "Extended Interrupt Descriptor" for more information about Extended Interrupt Resource Data.

Parameters
[in]InterruptRdNodePointer to the an extended interrupt resource data node.
[in]ResourceConsumerThe device consumes the specified interrupt or produces it for use by a child device.
[in]EdgeTriggeredThe interrupt is edge triggered or level triggered.
[in]ActiveLowThe interrupt is active-high or active-low.
[in]SharedThe interrupt can be shared with other devices or not (Exclusive).
[in]IrqListInterrupt list. Must be non-NULL.
[in]IrqCountInterrupt count. Must be non-zero.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_OUT_OF_RESOURCESOut of resources.

Definition at line 158 of file AmlResourceDataApi.c.