prom.h 635 B

12345678910111213141516171819202122232425262728
  1. #ifndef __PROM_H
  2. #define __PROM_H
  3. #include <linux/spinlock.h>
  4. #include <asm/prom.h>
  5. extern struct device_node *allnodes; /* temporary while merging */
  6. extern rwlock_t devtree_lock; /* temporary while merging */
  7. extern void * prom_early_alloc(unsigned long size);
  8. extern void irq_trans_init(struct device_node *dp);
  9. extern unsigned int prom_unique_id;
  10. static inline int is_root_node(const struct device_node *dp)
  11. {
  12. if (!dp)
  13. return 0;
  14. return (dp->parent == NULL);
  15. }
  16. extern char *build_path_component(struct device_node *dp);
  17. extern void of_console_init(void);
  18. extern unsigned int prom_early_allocated;
  19. #endif /* __PROM_H */