| struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int domain, int busnum) |
| printk(KERN_WARNING "PCI: Multiple domains not supported\n"); |
| bus = pcibios_scan_root(busnum); |
| int pxm = acpi_get_pxm(device->handle); |
| bus->sysdata = (void *)(unsigned long)pxm_to_node(pxm); |
| printk("bus %d -> pxm %d -> node %ld\n", |
| busnum, pxm, (long)(bus->sysdata)); |
| static int __init pci_acpi_init(void) |
| struct pci_dev *dev = NULL; |
| printk(KERN_INFO "PCI: Using ACPI for IRQ routing\n"); |
| pcibios_enable_irq = acpi_pci_irq_enable; |
| pcibios_disable_irq = acpi_pci_irq_disable; |
| * PCI IRQ routing is set up by pci_enable_device(), but we |
| * also do it here in case there are still broken drivers that |
| * don't use pci_enable_device(). |
| printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n"); |
| acpi_pci_irq_enable(dev); |
| printk(KERN_INFO "PCI: If a device doesn't work, try \"pci=routeirq\". If it helps, post a report\n"); |
| #ifdef CONFIG_X86_IO_APIC |
| subsys_initcall(pci_acpi_init); |