]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / AcpiTableDxe / AmlString.c
index fe2c7613e54a48d6d4884c039e22695735f8220f..d0b8b0d0f4ff4a21f8581a3f92ca918bf602f083 100644 (file)
@@ -1,14 +1,8 @@
 /** @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
@@ -18,7 +12,7 @@
   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
@@ -38,7 +32,7 @@ AmlIsRootPath (
   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
@@ -58,7 +52,7 @@ AmlIsLeadName (
   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
@@ -78,7 +72,7 @@ AmlIsName (
   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
@@ -103,8 +97,8 @@ AmlIsNameSeg (
   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
@@ -117,9 +111,7 @@ AmlGetNameStringSize (
   UINTN                 SegCount;\r
   UINTN                 Length;\r
   UINTN                 Index;\r
-  UINT8                 *Name;\r
 \r
-  Name = Buffer;\r
   Length = 0;\r
 \r
   //\r
@@ -185,7 +177,7 @@ AmlGetNameStringSize (
   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
@@ -205,7 +197,7 @@ AmlIsAslLeadName (
   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
@@ -225,7 +217,7 @@ AmlIsAslName (
   Get ASL NameString size.\r
 \r
   @param[in]    Buffer   ASL NameString.\r
-  \r
+\r
   @return       ASL NameString size.\r
 **/\r
 UINTN\r
@@ -239,7 +231,7 @@ AmlGetAslNameSegLength (
   if (*Buffer == 0) {\r
     return 0;\r
   }\r
-  \r
+\r
   Length = 0;\r
   //\r
   // 1st\r
@@ -277,7 +269,7 @@ AmlGetAslNameSegLength (
   @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
@@ -493,9 +485,7 @@ AmlPrintNameString (
 {\r
   UINT8                 SegCount;\r
   UINT8                 Index;\r
-  UINT8                 *Name;\r
\r
-  Name = Buffer;\r
+\r
   if (*Buffer == AML_ROOT_CHAR) {\r
     //\r
     // RootChar\r
@@ -536,7 +526,7 @@ AmlPrintNameString (
     //\r
     SegCount = 1;\r
   }\r
-  \r
+\r
   AmlPrintNameSeg (Buffer);\r
   Buffer += AML_NAME_SEG_SIZE;\r
   for (Index = 0; Index < SegCount - 1; Index++) {\r