/* Converts a text device path node to firmware volume device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFv(CHAR16 *TextDeviceNode)
/* Converts a text device path node to firmware volume device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFv(CHAR16 *TextDeviceNode)
{
  CHAR16                    *GuidStr;
  MEDIA_FW_VOL_DEVICE_PATH  *Fv;
  GuidStr = GetNextParamStr (&TextDeviceNode);
  Fv      = (MEDIA_FW_VOL_DEVICE_PATH *) CreateDeviceNode (
                                           MEDIA_DEVICE_PATH,
                                           MEDIA_PIWG_FW_VOL_DP,
                                           (UINT16) sizeof (MEDIA_FW_VOL_DEVICE_PATH)
                                           );
  StrToGuid (GuidStr, &Fv->FvName);
  return (EFI_DEVICE_PATH_PROTOCOL *) Fv;
}