1 #ifndef _PPC_BOOT_OF_H_
2 #define _PPC_BOOT_OF_H_
7 void of_init(void *promptr);
8 int of_call_prom(const char *service, int nargs, int nret, ...);
9 void *of_claim(unsigned long virt, unsigned long size, unsigned long align);
10 void *of_vmlinux_alloc(unsigned long size);
12 void *of_finddevice(const char *name);
13 int of_getprop(const void *phandle, const char *name, void *buf,
15 int of_setprop(const void *phandle, const char *name, const void *buf,
18 /* Console functions */
19 void of_console_init(void);
23 #define cpu_to_be32(x) (x)
24 #define be32_to_cpu(x) (x)
26 #endif /* _PPC_BOOT_OF_H_ */