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
\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
\r
**/\r
UINT8\r
+EFIAPI\r
DevicePathType (\r
IN CONST VOID *Node\r
)\r
\r
**/\r
UINT8\r
+EFIAPI\r
DevicePathSubType (\r
IN CONST VOID *Node\r
)\r
\r
**/\r
UINTN\r
+EFIAPI\r
DevicePathNodeLength (\r
IN CONST VOID *Node\r
)\r
\r
**/\r
EFI_DEVICE_PATH_PROTOCOL *\r
+EFIAPI\r
NextDevicePathNode (\r
IN CONST VOID *Node\r
)\r
\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
\r
**/\r
BOOLEAN\r
+EFIAPI\r
IsDevicePathEnd (\r
IN CONST VOID *Node\r
)\r
\r
**/\r
BOOLEAN\r
+EFIAPI\r
IsDevicePathEndInstance (\r
IN CONST VOID *Node\r
)\r
\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
\r
**/\r
VOID\r
+EFIAPI\r
SetDevicePathEndNode (\r
- IN VOID *Node\r
+ OUT VOID *Node\r
)\r
{\r
ASSERT (Node != NULL);\r