/* Converts a text device path node to SCSI device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextScsi(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to SCSI device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextScsi(IN CHAR16 *TextDeviceNode)
{
  CHAR16            *PunStr;
  CHAR16            *LunStr;
  SCSI_DEVICE_PATH  *Scsi;
  PunStr = GetNextParamStr (&TextDeviceNode);
  LunStr = GetNextParamStr (&TextDeviceNode);
  Scsi   = (SCSI_DEVICE_PATH *)CreateDeviceNode (
                                 MESSAGING_DEVICE_PATH,
                                 MSG_SCSI_DP,
                                 (UINT16)sizeof (SCSI_DEVICE_PATH)
                                 );
  Scsi->Pun = (UINT16)Strtoi (PunStr);
  Scsi->Lun = (UINT16)Strtoi (LunStr);
  return (EFI_DEVICE_PATH_PROTOCOL *)Scsi;
}