aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/pci-bridge.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-11-30 00:57:28 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:51:26 -0500
commitd2dd482bc17c3bc240045f80a7c4b4d5cea5e29c (patch)
tree9c40a9ab9a04839f2d578f9d47985b399074ce58 /include/asm-powerpc/pci-bridge.h
parentbb6b9b28d6847bc71f910e2e82c9040ff4b97ec0 (diff)
[PATCH] powerpc: Update OF address parsers
This updates the OF address parsers to return the IO flags indicating the type of address obtained. It also adds a PCI call for converting physical addresses that hit IO space into into IO tokens, and add routines that return the translated addresses into struct resource Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/pci-bridge.h')
-rw-r--r--include/asm-powerpc/pci-bridge.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h
index 00d21513d009..01132bb602e3 100644
--- a/include/asm-powerpc/pci-bridge.h
+++ b/include/asm-powerpc/pci-bridge.h
@@ -156,6 +156,15 @@ extern struct pci_controller *
156pcibios_alloc_controller(struct device_node *dev); 156pcibios_alloc_controller(struct device_node *dev);
157extern void pcibios_free_controller(struct pci_controller *phb); 157extern void pcibios_free_controller(struct pci_controller *phb);
158 158
159#ifdef CONFIG_PCI
160extern unsigned int pci_address_to_pio(phys_addr_t address);
161#else
162static inline unsigned int pci_address_to_pio(phys_addr_t address)
163{
164 return (unsigned int)-1;
165}
166#endif
167
159/* Return values for ppc_md.pci_probe_mode function */ 168/* Return values for ppc_md.pci_probe_mode function */
160#define PCI_PROBE_NONE -1 /* Don't look at this bus at all */ 169#define PCI_PROBE_NONE -1 /* Don't look at this bus at all */
161#define PCI_PROBE_NORMAL 0 /* Do normal PCI probing */ 170#define PCI_PROBE_NORMAL 0 /* Do normal PCI probing */