diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 20:12:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 20:12:10 -0400 |
commit | 3960ef326a1838971466193ffa008ff37c1d978d (patch) | |
tree | 282b74377bccb9fa79639ce4df2dcb48652dbdec /arch/microblaze/include/asm | |
parent | 62c9072bee2272232d0ed92dc8148c48c1f10f8e (diff) | |
parent | c8f85523e70f8202ff49858bacd72fa65245f382 (diff) |
Merge branch 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
ARM: Consolidate the clkdev header files
ARM: set vga memory base at run-time
ARM: convert PCI defines to variables
ARM: pci: make pcibios_assign_all_busses use pci_has_flag
ARM: remove unnecessary mach/hardware.h includes
pci: move microblaze and powerpc pci flag functions into asm-generic
powerpc: rename ppc_pci_*_flags to pci_*_flags
Fix up conflicts in arch/microblaze/include/asm/pci-bridge.h
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/pci-bridge.h | 64 |
1 files changed, 10 insertions, 54 deletions
diff --git a/arch/microblaze/include/asm/pci-bridge.h b/arch/microblaze/include/asm/pci-bridge.h index 242be57a319c..32764cd077c6 100644 --- a/arch/microblaze/include/asm/pci-bridge.h +++ b/arch/microblaze/include/asm/pci-bridge.h | |||
@@ -10,28 +10,19 @@ | |||
10 | #include <linux/pci.h> | 10 | #include <linux/pci.h> |
11 | #include <linux/list.h> | 11 | #include <linux/list.h> |
12 | #include <linux/ioport.h> | 12 | #include <linux/ioport.h> |
13 | #include <asm-generic/pci-bridge.h> | ||
13 | 14 | ||
14 | struct device_node; | 15 | struct device_node; |
15 | 16 | ||
16 | enum { | 17 | #ifdef CONFIG_PCI |
17 | /* Force re-assigning all resources (ignore firmware | 18 | extern struct list_head hose_list; |
18 | * setup completely) | 19 | extern int pcibios_vaddr_is_ioport(void __iomem *address); |
19 | */ | 20 | #else |
20 | PCI_REASSIGN_ALL_RSRC = 0x00000001, | 21 | static inline int pcibios_vaddr_is_ioport(void __iomem *address) |
21 | 22 | { | |
22 | /* Do not try to assign, just use existing setup */ | 23 | return 0; |
23 | PCI_PROBE_ONLY = 0x00000004, | 24 | } |
24 | 25 | #endif | |
25 | /* Don't bother with ISA alignment unless the bridge has | ||
26 | * ISA forwarding enabled | ||
27 | */ | ||
28 | PCI_CAN_SKIP_ISA_ALIGN = 0x00000008, | ||
29 | |||
30 | /* Enable domain numbers in /proc */ | ||
31 | PCI_ENABLE_PROC_DOMAINS = 0x00000010, | ||
32 | /* ... except for domain 0 */ | ||
33 | PCI_COMPAT_DOMAIN_0 = 0x00000020, | ||
34 | }; | ||
35 | 26 | ||
36 | /* | 27 | /* |
37 | * Structure of a PCI controller (host bridge) | 28 | * Structure of a PCI controller (host bridge) |
@@ -151,40 +142,5 @@ extern struct pci_controller *pcibios_alloc_controller(struct device_node *dev); | |||
151 | extern void pcibios_free_controller(struct pci_controller *phb); | 142 | extern void pcibios_free_controller(struct pci_controller *phb); |
152 | extern void pcibios_setup_phb_resources(struct pci_controller *hose); | 143 | extern void pcibios_setup_phb_resources(struct pci_controller *hose); |
153 | 144 | ||
154 | #ifdef CONFIG_PCI | ||
155 | extern unsigned int pci_flags; | ||
156 | |||
157 | static inline void pci_set_flags(int flags) | ||
158 | { | ||
159 | pci_flags = flags; | ||
160 | } | ||
161 | |||
162 | static inline void pci_add_flags(int flags) | ||
163 | { | ||
164 | pci_flags |= flags; | ||
165 | } | ||
166 | |||
167 | static inline int pci_has_flag(int flag) | ||
168 | { | ||
169 | return pci_flags & flag; | ||
170 | } | ||
171 | |||
172 | extern struct list_head hose_list; | ||
173 | |||
174 | extern int pcibios_vaddr_is_ioport(void __iomem *address); | ||
175 | #else | ||
176 | static inline int pcibios_vaddr_is_ioport(void __iomem *address) | ||
177 | { | ||
178 | return 0; | ||
179 | } | ||
180 | |||
181 | static inline void pci_set_flags(int flags) { } | ||
182 | static inline void pci_add_flags(int flags) { } | ||
183 | static inline int pci_has_flag(int flag) | ||
184 | { | ||
185 | return 0; | ||
186 | } | ||
187 | #endif /* CONFIG_PCI */ | ||
188 | |||
189 | #endif /* __KERNEL__ */ | 145 | #endif /* __KERNEL__ */ |
190 | #endif /* _ASM_MICROBLAZE_PCI_BRIDGE_H */ | 146 | #endif /* _ASM_MICROBLAZE_PCI_BRIDGE_H */ |