acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus); acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev)); 
static int enable_device(struct acpiphp_slot *slot){	struct pci_dev *dev;	struct pci_bus *bus = slot->bridge->pci_bus;	struct list_head *l;	struct acpiphp_func *func;	int retval = 0;	int num, max, pass;	if (slot->flags & SLOT_ENABLED)		goto err_exit;	/* sanity check: dev should be NULL when hot-plugged in */	dev = pci_get_slot(bus, PCI_DEVFN(slot->device, 0));	if (dev) {		/* This case shouldn't happen */		err("pci_dev structure already exists.\n");		pci_dev_put(dev);		retval = -1;		goto err_exit;	}	num = pci_scan_slot(bus, PCI_DEVFN(slot->device, 0));	if (num == 0) {		err("No new device found\n");		retval = -1;		goto err_exit;	}	max = bus->secondary;	for (pass = 0; pass < 2; pass++) {		list_for_each_entry(dev, &bus->devices, bus_list) {			if (PCI_SLOT(dev->devfn) != slot->device)				continue;			if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE ||			    dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)				max = pci_scan_bridge(bus, dev, max, pass);		}	}	pci_bus_assign_resources(bus);	pci_bus_add_devices(bus);	/* associate pci_dev to our representation */	list_for_each (l, &slot->funcs) {		func = list_entry(l, struct acpiphp_func, sibling);		func->pci_dev = pci_get_slot(bus, PCI_DEVFN(slot->device,							func->function));	}	slot->flags |= SLOT_ENABLED; err_exit:	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8e5dce35221850759671b2847a2e51030f7626bd/acpiphp_glue.c/clean/drivers/pci/hotplug/acpiphp_glue.c