xref: /openbmc/linux/arch/sparc/kernel/prom.h (revision 1fa6ac37)
1 #ifndef __PROM_H
2 #define __PROM_H
3 
4 #include <linux/spinlock.h>
5 #include <asm/prom.h>
6 
7 extern void * prom_early_alloc(unsigned long size);
8 extern void irq_trans_init(struct device_node *dp);
9 
10 extern unsigned int prom_unique_id;
11 
12 static inline int is_root_node(const struct device_node *dp)
13 {
14 	if (!dp)
15 		return 0;
16 
17 	return (dp->parent == NULL);
18 }
19 
20 extern char *build_path_component(struct device_node *dp);
21 extern void of_console_init(void);
22 
23 extern unsigned int prom_early_allocated;
24 
25 #endif /* __PROM_H */
26