/* Determine whethter a PCI device can be rejected. */
BOOLEAN IsRejectiveDevice(IN PCI_RESOURCE_NODE *PciResNode)
/* Determine whethter a PCI device can be rejected. */
BOOLEAN IsRejectiveDevice(IN PCI_RESOURCE_NODE *PciResNode)
{
  PCI_IO_DEVICE  *Temp;
  Temp = PciResNode->PciDev;
  if (Temp == NULL) {
    return FALSE;
  }
  if (IS_PCI_BRIDGE (&Temp->Pci) || (Temp->Parent == NULL)) {
    return TRUE;
  }
  if ((Temp->Parent != NULL) && (Temp->BusNumber == 0)) {
    return FALSE;
  }
  if (IS_PCI_VGA (&Temp->Pci)) {
    return FALSE;
  }
  return TRUE;
}