]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / UefiDevicePathLib / UefiDevicePathLib.c
index edc03f0e6b95939b41d7d705711eda00cd49d1d2..b5f8ab4d2756ce35e08d29d7f6a5524a079ca3a3 100644 (file)
@@ -8,8 +8,8 @@
   environment varibles. Multi-instance device paths should never be placed\r
   on a Handle.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2009, 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
@@ -22,8 +22,6 @@
 \r
 #include <Uefi.h>\r
 \r
-#include <Protocol/DevicePath.h>\r
-\r
 #include <Library/DevicePathLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -56,6 +54,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_PROTOCOL  mUefiDevicePathLib
 \r
 **/\r
 UINT8\r
+EFIAPI\r
 DevicePathType (\r
   IN CONST VOID  *Node\r
   )\r
@@ -77,6 +76,7 @@ DevicePathType (
 \r
 **/\r
 UINT8\r
+EFIAPI\r
 DevicePathSubType (\r
   IN CONST VOID  *Node\r
   )\r
@@ -101,6 +101,7 @@ DevicePathSubType (
 \r
 **/\r
 UINTN\r
+EFIAPI\r
 DevicePathNodeLength (\r
   IN CONST VOID  *Node\r
   )\r
@@ -122,6 +123,7 @@ DevicePathNodeLength (
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
+EFIAPI\r
 NextDevicePathNode (\r
   IN CONST VOID  *Node\r
   )\r
@@ -148,12 +150,13 @@ NextDevicePathNode (
   \r
 **/\r
 BOOLEAN\r
+EFIAPI\r
 IsDevicePathEndType (\r
   IN CONST VOID  *Node\r
   )\r
 {\r
   ASSERT (Node != NULL);\r
-  return (BOOLEAN) ((DevicePathType (Node) & 0x7f) == END_DEVICE_PATH_TYPE);\r
+  return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE);\r
 }\r
 \r
 /**\r
@@ -171,6 +174,7 @@ IsDevicePathEndType (
 \r
 **/\r
 BOOLEAN\r
+EFIAPI\r
 IsDevicePathEnd (\r
   IN CONST VOID  *Node\r
   )\r
@@ -194,6 +198,7 @@ IsDevicePathEnd (
 \r
 **/\r
 BOOLEAN\r
+EFIAPI\r
 IsDevicePathEndInstance (\r
   IN CONST VOID  *Node\r
   )\r
@@ -220,14 +225,15 @@ IsDevicePathEndInstance (
 \r
 **/\r
 UINT16\r
+EFIAPI\r
 SetDevicePathNodeLength (\r
-  IN VOID   *Node,\r
-  IN UINTN  NodeLength\r
+  IN OUT VOID  *Node,\r
+  IN UINTN     Length\r
   )\r
 {\r
   ASSERT (Node != NULL);\r
-  ASSERT (NodeLength < 0x10000);\r
-  return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(NodeLength));\r
+  ASSERT (Length < 0x10000);\r
+  return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));\r
 }\r
 \r
 /**\r
@@ -247,8 +253,9 @@ SetDevicePathNodeLength (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SetDevicePathEndNode (\r
-  IN VOID  *Node\r
+  OUT VOID  *Node\r
   )\r
 {\r
   ASSERT (Node != NULL);\r