From 51a1b95091fe85fa0520abccbc76132b36bc1fc8 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 15 Sep 2005 08:52:34 +0000 Subject: [PATCH] --- yaml --- r: 11219 b: refs/heads/master c: 9dbdfce85c165faa45509ca3b18deaa5f9dfbc12 h: refs/heads/master i: 11217: a480d7f065ba521af1267b7e82b05375bda5fc05 11215: 01a90baef6d14be2e2709aceceff657f127e668f v: v3 --- [refs] | 2 +- trunk/arch/mips/pci/pci-ip27.c | 7 +++++++ trunk/include/asm-mips/mach-ip27/topology.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a51e690e7de5..b1c9d345b251 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 26a940e21752e0de8f068f77dad606a7d1986937 +refs/heads/master: 9dbdfce85c165faa45509ca3b18deaa5f9dfbc12 diff --git a/trunk/arch/mips/pci/pci-ip27.c b/trunk/arch/mips/pci/pci-ip27.c index 068e0e508e15..efc96ce99eeb 100644 --- a/trunk/arch/mips/pci/pci-ip27.c +++ b/trunk/arch/mips/pci/pci-ip27.c @@ -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); diff --git a/trunk/include/asm-mips/mach-ip27/topology.h b/trunk/include/asm-mips/mach-ip27/topology.h index a70a81257c3d..82141c711c33 100644 --- a/trunk/include/asm-mips/mach-ip27/topology.h +++ b/trunk/include/asm-mips/mach-ip27/topology.h @@ -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];