David S. Miller | 657f201 | 2008-12-04 20:12:20 -0800 | [diff] [blame] | 1 | #ifndef __PROM_H |
| 2 | #define __PROM_H |
| 3 | |
| 4 | #include <linux/spinlock.h> |
| 5 | #include <asm/prom.h> |
| 6 | |
David S. Miller | efeac2f | 2008-12-05 00:40:43 -0800 | [diff] [blame] | 7 | extern void * prom_early_alloc(unsigned long size); |
David S. Miller | 5fce09c | 2008-12-05 00:43:03 -0800 | [diff] [blame] | 8 | extern void irq_trans_init(struct device_node *dp); |
David S. Miller | 5fce09c | 2008-12-05 00:43:03 -0800 | [diff] [blame] | 9 | |
David S. Miller | e5ff0fe | 2008-12-05 00:50:22 -0800 | [diff] [blame] | 10 | extern unsigned int prom_unique_id; |
| 11 | |
David S. Miller | 6524036 | 2008-12-05 01:21:41 -0800 | [diff] [blame] | 12 | static inline int is_root_node(const struct device_node *dp) |
| 13 | { |
| 14 | if (!dp) |
| 15 | return 0; |
David S. Miller | b9e5567 | 2008-12-05 01:00:46 -0800 | [diff] [blame] | 16 | |
David S. Miller | 6524036 | 2008-12-05 01:21:41 -0800 | [diff] [blame] | 17 | return (dp->parent == NULL); |
| 18 | } |
| 19 | |
| 20 | extern char *build_path_component(struct device_node *dp); |
David S. Miller | 23dc758 | 2008-12-05 18:16:48 -0800 | [diff] [blame] | 21 | extern void of_console_init(void); |
David S. Miller | 6524036 | 2008-12-05 01:21:41 -0800 | [diff] [blame] | 22 | |
David S. Miller | 23dc758 | 2008-12-05 18:16:48 -0800 | [diff] [blame] | 23 | extern unsigned int prom_early_allocated; |
David S. Miller | 6524036 | 2008-12-05 01:21:41 -0800 | [diff] [blame] | 24 | |
David S. Miller | 657f201 | 2008-12-04 20:12:20 -0800 | [diff] [blame] | 25 | #endif /* __PROM_H */ |