blob: a8591ef2636d4e55a64738e836c4a084a840d71c [file] [log] [blame]
David S. Miller657f2012008-12-04 20:12:20 -08001#ifndef __PROM_H
2#define __PROM_H
3
4#include <linux/spinlock.h>
5#include <asm/prom.h>
6
David S. Millerefeac2f2008-12-05 00:40:43 -08007extern void * prom_early_alloc(unsigned long size);
David S. Miller5fce09c2008-12-05 00:43:03 -08008extern void irq_trans_init(struct device_node *dp);
David S. Miller5fce09c2008-12-05 00:43:03 -08009
David S. Millere5ff0fe2008-12-05 00:50:22 -080010extern unsigned int prom_unique_id;
11
David S. Miller65240362008-12-05 01:21:41 -080012static inline int is_root_node(const struct device_node *dp)
13{
14 if (!dp)
15 return 0;
David S. Millerb9e55672008-12-05 01:00:46 -080016
David S. Miller65240362008-12-05 01:21:41 -080017 return (dp->parent == NULL);
18}
19
20extern char *build_path_component(struct device_node *dp);
David S. Miller23dc7582008-12-05 18:16:48 -080021extern void of_console_init(void);
David S. Miller65240362008-12-05 01:21:41 -080022
David S. Miller23dc7582008-12-05 18:16:48 -080023extern unsigned int prom_early_allocated;
David S. Miller65240362008-12-05 01:21:41 -080024
David S. Miller657f2012008-12-04 20:12:20 -080025#endif /* __PROM_H */