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

Go to the source code of this file.

Functions

BOOLEAN EFIAPI AmlRdCompareDescId (IN CONST AML_RD_HEADER *Header, IN AML_RD_HEADER DescriptorId)
 
AML_RD_HEADER EFIAPI AmlRdGetDescId (IN CONST AML_RD_HEADER *Header)
 
UINT32 EFIAPI AmlRdGetSize (IN CONST AML_RD_HEADER *Header)
 
EFI_STATUS EFIAPI AmlRdSetEndTagChecksum (IN CONST AML_RD_HEADER *Header, IN UINT8 CheckSum)
 

Detailed Description

AML Resource Data.

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

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

Glossary:
  • Rd or RD - Resource Data
  • Rds or RDS - Resource Data Small
  • Rdl or RDL - Resource Data Large

Definition in file AmlResourceData.c.

Function Documentation

◆ AmlRdSetEndTagChecksum()

EFI_STATUS EFIAPI AmlRdSetEndTagChecksum ( IN CONST AML_RD_HEADER Header,
IN UINT8  CheckSum 
)

Set the Checksum of an EndTag resource data.

ACPI 6.4, s6.4.2.9 "End Tag": "This checksum is generated such that adding it to the sum of all the data bytes will produce a zero sum." "If the checksum field is zero, the resource data is treated as if the checksum operation succeeded. Configuration proceeds normally."

Parameters
[in]HeaderPointer to the first byte of a resource data.
[in]CheckSumChecksum value to set.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.

Definition at line 121 of file AmlResourceData.c.