pci.c (e368e4ca9c0686514febd3f1767d465caf208db0) pci.c (8cc7581cdb84a232468c41bc417183a423dfbb07)
1/*
2 * Support PCI/PCIe on PowerNV platforms
3 *
4 * Copyright 2011 Benjamin Herrenschmidt, IBM Corp.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 802 unchanged lines hidden (view full) ---

811 /* Look for ioda2 built-in PHB3's */
812 for_each_compatible_node(np, NULL, "ibm,ioda2-phb")
813 pnv_pci_init_ioda2_phb(np);
814
815 /* Look for NPU PHBs */
816 for_each_compatible_node(np, NULL, "ibm,ioda2-npu-phb")
817 pnv_pci_init_npu_phb(np);
818
1/*
2 * Support PCI/PCIe on PowerNV platforms
3 *
4 * Copyright 2011 Benjamin Herrenschmidt, IBM Corp.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 802 unchanged lines hidden (view full) ---

811 /* Look for ioda2 built-in PHB3's */
812 for_each_compatible_node(np, NULL, "ibm,ioda2-phb")
813 pnv_pci_init_ioda2_phb(np);
814
815 /* Look for NPU PHBs */
816 for_each_compatible_node(np, NULL, "ibm,ioda2-npu-phb")
817 pnv_pci_init_npu_phb(np);
818
819 /* Setup the linkage between OF nodes and PHBs */
820 pci_devs_phb_init();
821
822 /* Configure IOMMU DMA hooks */
823 set_pci_dma_ops(&dma_iommu_ops);
824}
825
826machine_subsys_initcall_sync(powernv, tce_iommu_bus_notifier_init);
819 /* Configure IOMMU DMA hooks */
820 set_pci_dma_ops(&dma_iommu_ops);
821}
822
823machine_subsys_initcall_sync(powernv, tce_iommu_bus_notifier_init);