diff options
| -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, | |||
