aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/prom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/prom.h')
-rw-r--r--arch/sparc/kernel/prom.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/sparc/kernel/prom.h b/arch/sparc/kernel/prom.h
new file mode 100644
index 000000000000..bb0f0fda6cab
--- /dev/null
+++ b/arch/sparc/kernel/prom.h
@@ -0,0 +1,29 @@
1#ifndef __PROM_H
2#define __PROM_H
3
4#include <linux/spinlock.h>
5#include <asm/prom.h>
6
7extern struct device_node *allnodes; /* temporary while merging */
8extern rwlock_t devtree_lock; /* temporary while merging */
9
10extern void * prom_early_alloc(unsigned long size);
11extern void irq_trans_init(struct device_node *dp);
12
13extern unsigned int prom_unique_id;
14
15static inline int is_root_node(const struct device_node *dp)
16{
17 if (!dp)
18 return 0;
19
20 return (dp->parent == NULL);
21}
22
23extern char *build_path_component(struct device_node *dp);
24extern void of_console_init(void);
25extern void of_fill_in_cpu_data(void);
26
27extern unsigned int prom_early_allocated;
28
29#endif /* __PROM_H */