of.h 643 B

12345678910111213141516171819202122
  1. #ifndef _PPC_BOOT_OF_H_
  2. #define _PPC_BOOT_OF_H_
  3. typedef void *phandle;
  4. typedef void *ihandle;
  5. void of_init(void *promptr);
  6. int of_call_prom(const char *service, int nargs, int nret, ...);
  7. void *of_claim(unsigned long virt, unsigned long size, unsigned long align);
  8. void *of_vmlinux_alloc(unsigned long size);
  9. void of_exit(void);
  10. void *of_finddevice(const char *name);
  11. int of_getprop(const void *phandle, const char *name, void *buf,
  12. const int buflen);
  13. int of_setprop(const void *phandle, const char *name, const void *buf,
  14. const int buflen);
  15. /* Console functions */
  16. void of_console_init(void);
  17. #endif /* _PPC_BOOT_OF_H_ */