pci-common.c (38a4671cad3f0d277cf48445b49e42a475ebfb6a) | pci-common.c (c5df457ffe6db7569de9fb856de490b5317c97b4) |
---|---|
1/* 2 * Contains common pci routines for ALL ppc platform 3 * (based on pci_32.c and pci_64.c) 4 * 5 * Port for PPC64 David Engebretsen, IBM Corp. 6 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands. 7 * 8 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM --- 813 unchanged lines hidden (view full) --- 822 823 if (!hose) { 824 printk(KERN_ERR "No host bridge for PCI dev %s !\n", 825 pci_name(dev)); 826 return; 827 } 828 for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { 829 struct resource *res = dev->resource + i; | 1/* 2 * Contains common pci routines for ALL ppc platform 3 * (based on pci_32.c and pci_64.c) 4 * 5 * Port for PPC64 David Engebretsen, IBM Corp. 6 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands. 7 * 8 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM --- 813 unchanged lines hidden (view full) --- 822 823 if (!hose) { 824 printk(KERN_ERR "No host bridge for PCI dev %s !\n", 825 pci_name(dev)); 826 return; 827 } 828 for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { 829 struct resource *res = dev->resource + i; |
830 struct pci_bus_region reg; |
|
830 if (!res->flags) 831 continue; 832 833 /* If we're going to re-assign everything, we mark all resources 834 * as unset (and 0-base them). In addition, we mark BARs starting 835 * at 0 as unset as well, except if PCI_PROBE_ONLY is also set 836 * since in that case, we don't want to re-assign anything 837 */ | 831 if (!res->flags) 832 continue; 833 834 /* If we're going to re-assign everything, we mark all resources 835 * as unset (and 0-base them). In addition, we mark BARs starting 836 * at 0 as unset as well, except if PCI_PROBE_ONLY is also set 837 * since in that case, we don't want to re-assign anything 838 */ |
839 pcibios_resource_to_bus(dev, ®, res); |
|
838 if (pci_has_flag(PCI_REASSIGN_ALL_RSRC) || | 840 if (pci_has_flag(PCI_REASSIGN_ALL_RSRC) || |
839 (res->start == 0 && !pci_has_flag(PCI_PROBE_ONLY))) { | 841 (reg.start == 0 && !pci_has_flag(PCI_PROBE_ONLY))) { |
840 /* Only print message if not re-assigning */ 841 if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) 842 pr_debug("PCI:%s Resource %d %016llx-%016llx [%x] " 843 "is unassigned\n", 844 pci_name(dev), i, 845 (unsigned long long)res->start, 846 (unsigned long long)res->end, 847 (unsigned int)res->flags); --- 859 unchanged lines hidden --- | 842 /* Only print message if not re-assigning */ 843 if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) 844 pr_debug("PCI:%s Resource %d %016llx-%016llx [%x] " 845 "is unassigned\n", 846 pci_name(dev), i, 847 (unsigned long long)res->start, 848 (unsigned long long)res->end, 849 (unsigned int)res->flags); --- 859 unchanged lines hidden --- |