/* Converts a text device path node to firmware file device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFvFile(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to firmware file device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFvFile(IN CHAR16 *TextDeviceNode)
{
  CHAR16                             *GuidStr;
  MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvFile;
  GuidStr = GetNextParamStr (&TextDeviceNode);
  FvFile  = (MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *)CreateDeviceNode (
                                                   MEDIA_DEVICE_PATH,
                                                   MEDIA_PIWG_FW_FILE_DP,
                                                   (UINT16)sizeof (MEDIA_FW_VOL_FILEPATH_DEVICE_PATH)
                                                   );
  StrToGuid (GuidStr, &FvFile->FvFileName);
  return (EFI_DEVICE_PATH_PROTOCOL *)FvFile;
}