sparc: Move core of OF device tree building code into prom_common.c
[deliverable/linux.git] / arch / sparc / kernel / prom.h
1 #ifndef __PROM_H
2 #define __PROM_H
3
4 #include <linux/spinlock.h>
5 #include <asm/prom.h>
6
7 extern struct device_node *allnodes; /* temporary while merging */
8 extern rwlock_t devtree_lock; /* temporary while merging */
9
10 extern void * prom_early_alloc(unsigned long size);
11
12 #ifdef CONFIG_SPARC64
13 extern void irq_trans_init(struct device_node *dp);
14 #endif
15
16 extern unsigned int prom_unique_id;
17
18 static inline int is_root_node(const struct device_node *dp)
19 {
20 if (!dp)
21 return 0;
22
23 return (dp->parent == NULL);
24 }
25
26 extern char *build_path_component(struct device_node *dp);
27
28 extern struct device_node * __init prom_create_node(phandle node,
29 struct device_node *parent);
30
31 extern struct device_node * __init prom_build_tree(struct device_node *parent,
32 phandle node,
33 struct device_node ***nextp);
34 #endif /* __PROM_H */
This page took 0.031967 seconds and 5 git commands to generate.