aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-06-08 09:48:09 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 18:14:26 -0400
commit6b884a8d50a6eea2fb3dad7befe748f67193073b (patch)
tree85756fbd09ebaebdeb9a7ab56806bcbc5e793532 /arch/powerpc/include
parenta7c194b007ec40a130207e9ace9cecf598fc6ac5 (diff)
of/address: merge of_iomap()
Merge common code between Microblaze and PowerPC. This patch creates new of_address.h and address.c files to containing address translation and mapping routines. First routine to be moved it of_iomap() Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Michal Simek <monstr@monstr.eu> CC: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/prom.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h
index 10d5ee55670..0abe379c6f3 100644
--- a/arch/powerpc/include/asm/prom.h
+++ b/arch/powerpc/include/asm/prom.h
@@ -18,6 +18,7 @@
18 */ 18 */
19#include <linux/types.h> 19#include <linux/types.h>
20#include <linux/of_fdt.h> 20#include <linux/of_fdt.h>
21#include <linux/of_address.h>
21#include <linux/of_irq.h> 22#include <linux/of_irq.h>
22#include <linux/proc_fs.h> 23#include <linux/proc_fs.h>
23#include <linux/platform_device.h> 24#include <linux/platform_device.h>
@@ -119,14 +120,5 @@ extern const void *of_get_mac_address(struct device_node *np);
119struct pci_dev; 120struct pci_dev;
120extern int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq); 121extern int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq);
121 122
122/**
123 * of_iomap - Maps the memory mapped IO for a given device_node
124 * @device: the device whose io range will be mapped
125 * @index: index of the io range
126 *
127 * Returns a pointer to the mapped memory
128 */
129extern void __iomem *of_iomap(struct device_node *device, int index);
130
131#endif /* __KERNEL__ */ 123#endif /* __KERNEL__ */
132#endif /* _POWERPC_PROM_H */ 124#endif /* _POWERPC_PROM_H */