TianoCore EDK2 master
Loading...
Searching...
No Matches
Aml.c File Reference
#include "AcpiTable.h"

Go to the source code of this file.

Functions

AML_BYTE_ENCODINGAmlSearchByOpByte (IN UINT8 *OpByteBuffer)
 
EFI_ACPI_DATA_TYPE AmlTypeToAcpiType (IN AML_OP_PARSE_FORMAT AmlType)
 
UINTN AmlGetPkgLength (IN UINT8 *Buffer, OUT UINTN *PkgLength)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED AML_BYTE_ENCODING mAmlByteEncoding []
 
GLOBAL_REMOVE_IF_UNREFERENCED EFI_ACPI_DATA_TYPE mAmlTypeToAcpiType []
 

Detailed Description

ACPI Sdt Protocol Driver

Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Aml.c.

Function Documentation

◆ AmlGetPkgLength()

UINTN AmlGetPkgLength ( IN UINT8 *  Buffer,
OUT UINTN PkgLength 
)

This function retuns package length from the buffer.

Parameters
[in]BufferAML buffer
[out]PkgLengthThe total length of package.
Returns
The byte data count to present the package length.

Definition at line 239 of file Aml.c.

◆ AmlSearchByOpByte()

AML_BYTE_ENCODING * AmlSearchByOpByte ( IN UINT8 *  OpByteBuffer)

This function returns AmlByteEncoding according to OpCode Byte.

Parameters
[in]OpByteBufferOpCode byte buffer.
Returns
AmlByteEncoding

Definition at line 180 of file Aml.c.

◆ AmlTypeToAcpiType()

EFI_ACPI_DATA_TYPE AmlTypeToAcpiType ( IN AML_OP_PARSE_FORMAT  AmlType)

This function returns AcpiDataType according to AmlType.

Parameters
[in]AmlTypeAML Type.
Returns
AcpiDataType

Definition at line 218 of file Aml.c.

Variable Documentation

◆ mAmlByteEncoding

Definition at line 12 of file Aml.c.

◆ mAmlTypeToAcpiType

GLOBAL_REMOVE_IF_UNREFERENCED EFI_ACPI_DATA_TYPE mAmlTypeToAcpiType[]
Initial value:
= {
EFI_ACPI_DATA_TYPE_NONE,
EFI_ACPI_DATA_TYPE_OPCODE,
EFI_ACPI_DATA_TYPE_UINT,
EFI_ACPI_DATA_TYPE_UINT,
EFI_ACPI_DATA_TYPE_UINT,
EFI_ACPI_DATA_TYPE_UINT,
EFI_ACPI_DATA_TYPE_NAME_STRING,
EFI_ACPI_DATA_TYPE_STRING,
EFI_ACPI_DATA_TYPE_CHILD
}

Definition at line 160 of file Aml.c.