Define pcibus_to_node() for IP27.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 15 Sep 2005 08:52:34 +0000 (08:52 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:32:21 +0000 (19:32 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-ip27.c
include/asm-mips/mach-ip27/topology.h

index 068e0e508e15a0c72851afaa2feccf5b95b8961e..efc96ce99eebfce61bf5b4b67e0cb5ba1b24d2bc 100644 (file)
@@ -485,5 +485,12 @@ static void __init pci_fixup_ioc3(struct pci_dev *d)
        pci_disable_swapping(d);
 }
 
+int pcibus_to_node(struct pci_bus *bus)
+{
+       struct bridge_controller *bc = BRIDGE_CONTROLLER(bus);
+
+       return bc->nasid;
+}
+
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3,
        pci_fixup_ioc3);
index a70a81257c3d760853df0eed83a42f801238fd7d..82141c711c338ad5a64c9cef3009b0e99205e208 100644 (file)
@@ -9,6 +9,9 @@
 #define parent_node(node)      (node)
 #define node_to_cpumask(node)  (hub_data(node)->h_cpus)
 #define node_to_first_cpu(node)        (first_cpu(node_to_cpumask(node)))
+struct pci_bus;
+extern int pcibus_to_node(struct pci_bus *);
+
 #define pcibus_to_cpumask(bus) (cpu_online_map)
 
 extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES];