}\r
};\r
\r
-/**\r
- Returns the 16-bit Length field of a device path node.\r
-\r
- Returns the 16-bit Length field of the device path node specified by Node.\r
- Node is not required to be aligned on a 16-bit boundary, so it is recommended\r
- that a function such as ReadUnaligned16() be used to extract the contents of\r
- the Length field.\r
-\r
- If Node is NULL, then ASSERT().\r
-\r
- @param Node A pointer to a device path node data structure.\r
-\r
- @return The 16-bit Length field of the device path node specified by Node.\r
-\r
-**/\r
-UINTN\r
-DevicePathNodeLength (\r
- IN CONST VOID *Node\r
- )\r
-{\r
- ASSERT (Node != NULL);\r
- return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);\r
-}\r
-\r
-/**\r
- Returns a pointer to the next node in a device path.\r
-\r
- If Node is NULL, then ASSERT().\r
-\r
- @param Node A pointer to a device path node data structure.\r
-\r
- @return a pointer to the device path node that follows the device path node\r
- specified by Node.\r
-\r
-**/\r
-EFI_DEVICE_PATH_PROTOCOL *\r
-NextDevicePathNode (\r
- IN CONST VOID *Node\r
- )\r
-{\r
- ASSERT (Node != NULL);\r
- return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength (Node));\r
-}\r
-\r
/**\r
Get the size of the current device path instance.\r
\r