/* Converts a text device path node to Hardware Vendor device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextEmuFs(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware Vendor device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextEmuFs(IN CHAR16 *TextDeviceNode)
{
  CHAR16                       *Str;
  EMU_VENDOR_DEVICE_PATH_NODE  *Vendor;
  Str    = GetNextParamStr (&TextDeviceNode);
  Vendor = (EMU_VENDOR_DEVICE_PATH_NODE *)CreateDeviceNode (
                                            HARDWARE_DEVICE_PATH,
                                            HW_VENDOR_DP,
                                            (UINT16)sizeof (EMU_VENDOR_DEVICE_PATH_NODE)
                                            );
  CopyGuid (&Vendor->VendorDevicePath.Guid, &gEfiSimpleFileSystemProtocolGuid);
  Vendor->Instance = (UINT32)StrDecimalToUintn (Str);
  return (EFI_DEVICE_PATH_PROTOCOL *)Vendor;
}