prom.h 507 B

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