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

Go to the source code of this file.

Functions

BOOLEAN AmlIsRootPath (IN UINT8 *Buffer)
 
BOOLEAN AmlIsLeadName (IN CHAR8 Ch)
 
BOOLEAN AmlIsName (IN CHAR8 Ch)
 
BOOLEAN AmlIsNameSeg (IN UINT8 *Buffer)
 
EFI_STATUS AmlGetNameStringSize (IN UINT8 *Buffer, OUT UINTN *BufferSize)
 
BOOLEAN AmlIsAslLeadName (IN CHAR8 Ch)
 
BOOLEAN AmlIsAslName (IN CHAR8 Ch)
 
UINTN AmlGetAslNameSegLength (IN UINT8 *Buffer)
 
UINTN AmlGetAslNameStringSize (IN UINT8 *Buffer, OUT UINTN *Root, OUT UINTN *Parent, OUT UINTN *SegCount)
 
VOID AmlUpperCaseCopyMem (IN UINT8 *DstBuffer, IN UINT8 *SrcBuffer, IN UINTN Length)
 
UINT8 * AmlNameFromAslName (IN UINT8 *AslPath)
 
VOID AmlPrintNameSeg (IN UINT8 *Buffer)
 
VOID AmlPrintNameString (IN UINT8 *Buffer)
 

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 AmlString.c.

Function Documentation

◆ AmlGetAslNameSegLength()

UINTN AmlGetAslNameSegLength ( IN UINT8 *  Buffer)

Get ASL NameString size.

Parameters
[in]BufferASL NameString.
Returns
ASL NameString size.

Definition at line 228 of file AmlString.c.

◆ AmlGetAslNameStringSize()

UINTN AmlGetAslNameStringSize ( IN UINT8 *  Buffer,
OUT UINTN Root,
OUT UINTN Parent,
OUT UINTN SegCount 
)

Get ASL NameString size.

Parameters
[in]BufferASL NameString.
[out]RootOn return, points to Root char number.
[out]ParentOn return, points to Parent char number.
[out]SegCountOn return, points to Segment count.
Returns
ASL NameString size.

Definition at line 283 of file AmlString.c.

◆ AmlGetNameStringSize()

EFI_STATUS AmlGetNameStringSize ( IN UINT8 *  Buffer,
OUT UINTN BufferSize 
)

Get AML NameString size.

Parameters
[in]BufferAML NameString.
[out]BufferSizeAML NameString size
Return values
EFI_SUCCESSSuccess.
EFI_INVALID_PARAMETERBuffer does not refer to a valid AML NameString.

Definition at line 109 of file AmlString.c.

◆ AmlIsAslLeadName()

BOOLEAN AmlIsAslLeadName ( IN CHAR8  Ch)

Check if it is ASL LeadName.

Parameters
[in]ChChar.
Return values
TRUEChar is ASL LeadName.
FALSEChar is not ASL LeadName.

Definition at line 189 of file AmlString.c.

◆ AmlIsAslName()

BOOLEAN AmlIsAslName ( IN CHAR8  Ch)

Check if it is ASL Name.

Parameters
[in]ChChar.
Return values
TRUEChar is ASL Name.
FALSEChar is not ASL Name.

Definition at line 209 of file AmlString.c.

◆ AmlIsLeadName()

BOOLEAN AmlIsLeadName ( IN CHAR8  Ch)

Check if it is AML LeadName.

Parameters
[in]ChChar.
Return values
TRUEChar is AML LeadName.
FALSEChar is not AML LeadName.

Definition at line 40 of file AmlString.c.

◆ AmlIsName()

BOOLEAN AmlIsName ( IN CHAR8  Ch)

Check if it is AML Name.

Parameters
[in]ChChar.
Return values
TRUEChar is AML Name.
FALSEChar is not AML Name.

Definition at line 60 of file AmlString.c.

◆ AmlIsNameSeg()

BOOLEAN AmlIsNameSeg ( IN UINT8 *  Buffer)

Return is buffer is AML NameSeg.

Parameters
[in]BufferAML NameSement.
Return values
TRUEIt is AML NameSegment.
FALSEIt is not AML NameSegment.

Definition at line 80 of file AmlString.c.

◆ AmlIsRootPath()

BOOLEAN AmlIsRootPath ( IN UINT8 *  Buffer)

Check if it is AML Root name

Parameters
[in]BufferAML path.
Return values
TRUEAML path is root.
FALSEAML path is not root.

Definition at line 20 of file AmlString.c.

◆ AmlNameFromAslName()

UINT8 * AmlNameFromAslName ( IN UINT8 *  AslPath)

Return AML name according to ASL name. The caller need free the AmlName returned.

Parameters
[in]AslPathASL name.
Returns
AmlName

Definition at line 385 of file AmlString.c.

◆ AmlPrintNameSeg()

VOID AmlPrintNameSeg ( IN UINT8 *  Buffer)

Print AML NameSeg.

Parameters
[in]BufferAML NameSeg.

Definition at line 466 of file AmlString.c.

◆ AmlPrintNameString()

VOID AmlPrintNameString ( IN UINT8 *  Buffer)

Print AML NameString.

Parameters
[in]BufferAML NameString.

Definition at line 495 of file AmlString.c.

◆ AmlUpperCaseCopyMem()

VOID AmlUpperCaseCopyMem ( IN UINT8 *  DstBuffer,
IN UINT8 *  SrcBuffer,
IN UINTN  Length 
)

Copy mem, and cast all the char in dest to be upper case.

Parameters
[in]DstBufferDestination buffer.
[in]SrcBufferSource buffer.
[in]LengthBuffer length.

Definition at line 359 of file AmlString.c.