diff options
-rw-r--r-- | arch/mips/pci/pci-ip27.c | 7 | ||||
-rw-r--r-- | include/asm-mips/mach-ip27/topology.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c index 068e0e508e15..efc96ce99eeb 100644 --- a/arch/mips/pci/pci-ip27.c +++ b/arch/mips/pci/pci-ip27.c | |||
@@ -485,5 +485,12 @@ static void __init pci_fixup_ioc3(struct pci_dev *d) | |||
485 | pci_disable_swapping(d); | 485 | pci_disable_swapping(d); |
486 | } | 486 | } |
487 | 487 | ||
488 | int pcibus_to_node(struct pci_bus *bus) | ||
489 | { | ||
490 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
491 | |||
492 | return bc->nasid; | ||
493 | } | ||
494 | |||
488 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, | 495 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, |
489 | pci_fixup_ioc3); | 496 | pci_fixup_ioc3); |
diff --git a/include/asm-mips/mach-ip27/topology.h b/include/asm-mips/mach-ip27/topology.h index a70a81257c3d..82141c711c33 100644 --- a/include/asm-mips/mach-ip27/topology.h +++ b/include/asm-mips/mach-ip27/topology.h | |||
@@ -9,6 +9,9 @@ | |||
9 | #define parent_node(node) (node) | 9 | #define parent_node(node) (node) |
10 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) | 10 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) |
11 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) | 11 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) |
12 | struct pci_bus; | ||
13 | extern int pcibus_to_node(struct pci_bus *); | ||
14 | |||
12 | #define pcibus_to_cpumask(bus) (cpu_online_map) | 15 | #define pcibus_to_cpumask(bus) (cpu_online_map) |
13 | 16 | ||
14 | extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; | 17 | extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; |