/* Converts a text device path node to text relative offset device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextRelativeOffsetRange(CHAR16 *TextDeviceNode)
/* Converts a text device path node to text relative offset device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextRelativeOffsetRange(CHAR16 *TextDeviceNode)
{
  CHAR16                                  *StartingOffsetStr;
  CHAR16                                  *EndingOffsetStr;
  MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
  StartingOffsetStr = GetNextParamStr (&TextDeviceNode);
  EndingOffsetStr   = GetNextParamStr (&TextDeviceNode);
  Offset            = (MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *) CreateDeviceNode (
                                                                    MEDIA_DEVICE_PATH,
                                                                    MEDIA_RELATIVE_OFFSET_RANGE_DP,
                                                                    (UINT16) sizeof (MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH)
                                                                    );
  Strtoi64 (StartingOffsetStr, &Offset->StartingOffset);
  Strtoi64 (EndingOffsetStr, &Offset->EndingOffset);
  return (EFI_DEVICE_PATH_PROTOCOL *) Offset;
}