2 * Contains common pci routines for ALL ppc platform
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
12 #include <linux/kernel.h>
13 #include <linux/pci.h>
14 #include <linux/string.h>
15 #include <linux/init.h>
16 #include <linux/bootmem.h>
18 #include <linux/list.h>
19 #include <linux/syscalls.h>
20 #include <linux/irq.h>
21 #include <linux/vmalloc.h>
23 #include <asm/processor.h>
26 #include <asm/pci-bridge.h>
27 #include <asm/byteorder.h>
28 #include <asm/machdep.h>
29 #include <asm/ppc-pci.h>
30 #include <asm/firmware.h>
34 #define DBG(fmt...) printk(fmt)
40 * Return the domain number for this bus.
42 int pci_domain_nr(struct pci_bus *bus)
44 if (firmware_has_feature(FW_FEATURE_ISERIES))
47 struct pci_controller *hose = pci_bus_to_host(bus);
49 return hose->global_number;
53 EXPORT_SYMBOL(pci_domain_nr);