aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/pci-bridge.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/pci-bridge.h')
-rw-r--r--arch/microblaze/include/asm/pci-bridge.h64
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
14struct device_node; 15struct device_node;
15 16
16enum { 17#ifdef CONFIG_PCI
17 /* Force re-assigning all resources (ignore firmware 18extern struct list_head hose_list;
18 * setup completely) 19extern int pcibios_vaddr_is_ioport(void __iomem *address);
19 */ 20#else
20 PCI_REASSIGN_ALL_RSRC = 0x00000001, 21static 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);
151extern void pcibios_free_controller(struct pci_controller *phb); 142extern void pcibios_free_controller(struct pci_controller *phb);
152extern void pcibios_setup_phb_resources(struct pci_controller *hose); 143extern void pcibios_setup_phb_resources(struct pci_controller *hose);
153 144
154#ifdef CONFIG_PCI
155extern unsigned int pci_flags;
156
157static inline void pci_set_flags(int flags)
158{
159 pci_flags = flags;
160}
161
162static inline void pci_add_flags(int flags)
163{
164 pci_flags |= flags;
165}
166
167static inline int pci_has_flag(int flag)
168{
169 return pci_flags & flag;
170}
171
172extern struct list_head hose_list;
173
174extern int pcibios_vaddr_is_ioport(void __iomem *address);
175#else
176static inline int pcibios_vaddr_is_ioport(void __iomem *address)
177{
178 return 0;
179}
180
181static inline void pci_set_flags(int flags) { }
182static inline void pci_add_flags(int flags) { }
183static 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 */