TianoCore EDK2 master
|
#include "AcpiTable.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | AmlParseOptionTerm (IN AML_BYTE_ENCODING *AmlByteEncoding, IN UINT8 *Buffer, IN UINTN MaxBufferSize, IN AML_OP_PARSE_INDEX TermIndex, OUT EFI_ACPI_DATA_TYPE *DataType, OUT VOID **Data, OUT UINTN *DataSize) |
EFI_STATUS | AmlParseOptionCommon (IN AML_BYTE_ENCODING *AmlByteEncoding, IN UINT8 *Buffer, IN UINTN MaxBufferSize, IN AML_OP_PARSE_INDEX Index, OUT EFI_ACPI_DATA_TYPE *DataType, OUT VOID **Data, OUT UINTN *DataSize) |
UINTN | AmlGetObjectSize (IN AML_BYTE_ENCODING *AmlByteEncoding, IN UINT8 *Buffer, IN UINTN MaxBufferSize) |
CHAR8 * | AmlGetObjectName (IN EFI_AML_HANDLE *AmlHandle) |
EFI_STATUS | AmlGetOffsetAfterLastOption (IN EFI_AML_HANDLE *AmlHandle, OUT UINT8 **Buffer) |
EFI_STATUS | AmlParseOptionHandleCommon (IN EFI_AML_HANDLE *AmlHandle, IN AML_OP_PARSE_INDEX Index, OUT EFI_ACPI_DATA_TYPE *DataType, OUT VOID **Data, OUT UINTN *DataSize) |
ACPI Sdt Protocol Driver
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AmlOption.c.
CHAR8 * AmlGetObjectName | ( | IN EFI_AML_HANDLE * | AmlHandle | ) |
Return object name.
[in] | AmlHandle | AML handle. |
Definition at line 341 of file AmlOption.c.
UINTN AmlGetObjectSize | ( | IN AML_BYTE_ENCODING * | AmlByteEncoding, |
IN UINT8 * | Buffer, | ||
IN UINTN | MaxBufferSize | ||
) |
Return object size.
[in] | AmlByteEncoding | AML Byte Encoding. |
[in] | Buffer | AML object buffer. |
[in] | MaxBufferSize | AML object buffer MAX size. The parser can not parse any data exceed this region. |
Definition at line 308 of file AmlOption.c.
EFI_STATUS AmlGetOffsetAfterLastOption | ( | IN EFI_AML_HANDLE * | AmlHandle, |
OUT UINT8 ** | Buffer | ||
) |
Return offset of last option.
[in] | AmlHandle | AML Handle. |
[out] | Buffer | Upon return, points to the offset after last option. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | AmlHandle does not refer to a valid ACPI object. |
Definition at line 398 of file AmlOption.c.
EFI_STATUS AmlParseOptionCommon | ( | IN AML_BYTE_ENCODING * | AmlByteEncoding, |
IN UINT8 * | Buffer, | ||
IN UINTN | MaxBufferSize, | ||
IN AML_OP_PARSE_INDEX | Index, | ||
OUT EFI_ACPI_DATA_TYPE * | DataType, | ||
OUT VOID ** | Data, | ||
OUT UINTN * | DataSize | ||
) |
Retrieve information according to AmlByteEncoding and Buffer.
[in] | AmlByteEncoding | AML Byte Encoding. |
[in] | Buffer | AML buffer. |
[in] | MaxBufferSize | AML buffer MAX size. The parser can not parse any data exceed this region. |
[in] | Index | Index of the data to retrieve from the object. In general, indexes read from left-to-right in the ACPI encoding, with index 0 always being the ACPI opcode. |
[out] | DataType | Points to the returned data type or EFI_ACPI_DATA_TYPE_NONE if no data exists for the specified index. |
[out] | Data | Upon return, points to the pointer to the data. |
[out] | DataSize | Upon return, points to the size of Data. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | Buffer does not refer to a valid ACPI object. |
Definition at line 145 of file AmlOption.c.
EFI_STATUS AmlParseOptionHandleCommon | ( | IN EFI_AML_HANDLE * | AmlHandle, |
IN AML_OP_PARSE_INDEX | Index, | ||
OUT EFI_ACPI_DATA_TYPE * | DataType, | ||
OUT VOID ** | Data, | ||
OUT UINTN * | DataSize | ||
) |
Retrieve information according to AmlHandle
[in] | AmlHandle | AML handle. |
[in] | Index | Index of the data to retrieve from the object. In general, indexes read from left-to-right in the ACPI encoding, with index 0 always being the ACPI opcode. |
[out] | DataType | Points to the returned data type or EFI_ACPI_DATA_TYPE_NONE if no data exists for the specified index. |
[out] | Data | Upon return, points to the pointer to the data. |
[out] | DataSize | Upon return, points to the size of Data. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | AmlHandle does not refer to a valid ACPI object. |
Definition at line 449 of file AmlOption.c.
EFI_STATUS AmlParseOptionTerm | ( | IN AML_BYTE_ENCODING * | AmlByteEncoding, |
IN UINT8 * | Buffer, | ||
IN UINTN | MaxBufferSize, | ||
IN AML_OP_PARSE_INDEX | TermIndex, | ||
OUT EFI_ACPI_DATA_TYPE * | DataType, | ||
OUT VOID ** | Data, | ||
OUT UINTN * | DataSize | ||
) |
Retrieve option term according to AmlByteEncoding and Buffer.
[in] | AmlByteEncoding | AML Byte Encoding. |
[in] | Buffer | AML buffer. |
[in] | MaxBufferSize | AML buffer MAX size. The parser can not parse any data exceed this region. |
[in] | TermIndex | Index of the data to retrieve from the object. |
[out] | DataType | Points to the returned data type or EFI_ACPI_DATA_TYPE_NONE if no data exists for the specified index. |
[out] | Data | Upon return, points to the pointer to the data. |
[out] | DataSize | Upon return, points to the size of Data. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | Buffer does not refer to a valid ACPI object. |
Definition at line 27 of file AmlOption.c.