2 * Definitions for talking to the Open Firmware PROM on
3 * Power Macintosh computers.
5 * Copyright (C) 1996-2005 Paul Mackerras.
7 * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version
12 * 2 of the License, or (at your option) any later version.
15 #include <linux/of.h> /* linux/of.h gets to determine #include ordering */
17 #ifndef _ASM_MICROBLAZE_PROM_H
18 #define _ASM_MICROBLAZE_PROM_H
22 #include <linux/types.h>
24 #include <linux/atomic.h>
26 #define HAVE_ARCH_DEVTREE_FIXUPS
28 /* Other Prototypes */
34 extern int of_early_console(void *version
);
37 * OF address retreival & translation
41 extern unsigned long pci_address_to_pio(phys_addr_t address
);
42 #define pci_address_to_pio pci_address_to_pio
43 #endif /* CONFIG_PCI */
45 /* Parse the ibm,dma-window property of an OF node into the busno, phys and
48 void of_parse_dma_window(struct device_node
*dn
, const void *dma_window_prop
,
49 unsigned long *busno
, unsigned long *phys
, unsigned long *size
);
51 extern void kdump_move_device_tree(void);
53 /* CPU OF node matching */
54 struct device_node
*of_get_cpu_node(int cpu
, unsigned int *thread
);
56 #endif /* __ASSEMBLY__ */
57 #endif /* __KERNEL__ */
59 /* These includes are put at the bottom because they may contain things
60 * that are overridden by this file. Ideally they shouldn't be included
61 * by this file, but there are a bunch of .c files that currently depend
62 * on it. Eventually they will be cleaned up. */
63 #include <linux/of_fdt.h>
64 #include <linux/of_irq.h>
65 #include <linux/platform_device.h>
67 #endif /* _ASM_MICROBLAZE_PROM_H */