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