/* Function to determine if a device path node is Hi or not. */
BOOLEAN IsHIDevicePathNode(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode)
/* Function to determine if a device path node is Hi or not. */
BOOLEAN IsHIDevicePathNode(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode)
{
  ACPI_HID_DEVICE_PATH  *Acpi;
  ASSERT (DevicePathNode != NULL);
  if (DevicePathNode->Type == HARDWARE_DEVICE_PATH) {
    return TRUE;
  }
  if (DevicePathNode->Type == ACPI_DEVICE_PATH) {
    Acpi = (ACPI_HID_DEVICE_PATH *)DevicePathNode;
    switch (EISA_ID_TO_NUM (Acpi->HID)) {
      case 0x0301:
      case 0x0401:
      case 0x0501:
      case 0x0604:
        return FALSE;
    }
    return TRUE;
  }
  return FALSE;
}