lmb: rename to memblock
[linux-2.6-block.git] / arch / sparc / kernel / prom.h
CommitLineData
657f201d
DM
1#ifndef __PROM_H
2#define __PROM_H
3
4#include <linux/spinlock.h>
5#include <asm/prom.h>
6
efeac2f8 7extern void * prom_early_alloc(unsigned long size);
5fce09c6 8extern void irq_trans_init(struct device_node *dp);
5fce09c6 9
e5ff0fe3
DM
10extern unsigned int prom_unique_id;
11
6524036a
DM
12static 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
20extern char *build_path_component(struct device_node *dp);
23dc758e 21extern void of_console_init(void);
6524036a 22
23dc758e 23extern unsigned int prom_early_allocated;
6524036a 24
657f201d 25#endif /* __PROM_H */