/* * Contains common pci routines for ALL ppc platform * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #undef DEBUG #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef DEBUG #include #define DBG(fmt...) printk(fmt) #else #define DBG(fmt...) #endif /* * Return the domain number for this bus. */ int pci_domain_nr(struct pci_bus *bus) { if (firmware_has_feature(FW_FEATURE_ISERIES)) return 0; else { struct pci_controller *hose = pci_bus_to_host(bus); return hose->global_number; } } EXPORT_SYMBOL(pci_domain_nr);