-\r
-/**\r
- Retrieves the device path protocol from a handle.\r
-\r
- This function returns the device path protocol from the handle specified by Handle. \r
- If Handle is NULL or Handle does not contain a device path protocol, then NULL \r
- is returned.\r
- \r
- @param Handle The handle from which to retrieve the device \r
- path protocol.\r
-\r
- @return The device path protocol from the handle specified by Handle.\r
-\r
-**/\r
-EFI_DEVICE_PATH_PROTOCOL *\r
-EFIAPI\r
-DevicePathFromHandle (\r
- IN EFI_HANDLE Handle\r
- )\r
-{\r
- EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
- EFI_STATUS Status;\r
-\r
- Status = gBS->HandleProtocol (\r
- Handle,\r
- &gEfiDevicePathProtocolGuid,\r
- (VOID *) &DevicePath\r
- );\r
- if (EFI_ERROR (Status)) {\r
- DevicePath = NULL;\r
- }\r
- return DevicePath;\r
-}\r
-\r