diff options
author | Rob Herring <rob.herring@calxeda.com> | 2011-07-12 10:25:51 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2011-07-12 10:28:04 -0400 |
commit | 0e47ff1ce65bbd0b12a9421a2756b26987ea5083 (patch) | |
tree | aa15e9928332fbba8caf93a17d7aaecce4a10209 /arch/powerpc | |
parent | fe0d42203cb5616eeff68b14576a0f7e2dd56625 (diff) |
powerpc: rename ppc_pci_*_flags to pci_*_flags
This renames pci flags functions and enums in preparation for creating
generic version in asm-generic/pci-bridge.h. The following search and
replace is done:
s/ppc_pci_/pci_/
s/PPC_PCI_/PCI_/
Direct accesses to ppc_pci_flag variable are replaced with helper
functions.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/pci-bridge.h | 32 | ||||
-rw-r--r-- | arch/powerpc/include/asm/pci.h | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 22 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/ep405.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/ppc40x_simple.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/walnut.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/canyonlands.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ppc44x_simple.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/sam440ep.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/82xx/pq2.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/chrp/pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 6 | ||||
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 4 | ||||
-rw-r--r-- | arch/powerpc/sysdev/grackle.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/ppc4xx_pci.c | 2 |
20 files changed, 49 insertions, 49 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index b90dbf8e5cd9..b3a40c3d5000 100644 --- a/arch/powerpc/include/asm/pci-bridge.h +++ b/arch/powerpc/include/asm/pci-bridge.h | |||
@@ -17,45 +17,45 @@ enum { | |||
17 | /* Force re-assigning all resources (ignore firmware | 17 | /* Force re-assigning all resources (ignore firmware |
18 | * setup completely) | 18 | * setup completely) |
19 | */ | 19 | */ |
20 | PPC_PCI_REASSIGN_ALL_RSRC = 0x00000001, | 20 | PCI_REASSIGN_ALL_RSRC = 0x00000001, |
21 | 21 | ||
22 | /* Re-assign all bus numbers */ | 22 | /* Re-assign all bus numbers */ |
23 | PPC_PCI_REASSIGN_ALL_BUS = 0x00000002, | 23 | PCI_REASSIGN_ALL_BUS = 0x00000002, |
24 | 24 | ||
25 | /* Do not try to assign, just use existing setup */ | 25 | /* Do not try to assign, just use existing setup */ |
26 | PPC_PCI_PROBE_ONLY = 0x00000004, | 26 | PCI_PROBE_ONLY = 0x00000004, |
27 | 27 | ||
28 | /* Don't bother with ISA alignment unless the bridge has | 28 | /* Don't bother with ISA alignment unless the bridge has |
29 | * ISA forwarding enabled | 29 | * ISA forwarding enabled |
30 | */ | 30 | */ |
31 | PPC_PCI_CAN_SKIP_ISA_ALIGN = 0x00000008, | 31 | PCI_CAN_SKIP_ISA_ALIGN = 0x00000008, |
32 | 32 | ||
33 | /* Enable domain numbers in /proc */ | 33 | /* Enable domain numbers in /proc */ |
34 | PPC_PCI_ENABLE_PROC_DOMAINS = 0x00000010, | 34 | PCI_ENABLE_PROC_DOMAINS = 0x00000010, |
35 | /* ... except for domain 0 */ | 35 | /* ... except for domain 0 */ |
36 | PPC_PCI_COMPAT_DOMAIN_0 = 0x00000020, | 36 | PCI_COMPAT_DOMAIN_0 = 0x00000020, |
37 | }; | 37 | }; |
38 | #ifdef CONFIG_PCI | 38 | #ifdef CONFIG_PCI |
39 | extern unsigned int ppc_pci_flags; | 39 | extern unsigned int pci_flags; |
40 | 40 | ||
41 | static inline void ppc_pci_set_flags(int flags) | 41 | static inline void pci_set_flags(int flags) |
42 | { | 42 | { |
43 | ppc_pci_flags = flags; | 43 | pci_flags = flags; |
44 | } | 44 | } |
45 | 45 | ||
46 | static inline void ppc_pci_add_flags(int flags) | 46 | static inline void pci_add_flags(int flags) |
47 | { | 47 | { |
48 | ppc_pci_flags |= flags; | 48 | pci_flags |= flags; |
49 | } | 49 | } |
50 | 50 | ||
51 | static inline int ppc_pci_has_flag(int flag) | 51 | static inline int pci_has_flag(int flag) |
52 | { | 52 | { |
53 | return (ppc_pci_flags & flag); | 53 | return (pci_flags & flag); |
54 | } | 54 | } |
55 | #else | 55 | #else |
56 | static inline void ppc_pci_set_flags(int flags) { } | 56 | static inline void pci_set_flags(int flags) { } |
57 | static inline void ppc_pci_add_flags(int flags) { } | 57 | static inline void pci_add_flags(int flags) { } |
58 | static inline int ppc_pci_has_flag(int flag) | 58 | static inline int pci_has_flag(int flag) |
59 | { | 59 | { |
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |
diff --git a/arch/powerpc/include/asm/pci.h b/arch/powerpc/include/asm/pci.h index 7d7790954e02..b9a40faca93f 100644 --- a/arch/powerpc/include/asm/pci.h +++ b/arch/powerpc/include/asm/pci.h | |||
@@ -44,7 +44,7 @@ struct pci_dev; | |||
44 | * bus numbers (don't do that on ppc64 yet !) | 44 | * bus numbers (don't do that on ppc64 yet !) |
45 | */ | 45 | */ |
46 | #define pcibios_assign_all_busses() \ | 46 | #define pcibios_assign_all_busses() \ |
47 | (ppc_pci_has_flag(PPC_PCI_REASSIGN_ALL_BUS)) | 47 | (pci_has_flag(PCI_REASSIGN_ALL_BUS)) |
48 | 48 | ||
49 | static inline void pcibios_set_master(struct pci_dev *dev) | 49 | static inline void pcibios_set_master(struct pci_dev *dev) |
50 | { | 50 | { |
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 893af2a9cd03..4b9ae679254b 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 */ |
@@ -1146,7 +1146,7 @@ void __devinit pci_fixup_cardbus(struct pci_bus *bus) | |||
1146 | 1146 | ||
1147 | static int skip_isa_ioresource_align(struct pci_dev *dev) | 1147 | static int skip_isa_ioresource_align(struct pci_dev *dev) |
1148 | { | 1148 | { |
1149 | if ((ppc_pci_flags & PPC_PCI_CAN_SKIP_ISA_ALIGN) && | 1149 | if (pci_has_flag(PCI_CAN_SKIP_ISA_ALIGN) && |
1150 | !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) | 1150 | !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) |
1151 | return 1; | 1151 | return 1; |
1152 | return 0; | 1152 | return 0; |
@@ -1274,7 +1274,7 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus) | |||
1274 | * and as such ensure proper re-allocation | 1274 | * and as such ensure proper re-allocation |
1275 | * later. | 1275 | * later. |
1276 | */ | 1276 | */ |
1277 | if (ppc_pci_flags & PPC_PCI_REASSIGN_ALL_RSRC) | 1277 | if (pci_has_flag(PCI_REASSIGN_ALL_RSRC)) |
1278 | goto clear_resource; | 1278 | goto clear_resource; |
1279 | pr = pci_find_parent_resource(bus->self, res); | 1279 | pr = pci_find_parent_resource(bus->self, res); |
1280 | if (pr == res) { | 1280 | if (pr == res) { |
@@ -1459,7 +1459,7 @@ void __init pcibios_resource_survey(void) | |||
1459 | list_for_each_entry(b, &pci_root_buses, node) | 1459 | list_for_each_entry(b, &pci_root_buses, node) |
1460 | pcibios_allocate_bus_resources(b); | 1460 | pcibios_allocate_bus_resources(b); |
1461 | 1461 | ||
1462 | if (!(ppc_pci_flags & PPC_PCI_REASSIGN_ALL_RSRC)) { | 1462 | if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) { |
1463 | pcibios_allocate_resources(0); | 1463 | pcibios_allocate_resources(0); |
1464 | pcibios_allocate_resources(1); | 1464 | pcibios_allocate_resources(1); |
1465 | } | 1465 | } |
@@ -1468,7 +1468,7 @@ void __init pcibios_resource_survey(void) | |||
1468 | * the low IO area and the VGA memory area if they intersect the | 1468 | * the low IO area and the VGA memory area if they intersect the |
1469 | * bus available resources to avoid allocating things on top of them | 1469 | * bus available resources to avoid allocating things on top of them |
1470 | */ | 1470 | */ |
1471 | if (!(ppc_pci_flags & PPC_PCI_PROBE_ONLY)) { | 1471 | if (!pci_has_flag(PCI_PROBE_ONLY)) { |
1472 | list_for_each_entry(b, &pci_root_buses, node) | 1472 | list_for_each_entry(b, &pci_root_buses, node) |
1473 | pcibios_reserve_legacy_regions(b); | 1473 | pcibios_reserve_legacy_regions(b); |
1474 | } | 1474 | } |
@@ -1476,7 +1476,7 @@ void __init pcibios_resource_survey(void) | |||
1476 | /* Now, if the platform didn't decide to blindly trust the firmware, | 1476 | /* Now, if the platform didn't decide to blindly trust the firmware, |
1477 | * we proceed to assigning things that were left unassigned | 1477 | * we proceed to assigning things that were left unassigned |
1478 | */ | 1478 | */ |
1479 | if (!(ppc_pci_flags & PPC_PCI_PROBE_ONLY)) { | 1479 | if (!pci_has_flag(PCI_PROBE_ONLY)) { |
1480 | pr_debug("PCI: Assigning unassigned resources...\n"); | 1480 | pr_debug("PCI: Assigning unassigned resources...\n"); |
1481 | pci_assign_unassigned_resources(); | 1481 | pci_assign_unassigned_resources(); |
1482 | } | 1482 | } |
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index bedb370459f2..b1959bf7562b 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -373,7 +373,7 @@ static int __init pcibios_init(void) | |||
373 | 373 | ||
374 | printk(KERN_INFO "PCI: Probing PCI hardware\n"); | 374 | printk(KERN_INFO "PCI: Probing PCI hardware\n"); |
375 | 375 | ||
376 | if (ppc_pci_flags & PPC_PCI_REASSIGN_ALL_BUS) | 376 | if (pci_has_flag(PCI_REASSIGN_ALL_BUS)) |
377 | pci_assign_all_buses = 1; | 377 | pci_assign_all_buses = 1; |
378 | 378 | ||
379 | /* Scan all of the recorded PCI controllers. */ | 379 | /* Scan all of the recorded PCI controllers. */ |
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index fc6452b6be9f..ab34046752bf 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -55,12 +55,12 @@ static int __init pcibios_init(void) | |||
55 | ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; | 55 | ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; |
56 | 56 | ||
57 | if (pci_probe_only) | 57 | if (pci_probe_only) |
58 | ppc_pci_flags |= PPC_PCI_PROBE_ONLY; | 58 | pci_add_flags(PCI_PROBE_ONLY); |
59 | 59 | ||
60 | /* On ppc64, we always enable PCI domains and we keep domain 0 | 60 | /* On ppc64, we always enable PCI domains and we keep domain 0 |
61 | * backward compatible in /proc for video cards | 61 | * backward compatible in /proc for video cards |
62 | */ | 62 | */ |
63 | ppc_pci_flags |= PPC_PCI_ENABLE_PROC_DOMAINS | PPC_PCI_COMPAT_DOMAIN_0; | 63 | pci_add_flags(PCI_ENABLE_PROC_DOMAINS | PCI_COMPAT_DOMAIN_0); |
64 | 64 | ||
65 | /* Scan all of the recorded PCI controllers. */ | 65 | /* Scan all of the recorded PCI controllers. */ |
66 | list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { | 66 | list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { |
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 54e66da8f743..6cd8f0196b6d 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc/kernel/rtas_pci.c | |||
@@ -291,7 +291,7 @@ void __init find_and_init_phbs(void) | |||
291 | prop = of_get_property(of_chosen, | 291 | prop = of_get_property(of_chosen, |
292 | "linux,pci-assign-all-buses", NULL); | 292 | "linux,pci-assign-all-buses", NULL); |
293 | if (prop && *prop) | 293 | if (prop && *prop) |
294 | ppc_pci_flags |= PPC_PCI_REASSIGN_ALL_BUS; | 294 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
295 | #endif /* CONFIG_PPC32 */ | 295 | #endif /* CONFIG_PPC32 */ |
296 | } | 296 | } |
297 | } | 297 | } |
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c index 4058fd1e7fc7..b0389bbe4f94 100644 --- a/arch/powerpc/platforms/40x/ep405.c +++ b/arch/powerpc/platforms/40x/ep405.c | |||
@@ -100,7 +100,7 @@ static void __init ep405_setup_arch(void) | |||
100 | /* Find & init the BCSR CPLD */ | 100 | /* Find & init the BCSR CPLD */ |
101 | ep405_init_bcsr(); | 101 | ep405_init_bcsr(); |
102 | 102 | ||
103 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 103 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
104 | } | 104 | } |
105 | 105 | ||
106 | static int __init ep405_probe(void) | 106 | static int __init ep405_probe(void) |
diff --git a/arch/powerpc/platforms/40x/ppc40x_simple.c b/arch/powerpc/platforms/40x/ppc40x_simple.c index 2521d93ef136..e8dd5c5df7d9 100644 --- a/arch/powerpc/platforms/40x/ppc40x_simple.c +++ b/arch/powerpc/platforms/40x/ppc40x_simple.c | |||
@@ -61,7 +61,7 @@ static const char *board[] __initdata = { | |||
61 | static int __init ppc40x_probe(void) | 61 | static int __init ppc40x_probe(void) |
62 | { | 62 | { |
63 | if (of_flat_dt_match(of_get_flat_dt_root(), board)) { | 63 | if (of_flat_dt_match(of_get_flat_dt_root(), board)) { |
64 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 64 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
65 | return 1; | 65 | return 1; |
66 | } | 66 | } |
67 | 67 | ||
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c index 335df91fbee5..8b691df72f74 100644 --- a/arch/powerpc/platforms/40x/walnut.c +++ b/arch/powerpc/platforms/40x/walnut.c | |||
@@ -51,7 +51,7 @@ static int __init walnut_probe(void) | |||
51 | if (!of_flat_dt_is_compatible(root, "ibm,walnut")) | 51 | if (!of_flat_dt_is_compatible(root, "ibm,walnut")) |
52 | return 0; | 52 | return 0; |
53 | 53 | ||
54 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | 54 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
55 | 55 | ||
56 | return 1; | 56 | return 1; |
57 | } | 57 | } |
diff --git a/arch/powerpc/platforms/44x/canyonlands.c b/arch/powerpc/platforms/44x/canyonlands.c index afc5e8ea3775..e300dd4c89bf 100644 --- a/arch/powerpc/platforms/44x/canyonlands.c +++ b/arch/powerpc/platforms/44x/canyonlands.c | |||
@@ -55,7 +55,7 @@ static int __init ppc460ex_probe(void) | |||
55 | { | 55 | { |
56 | unsigned long root = of_get_flat_dt_root(); | 56 | unsigned long root = of_get_flat_dt_root(); |
57 | if (of_flat_dt_is_compatible(root, "amcc,canyonlands")) { | 57 | if (of_flat_dt_is_compatible(root, "amcc,canyonlands")) { |
58 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 58 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
59 | return 1; | 59 | return 1; |
60 | } | 60 | } |
61 | return 0; | 61 | return 0; |
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 88b9117fa691..6a4232bbdf88 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c | |||
@@ -54,7 +54,7 @@ static int __init ebony_probe(void) | |||
54 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) | 54 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) |
55 | return 0; | 55 | return 0; |
56 | 56 | ||
57 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 57 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
58 | 58 | ||
59 | return 1; | 59 | return 1; |
60 | } | 60 | } |
diff --git a/arch/powerpc/platforms/44x/ppc44x_simple.c b/arch/powerpc/platforms/44x/ppc44x_simple.c index c81c19c0b3d4..8d2202763415 100644 --- a/arch/powerpc/platforms/44x/ppc44x_simple.c +++ b/arch/powerpc/platforms/44x/ppc44x_simple.c | |||
@@ -72,7 +72,7 @@ static int __init ppc44x_probe(void) | |||
72 | 72 | ||
73 | for (i = 0; i < ARRAY_SIZE(board); i++) { | 73 | for (i = 0; i < ARRAY_SIZE(board); i++) { |
74 | if (of_flat_dt_is_compatible(root, board[i])) { | 74 | if (of_flat_dt_is_compatible(root, board[i])) { |
75 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 75 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
76 | return 1; | 76 | return 1; |
77 | } | 77 | } |
78 | } | 78 | } |
diff --git a/arch/powerpc/platforms/44x/sam440ep.c b/arch/powerpc/platforms/44x/sam440ep.c index a78e8eb6da41..9e09b835758b 100644 --- a/arch/powerpc/platforms/44x/sam440ep.c +++ b/arch/powerpc/platforms/44x/sam440ep.c | |||
@@ -51,7 +51,7 @@ static int __init sam440ep_probe(void) | |||
51 | if (!of_flat_dt_is_compatible(root, "acube,sam440ep")) | 51 | if (!of_flat_dt_is_compatible(root, "acube,sam440ep")) |
52 | return 0; | 52 | return 0; |
53 | 53 | ||
54 | ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); | 54 | pci_set_flags(PCI_REASSIGN_ALL_RSRC); |
55 | 55 | ||
56 | return 1; | 56 | return 1; |
57 | } | 57 | } |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pci.c b/arch/powerpc/platforms/52xx/mpc52xx_pci.c index da110bd88346..82051bddcc40 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pci.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pci.c | |||
@@ -371,7 +371,7 @@ mpc52xx_add_bridge(struct device_node *node) | |||
371 | 371 | ||
372 | pr_debug("Adding MPC52xx PCI host bridge %s\n", node->full_name); | 372 | pr_debug("Adding MPC52xx PCI host bridge %s\n", node->full_name); |
373 | 373 | ||
374 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 374 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
375 | 375 | ||
376 | if (of_address_to_resource(node, 0, &rsrc) != 0) { | 376 | if (of_address_to_resource(node, 0, &rsrc) != 0) { |
377 | printk(KERN_ERR "Can't get %s resources\n", node->full_name); | 377 | printk(KERN_ERR "Can't get %s resources\n", node->full_name); |
diff --git a/arch/powerpc/platforms/82xx/pq2.c b/arch/powerpc/platforms/82xx/pq2.c index 9761a59f175f..d111b024eafd 100644 --- a/arch/powerpc/platforms/82xx/pq2.c +++ b/arch/powerpc/platforms/82xx/pq2.c | |||
@@ -53,7 +53,7 @@ static void __init pq2_pci_add_bridge(struct device_node *np) | |||
53 | if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b) | 53 | if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b) |
54 | goto err; | 54 | goto err; |
55 | 55 | ||
56 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 56 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
57 | 57 | ||
58 | hose = pcibios_alloc_controller(np); | 58 | hose = pcibios_alloc_controller(np); |
59 | if (!hose) | 59 | if (!hose) |
diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index 8f67a394b2d0..f3376fa9d284 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c | |||
@@ -199,7 +199,7 @@ static void __init setup_peg2(struct pci_controller *hose, struct device_node *d | |||
199 | printk ("RTAS supporting Pegasos OF not found, please upgrade" | 199 | printk ("RTAS supporting Pegasos OF not found, please upgrade" |
200 | " your firmware\n"); | 200 | " your firmware\n"); |
201 | } | 201 | } |
202 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 202 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
203 | /* keep the reference to the root node */ | 203 | /* keep the reference to the root node */ |
204 | } | 204 | } |
205 | 205 | ||
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index f33e08d573ce..c291afd6b616 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c | |||
@@ -731,7 +731,7 @@ static void __init setup_bandit(struct pci_controller *hose, | |||
731 | static int __init setup_uninorth(struct pci_controller *hose, | 731 | static int __init setup_uninorth(struct pci_controller *hose, |
732 | struct resource *addr) | 732 | struct resource *addr) |
733 | { | 733 | { |
734 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 734 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
735 | has_uninorth = 1; | 735 | has_uninorth = 1; |
736 | hose->ops = ¯isc_pci_ops; | 736 | hose->ops = ¯isc_pci_ops; |
737 | hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); | 737 | hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); |
@@ -998,7 +998,7 @@ void __init pmac_pci_init(void) | |||
998 | struct device_node *np, *root; | 998 | struct device_node *np, *root; |
999 | struct device_node *ht = NULL; | 999 | struct device_node *ht = NULL; |
1000 | 1000 | ||
1001 | ppc_pci_set_flags(PPC_PCI_CAN_SKIP_ISA_ALIGN); | 1001 | pci_set_flags(PCI_CAN_SKIP_ISA_ALIGN); |
1002 | 1002 | ||
1003 | root = of_find_node_by_path("/"); | 1003 | root = of_find_node_by_path("/"); |
1004 | if (root == NULL) { | 1004 | if (root == NULL) { |
@@ -1057,7 +1057,7 @@ void __init pmac_pci_init(void) | |||
1057 | * some offset between bus number and domains for now when we | 1057 | * some offset between bus number and domains for now when we |
1058 | * assign all busses should help for now | 1058 | * assign all busses should help for now |
1059 | */ | 1059 | */ |
1060 | if (ppc_pci_has_flag(PPC_PCI_REASSIGN_ALL_BUS)) | 1060 | if (pci_has_flag(PCI_REASSIGN_ALL_BUS)) |
1061 | pcibios_assign_bus_offset = 0x10; | 1061 | pcibios_assign_bus_offset = 0x10; |
1062 | #endif | 1062 | #endif |
1063 | } | 1063 | } |
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 68ca9290df94..31f99ec7382e 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c | |||
@@ -343,7 +343,7 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary) | |||
343 | printk(KERN_WARNING "Can't get bus-range for %s, assume" | 343 | printk(KERN_WARNING "Can't get bus-range for %s, assume" |
344 | " bus 0\n", dev->full_name); | 344 | " bus 0\n", dev->full_name); |
345 | 345 | ||
346 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 346 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
347 | hose = pcibios_alloc_controller(dev); | 347 | hose = pcibios_alloc_controller(dev); |
348 | if (!hose) | 348 | if (!hose) |
349 | return -ENOMEM; | 349 | return -ENOMEM; |
@@ -679,7 +679,7 @@ int __init mpc83xx_add_bridge(struct device_node *dev) | |||
679 | " bus 0\n", dev->full_name); | 679 | " bus 0\n", dev->full_name); |
680 | } | 680 | } |
681 | 681 | ||
682 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 682 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
683 | hose = pcibios_alloc_controller(dev); | 683 | hose = pcibios_alloc_controller(dev); |
684 | if (!hose) | 684 | if (!hose) |
685 | return -ENOMEM; | 685 | return -ENOMEM; |
diff --git a/arch/powerpc/sysdev/grackle.c b/arch/powerpc/sysdev/grackle.c index cf27df6e508b..08abe91ae798 100644 --- a/arch/powerpc/sysdev/grackle.c +++ b/arch/powerpc/sysdev/grackle.c | |||
@@ -57,7 +57,7 @@ void __init setup_grackle(struct pci_controller *hose) | |||
57 | { | 57 | { |
58 | setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0); | 58 | setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0); |
59 | if (of_machine_is_compatible("PowerMac1,1")) | 59 | if (of_machine_is_compatible("PowerMac1,1")) |
60 | ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); | 60 | pci_add_flags(PCI_REASSIGN_ALL_BUS); |
61 | if (of_machine_is_compatible("AAPL,PowerBook1998")) | 61 | if (of_machine_is_compatible("AAPL,PowerBook1998")) |
62 | grackle_set_loop_snoop(hose, 1); | 62 | grackle_set_loop_snoop(hose, 1); |
63 | #if 0 /* Disabled for now, HW problems ??? */ | 63 | #if 0 /* Disabled for now, HW problems ??? */ |
diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 156aa7d36258..9c067fa3b878 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch/powerpc/sysdev/ppc4xx_pci.c | |||
@@ -1960,7 +1960,7 @@ static int __init ppc4xx_pci_find_bridges(void) | |||
1960 | { | 1960 | { |
1961 | struct device_node *np; | 1961 | struct device_node *np; |
1962 | 1962 | ||
1963 | ppc_pci_flags |= PPC_PCI_ENABLE_PROC_DOMAINS | PPC_PCI_COMPAT_DOMAIN_0; | 1963 | pci_add_flags(PCI_ENABLE_PROC_DOMAINS | PCI_COMPAT_DOMAIN_0); |
1964 | 1964 | ||
1965 | #ifdef CONFIG_PPC4xx_PCI_EXPRESS | 1965 | #ifdef CONFIG_PPC4xx_PCI_EXPRESS |
1966 | for_each_compatible_node(np, NULL, "ibm,plb-pciex") | 1966 | for_each_compatible_node(np, NULL, "ibm,plb-pciex") |