2008-12-05 07:12:20 +03:00
|
|
|
#ifndef __PROM_H
|
|
|
|
#define __PROM_H
|
|
|
|
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
#include <asm/prom.h>
|
|
|
|
|
|
|
|
extern struct device_node *allnodes; /* temporary while merging */
|
|
|
|
extern rwlock_t devtree_lock; /* temporary while merging */
|
|
|
|
|
2008-12-05 11:40:43 +03:00
|
|
|
extern void * prom_early_alloc(unsigned long size);
|
2008-12-05 11:43:03 +03:00
|
|
|
extern void irq_trans_init(struct device_node *dp);
|
|
|
|
|
2008-12-05 11:50:22 +03:00
|
|
|
extern unsigned int prom_unique_id;
|
|
|
|
|
2008-12-05 12:21:41 +03:00
|
|
|
static inline int is_root_node(const struct device_node *dp)
|
|
|
|
{
|
|
|
|
if (!dp)
|
|
|
|
return 0;
|
2008-12-05 12:00:46 +03:00
|
|
|
|
2008-12-05 12:21:41 +03:00
|
|
|
return (dp->parent == NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern char *build_path_component(struct device_node *dp);
|
2008-12-06 05:16:48 +03:00
|
|
|
extern void of_console_init(void);
|
|
|
|
extern void of_fill_in_cpu_data(void);
|
2008-12-05 12:21:41 +03:00
|
|
|
|
2008-12-06 05:16:48 +03:00
|
|
|
extern unsigned int prom_early_allocated;
|
2008-12-05 12:21:41 +03:00
|
|
|
|
2008-12-05 07:12:20 +03:00
|
|
|
#endif /* __PROM_H */
|