diff options
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 0187829c3382..32656f105250 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -50,7 +50,7 @@ static int global_phb_number; /* Global phb counter */ | |||
50 | resource_size_t isa_mem_base; | 50 | resource_size_t isa_mem_base; |
51 | 51 | ||
52 | /* Default PCI flags is 0 on ppc32, modified at boot on ppc64 */ | 52 | /* Default PCI flags is 0 on ppc32, modified at boot on ppc64 */ |
53 | unsigned int ppc_pci_flags = 0; | 53 | unsigned int pci_flags = 0; |
54 | 54 | ||
55 | 55 | ||
56 | static struct dma_map_ops *pci_dma_ops = &dma_direct_ops; | 56 | static struct dma_map_ops *pci_dma_ops = &dma_direct_ops; |
@@ -842,9 +842,9 @@ int pci_proc_domain(struct pci_bus *bus) | |||
842 | { | 842 | { |
843 | struct pci_controller *hose = pci_bus_to_host(bus); | 843 | struct pci_controller *hose = pci_bus_to_host(bus); |
844 | 844 | ||
845 | if (!(ppc_pci_flags & PPC_PCI_ENABLE_PROC_DOMAINS)) | 845 | if (!pci_has_flag(PCI_ENABLE_PROC_DOMAINS)) |
846 | return 0; | 846 | return 0; |
847 | if (ppc_pci_flags & PPC_PCI_COMPAT_DOMAIN_0) | 847 | if (pci_has_flag(PCI_COMPAT_DOMAIN_0)) |
848 | return hose->global_number != 0; | 848 | return hose->global_number != 0; |
849 | return 1; | 849 | return 1; |
850 | } | 850 | } |
@@ -920,13 +920,13 @@ static void __devinit pcibios_fixup_resources(struct pci_dev *dev) | |||
920 | struct resource *res = dev->resource + i; | 920 | struct resource *res = dev->resource + i; |
921 | if (!res->flags) | 921 | if (!res->flags) |
922 | continue; | 922 | continue; |
923 | /* On platforms that have PPC_PCI_PROBE_ONLY set, we don't | 923 | /* On platforms that have PCI_PROBE_ONLY set, we don't |
924 | * consider 0 as an unassigned BAR value. It's technically | 924 | * consider 0 as an unassigned BAR value. It's technically |
925 | * a valid value, but linux doesn't like it... so when we can | 925 | * a valid value, but linux doesn't like it... so when we can |
926 | * re-assign things, we do so, but if we can't, we keep it | 926 | * re-assign things, we do so, but if we can't, we keep it |
927 | * around and hope for the best... | 927 | * around and hope for the best... |
928 | */ | 928 | */ |
929 | if (res->start == 0 && !(ppc_pci_flags & PPC_PCI_PROBE_ONLY)) { | 929 | if (res->start == 0 && !pci_has_flag(PCI_PROBE_ONLY)) { |
930 | pr_debug("PCI:%s Resource %d %016llx-%016llx [%x] is unassigned\n", | 930 | pr_debug("PCI:%s Resource %d %016llx-%016llx [%x] is unassigned\n", |
931 | pci_name(dev), i, | 931 | pci_name(dev), i, |
932 | (unsigned long long)res->start, | 932 | (unsigned long long)res->start, |
@@ -973,7 +973,7 @@ static int __devinit pcibios_uninitialized_bridge_resource(struct pci_bus *bus, | |||
973 | int i; | 973 | int i; |
974 | 974 | ||
975 | /* We don't do anything if PCI_PROBE_ONLY is set */ | 975 | /* We don't do anything if PCI_PROBE_ONLY is set */ |
976 | if (ppc_pci_flags & PPC_PCI_PROBE_ONLY) | 976 | if (pci_has_flag(PCI_PROBE_ONLY)) |
977 | return 0; | 977 | return 0; |
978 | 978 | ||
979 | /* Job is a bit different between memory and IO */ | 979 | /* Job is a bit different between memory and IO */ |
@@ -1143,7 +1143,7 @@ void __devinit pci_fixup_cardbus(struct pci_bus *bus) | |||
1143 | 1143 | ||
1144 | static int skip_isa_ioresource_align(struct pci_dev *dev) | 1144 | static int skip_isa_ioresource_align(struct pci_dev *dev) |
1145 | { | 1145 | { |
1146 | if ((ppc_pci_flags & PPC_PCI_CAN_SKIP_ISA_ALIGN) && | 1146 | if (pci_has_flag(PCI_CAN_SKIP_ISA_ALIGN) && |
1147 | !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) | 1147 | !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) |
1148 | return 1; | 1148 | return 1; |
1149 | return 0; | 1149 | return 0; |
@@ -1271,7 +1271,7 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus) | |||
1271 | * and as such ensure proper re-allocation | 1271 | * and as such ensure proper re-allocation |
1272 | * later. | 1272 | * later. |
1273 | */ | 1273 | */ |
1274 | if (ppc_pci_flags & PPC_PCI_REASSIGN_ALL_RSRC) | 1274 | if (pci_has_flag(PCI_REASSIGN_ALL_RSRC)) |
1275 | goto clear_resource; | 1275 | goto clear_resource; |
1276 | pr = pci_find_parent_resource(bus->self, res); | 1276 | pr = pci_find_parent_resource(bus->self, res); |
1277 | if (pr == res) { | 1277 | if (pr == res) { |
@@ -1456,7 +1456,7 @@ void __init pcibios_resource_survey(void) | |||
1456 | list_for_each_entry(b, &pci_root_buses, node) | 1456 | list_for_each_entry(b, &pci_root_buses, node) |
1457 | pcibios_allocate_bus_resources(b); | 1457 | pcibios_allocate_bus_resources(b); |
1458 | 1458 | ||
1459 | if (!(ppc_pci_flags & PPC_PCI_REASSIGN_ALL_RSRC)) { | 1459 | if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) { |
1460 | pcibios_allocate_resources(0); | 1460 | pcibios_allocate_resources(0); |
1461 | pcibios_allocate_resources(1); | 1461 | pcibios_allocate_resources(1); |
1462 | } | 1462 | } |
@@ -1465,7 +1465,7 @@ void __init pcibios_resource_survey(void) | |||
1465 | * the low IO area and the VGA memory area if they intersect the | 1465 | * the low IO area and the VGA memory area if they intersect the |
1466 | * bus available resources to avoid allocating things on top of them | 1466 | * bus available resources to avoid allocating things on top of them |
1467 | */ | 1467 | */ |
1468 | if (!(ppc_pci_flags & PPC_PCI_PROBE_ONLY)) { | 1468 | if (!pci_has_flag(PCI_PROBE_ONLY)) { |
1469 | list_for_each_entry(b, &pci_root_buses, node) | 1469 | list_for_each_entry(b, &pci_root_buses, node) |
1470 | pcibios_reserve_legacy_regions(b); | 1470 | pcibios_reserve_legacy_regions(b); |
1471 | } | 1471 | } |
@@ -1473,7 +1473,7 @@ void __init pcibios_resource_survey(void) | |||
1473 | /* Now, if the platform didn't decide to blindly trust the firmware, | 1473 | /* Now, if the platform didn't decide to blindly trust the firmware, |
1474 | * we proceed to assigning things that were left unassigned | 1474 | * we proceed to assigning things that were left unassigned |
1475 | */ | 1475 | */ |
1476 | if (!(ppc_pci_flags & PPC_PCI_PROBE_ONLY)) { | 1476 | if (!pci_has_flag(PCI_PROBE_ONLY)) { |
1477 | pr_debug("PCI: Assigning unassigned resources...\n"); | 1477 | pr_debug("PCI: Assigning unassigned resources...\n"); |
1478 | pci_assign_unassigned_resources(); | 1478 | pci_assign_unassigned_resources(); |
1479 | } | 1479 | } |