aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/prom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/prom.h')
-rw-r--r--arch/powerpc/include/asm/prom.h33
1 files changed, 6 insertions, 27 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h
index bf09e5a065b8..d977b9b78696 100644
--- a/arch/powerpc/include/asm/prom.h
+++ b/arch/powerpc/include/asm/prom.h
@@ -1,4 +1,3 @@
1#include <linux/of.h> /* linux/of.h gets to determine #include ordering */
2#ifndef _POWERPC_PROM_H 1#ifndef _POWERPC_PROM_H
3#define _POWERPC_PROM_H 2#define _POWERPC_PROM_H
4#ifdef __KERNEL__ 3#ifdef __KERNEL__
@@ -20,21 +19,17 @@
20#include <asm/irq.h> 19#include <asm/irq.h>
21#include <linux/atomic.h> 20#include <linux/atomic.h>
22 21
23#define HAVE_ARCH_DEVTREE_FIXUPS 22/* These includes should be removed once implicit includes are cleaned up. */
23#include <linux/of.h>
24#include <linux/of_fdt.h>
25#include <linux/of_address.h>
26#include <linux/of_irq.h>
27#include <linux/platform_device.h>
24 28
25/* 29/*
26 * OF address retreival & translation 30 * OF address retreival & translation
27 */ 31 */
28 32
29/* Translate a DMA address from device space to CPU space */
30extern u64 of_translate_dma_address(struct device_node *dev,
31 const __be32 *in_addr);
32
33#ifdef CONFIG_PCI
34extern unsigned long pci_address_to_pio(phys_addr_t address);
35#define pci_address_to_pio pci_address_to_pio
36#endif /* CONFIG_PCI */
37
38/* Parse the ibm,dma-window property of an OF node into the busno, phys and 33/* Parse the ibm,dma-window property of an OF node into the busno, phys and
39 * size parameters. 34 * size parameters.
40 */ 35 */
@@ -44,13 +39,6 @@ void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
44 39
45extern void kdump_move_device_tree(void); 40extern void kdump_move_device_tree(void);
46 41
47#ifdef CONFIG_NUMA
48extern int of_node_to_nid(struct device_node *device);
49#else
50static inline int of_node_to_nid(struct device_node *device) { return 0; }
51#endif
52#define of_node_to_nid of_node_to_nid
53
54extern void of_instantiate_rtc(void); 42extern void of_instantiate_rtc(void);
55 43
56extern int of_get_ibm_chip_id(struct device_node *np); 44extern int of_get_ibm_chip_id(struct device_node *np);
@@ -140,14 +128,5 @@ struct of_drconf_cell {
140 */ 128 */
141extern unsigned char ibm_architecture_vec[]; 129extern unsigned char ibm_architecture_vec[];
142 130
143/* These includes are put at the bottom because they may contain things
144 * that are overridden by this file. Ideally they shouldn't be included
145 * by this file, but there are a bunch of .c files that currently depend
146 * on it. Eventually they will be cleaned up. */
147#include <linux/of_fdt.h>
148#include <linux/of_address.h>
149#include <linux/of_irq.h>
150#include <linux/platform_device.h>
151
152#endif /* __KERNEL__ */ 131#endif /* __KERNEL__ */
153#endif /* _POWERPC_PROM_H */ 132#endif /* _POWERPC_PROM_H */