prom.h 704 B

1234567891011121314151617181920212223242526272829303132
  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. #ifdef CONFIG_SPARC64
  9. extern void irq_trans_init(struct device_node *dp);
  10. #endif
  11. extern unsigned int prom_unique_id;
  12. static inline int is_root_node(const struct device_node *dp)
  13. {
  14. if (!dp)
  15. return 0;
  16. return (dp->parent == NULL);
  17. }
  18. extern char *build_path_component(struct device_node *dp);
  19. extern void of_console_init(void);
  20. extern void of_fill_in_cpu_data(void);
  21. extern unsigned int prom_early_allocated;
  22. #endif /* __PROM_H */