Commit | Line | Data |
---|---|---|
12e84142 MS |
1 | /* |
2 | * Definitions for talking to the Open Firmware PROM on | |
3 | * Power Macintosh computers. | |
4 | * | |
5 | * Copyright (C) 1996-2005 Paul Mackerras. | |
6 | * | |
7 | * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp. | |
8 | * | |
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. | |
13 | */ | |
14 | ||
9d24c888 GL |
15 | #include <linux/of.h> /* linux/of.h gets to determine #include ordering */ |
16 | ||
12e84142 MS |
17 | #ifndef _ASM_MICROBLAZE_PROM_H |
18 | #define _ASM_MICROBLAZE_PROM_H | |
19 | #ifdef __KERNEL__ | |
909964ec JW |
20 | #ifndef __ASSEMBLY__ |
21 | ||
12e84142 | 22 | #include <linux/types.h> |
12e84142 MS |
23 | #include <asm/irq.h> |
24 | #include <asm/atomic.h> | |
25 | ||
12e84142 MS |
26 | #define HAVE_ARCH_DEVTREE_FIXUPS |
27 | ||
12e84142 | 28 | /* Other Prototypes */ |
12e84142 | 29 | extern int early_uartlite_console(void); |
67f4aaa2 | 30 | extern int early_uart16550_console(void); |
12e84142 | 31 | |
12e84142 MS |
32 | /* |
33 | * OF address retreival & translation | |
34 | */ | |
35 | ||
1f5bef30 GL |
36 | #ifdef CONFIG_PCI |
37 | extern unsigned long pci_address_to_pio(phys_addr_t address); | |
22ae782f | 38 | #define pci_address_to_pio pci_address_to_pio |
1f5bef30 GL |
39 | #endif /* CONFIG_PCI */ |
40 | ||
12e84142 MS |
41 | /* Parse the ibm,dma-window property of an OF node into the busno, phys and |
42 | * size parameters. | |
43 | */ | |
44 | void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop, | |
45 | unsigned long *busno, unsigned long *phys, unsigned long *size); | |
46 | ||
47 | extern void kdump_move_device_tree(void); | |
48 | ||
49 | /* CPU OF node matching */ | |
50 | struct device_node *of_get_cpu_node(int cpu, unsigned int *thread); | |
51 | ||
909964ec | 52 | #endif /* __ASSEMBLY__ */ |
12e84142 | 53 | #endif /* __KERNEL__ */ |
22ae782f GL |
54 | |
55 | /* These includes are put at the bottom because they may contain things | |
56 | * that are overridden by this file. Ideally they shouldn't be included | |
57 | * by this file, but there are a bunch of .c files that currently depend | |
58 | * on it. Eventually they will be cleaned up. */ | |
59 | #include <linux/of_fdt.h> | |
60 | #include <linux/of_irq.h> | |
61 | #include <linux/platform_device.h> | |
62 | ||
12e84142 | 63 | #endif /* _ASM_MICROBLAZE_PROM_H */ |