From: Joshua Kinard <kumba@xxxxxxxxxx> This series performs a number of clean-ups on the code for the BRIDGE ASIC found in several SGI platforms. It must be applied after the Xtalk clean-up patch series is applied. Notable changes include: - Genericize the IP27 BRIDGE driver so future platforms can use it - Prepare the generic BRIDGE driver to become a platform_driver - Clean-up/replace IRIX-era structures and macros in bridge.h - Fix the recent PCI_PROBE_ONLY change to work for IP27 again. Joshua Kinard (12): MIPS: BRIDGE: Rename pci-ip27.c to pci-bridge.c MIPS: IP27: Add pcibr.h header for IP27 MIPS: PCI: Minor clean-ups to pci-legacy.c MIPS: PCI: Add BRIDGE 'pre_enable' hook MIPS: BRIDGE: Clean-up bridge.h header file MIPS: BRIDGE: Overhaul bridge.h header file MIPS: BRIDGE: Add XBRIDGE revs and SWAP bit MIPS: BRIDGE: Update ops-bridge.c MIPS: BRIDGE: Use !pci_is_root_bus(bus) to check for bus->number > 0 MIPS: BRIDGE: Overhaul pci-bridge.c driver MIPS: IP27: Update IRQ code to work with the new BRIDGE code MIPS: PCI: Fix IP27 for the PCI_PROBE_ONLY case arch/mips/include/asm/mach-ip27/pcibr.h | 50 + arch/mips/include/asm/pci.h | 3 + arch/mips/include/asm/pci/bridge.h | 1353 ++++++++++++--------- arch/mips/pci/Makefile | 2 +- arch/mips/pci/ops-bridge.c | 129 +- arch/mips/pci/pci-bridge.c | 321 +++++ arch/mips/pci/pci-ip27.c | 230 ---- arch/mips/pci/pci-legacy.c | 74 +- arch/mips/sgi-ip27/ip27-irq-pci.c | 72 +- arch/mips/sgi-ip27/ip27-irq.c | 5 + 10 files changed, 1313 insertions(+), 926 deletions(-) create mode 100644 arch/mips/include/asm/mach-ip27/pcibr.h create mode 100644 arch/mips/pci/pci-bridge.c delete mode 100644 arch/mips/pci/pci-ip27.c -- 2.11.1