Commit | Line | Data |
---|---|---|
657f201d DM |
1 | #ifndef __PROM_H |
2 | #define __PROM_H | |
3 | ||
4 | #include <linux/spinlock.h> | |
5 | #include <asm/prom.h> | |
6 | ||
efeac2f8 | 7 | extern void * prom_early_alloc(unsigned long size); |
5fce09c6 | 8 | extern void irq_trans_init(struct device_node *dp); |
5fce09c6 | 9 | |
e5ff0fe3 DM |
10 | extern unsigned int prom_unique_id; |
11 | ||
6524036a DM |
12 | static inline int is_root_node(const struct device_node *dp) |
13 | { | |
14 | if (!dp) | |
15 | return 0; | |
b9e5567c | 16 | |
6524036a DM |
17 | return (dp->parent == NULL); |
18 | } | |
19 | ||
20 | extern char *build_path_component(struct device_node *dp); | |
23dc758e | 21 | extern void of_console_init(void); |
6524036a | 22 | |
23dc758e | 23 | extern unsigned int prom_early_allocated; |
6524036a | 24 | |
657f201d | 25 | #endif /* __PROM_H */ |