/* Converts a text device path node to UFS device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUfs(CHAR16 *TextDeviceNode)
/* Converts a text device path node to UFS device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUfs(CHAR16 *TextDeviceNode)
{
  CHAR16            *PunStr;
  CHAR16            *LunStr;
  UFS_DEVICE_PATH   *Ufs;
  PunStr = GetNextParamStr (&TextDeviceNode);
  LunStr = GetNextParamStr (&TextDeviceNode);
  Ufs    = (UFS_DEVICE_PATH *) CreateDeviceNode (
                                 MESSAGING_DEVICE_PATH,
                                 MSG_UFS_DP,
                                 (UINT16) sizeof (UFS_DEVICE_PATH)
                                 );
  Ufs->Pun = (UINT8) Strtoi (PunStr);
  Ufs->Lun = (UINT8) Strtoi (LunStr);
  return (EFI_DEVICE_PATH_PROTOCOL *) Ufs;
}