/* Converts a text device path node to ACPI HID device path structure. */
EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextAcpi(IN CHAR16 *TextDeviceNode, IN UINT32 PnPId)
/* Converts a text device path node to ACPI HID device path structure. */
EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextAcpi(IN CHAR16 *TextDeviceNode, IN UINT32 PnPId)
{
  CHAR16                *UIDStr;
  ACPI_HID_DEVICE_PATH  *Acpi;
  UIDStr = GetNextParamStr (&TextDeviceNode);
  Acpi   = (ACPI_HID_DEVICE_PATH *)CreateDeviceNode (
                                     ACPI_DEVICE_PATH,
                                     ACPI_DP,
                                     (UINT16)sizeof (ACPI_HID_DEVICE_PATH)
                                     );
  Acpi->HID = EFI_PNP_ID (PnPId);
  Acpi->UID = (UINT32)Strtoi (UIDStr);
  return (EFI_DEVICE_PATH_PROTOCOL *)Acpi;
}