/* Converts a text device path node to Hardware Vendor device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextEmuThunk(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware Vendor device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextEmuThunk(IN CHAR16 *TextDeviceNode)
{
  CHAR16              *Str;
  VENDOR_DEVICE_PATH  *Vendor;
  Str    = GetNextParamStr (&TextDeviceNode);
  Vendor = (VENDOR_DEVICE_PATH *)CreateDeviceNode (
                                   HARDWARE_DEVICE_PATH,
                                   HW_VENDOR_DP,
                                   (UINT16)sizeof (VENDOR_DEVICE_PATH)
                                   );
  CopyGuid (&Vendor->Guid, &gEmuThunkProtocolGuid);
  return (EFI_DEVICE_PATH_PROTOCOL *)Vendor;
}