/** @file\r
ACPI Sdt Protocol Driver\r
\r
- Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
Check if it is AML Root name\r
\r
@param[in] Buffer AML path.\r
- \r
+\r
@retval TRUE AML path is root.\r
@retval FALSE AML path is not root.\r
**/\r
Check if it is AML LeadName.\r
\r
@param[in] Ch Char.\r
- \r
+\r
@retval TRUE Char is AML LeadName.\r
@retval FALSE Char is not AML LeadName.\r
**/\r
Check if it is AML Name.\r
\r
@param[in] Ch Char.\r
- \r
+\r
@retval TRUE Char is AML Name.\r
@retval FALSE Char is not AML Name.\r
**/\r
Return is buffer is AML NameSeg.\r
\r
@param[in] Buffer AML NameSement.\r
- \r
+\r
@retval TRUE It is AML NameSegment.\r
@retval FALSE It is not AML NameSegment.\r
**/\r
Get AML NameString size.\r
\r
@param[in] Buffer AML NameString.\r
- @param[out] BufferSize AML NameString size \r
- \r
+ @param[out] BufferSize AML NameString size\r
+\r
@retval EFI_SUCCESS Success.\r
@retval EFI_INVALID_PARAMETER Buffer does not refer to a valid AML NameString.\r
**/\r
UINTN SegCount;\r
UINTN Length;\r
UINTN Index;\r
- UINT8 *Name;\r
\r
- Name = Buffer;\r
Length = 0;\r
\r
//\r
Check if it is ASL LeadName.\r
\r
@param[in] Ch Char.\r
- \r
+\r
@retval TRUE Char is ASL LeadName.\r
@retval FALSE Char is not ASL LeadName.\r
**/\r
Check if it is ASL Name.\r
\r
@param[in] Ch Char.\r
- \r
+\r
@retval TRUE Char is ASL Name.\r
@retval FALSE Char is not ASL Name.\r
**/\r
Get ASL NameString size.\r
\r
@param[in] Buffer ASL NameString.\r
- \r
+\r
@return ASL NameString size.\r
**/\r
UINTN\r
if (*Buffer == 0) {\r
return 0;\r
}\r
- \r
+\r
Length = 0;\r
//\r
// 1st\r
@param[out] Root On return, points to Root char number.\r
@param[out] Parent On return, points to Parent char number.\r
@param[out] SegCount On return, points to Segment count.\r
- \r
+\r
@return ASL NameString size.\r
**/\r
UINTN\r
{\r
UINT8 SegCount;\r
UINT8 Index;\r
- UINT8 *Name;\r
- \r
- Name = Buffer;\r
+\r
if (*Buffer == AML_ROOT_CHAR) {\r
//\r
// RootChar\r
//\r
SegCount = 1;\r
}\r
- \r
+\r
AmlPrintNameSeg (Buffer);\r
Buffer += AML_NAME_SEG_SIZE;\r
for (Index = 0; Index < SegCount - 1; Index++) {\r