/* Converts a text device path node to Logic Unit device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUnit(CHAR16 *TextDeviceNode)
/* Converts a text device path node to Logic Unit device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUnit(CHAR16 *TextDeviceNode)
{
  CHAR16                          *LunStr;
  DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicalUnit;
  LunStr      = GetNextParamStr (&TextDeviceNode);
  LogicalUnit = (DEVICE_LOGICAL_UNIT_DEVICE_PATH *) CreateDeviceNode (
                                                      MESSAGING_DEVICE_PATH,
                                                      MSG_DEVICE_LOGICAL_UNIT_DP,
                                                      (UINT16) sizeof (DEVICE_LOGICAL_UNIT_DEVICE_PATH)
                                                      );
  LogicalUnit->Lun  = (UINT8) Strtoi (LunStr);
  return (EFI_DEVICE_PATH_PROTOCOL *) LogicalUnit;
}