/* This routine must be used to perform EEH initialization for PCI devices that were added after system boot (e.g. hotplug, dlpar). This routine must be called before any i/o is performed to the adapter (inluding any config-space i/o). Whether this actually enables EEH or not for this device depends on the CEC architecture, type of the device, on earlier boot command-line arguments & etc.  */
static void eeh_add_device_early(struct device_node *dn)
/* This routine must be used to perform EEH initialization for PCI devices that were added after system boot (e.g. hotplug, dlpar). This routine must be called before any i/o is performed to the adapter (inluding any config-space i/o). Whether this actually enables EEH or not for this device depends on the CEC architecture, type of the device, on earlier boot command-line arguments & etc.  */
static void eeh_add_device_early(struct device_node *dn)
{
	struct pci_controller *phb;
	struct eeh_early_enable_info info;
	if (!dn || !PCI_DN(dn))
		return;
	phb = PCI_DN(dn)->phb;
	if (NULL == phb || 0 == phb->buid)
		return;
	info.buid_hi = BUID_HI(phb->buid);
	info.buid_lo = BUID_LO(phb->buid);
	early_enable_eeh(dn, &info);
}