blob: e4c68f7391c5c430613087054c45de516fe1cc6a [file] [log] [blame]
David Gibson2e601612007-06-13 14:52:54 +10001#ifndef _PPC_BOOT_OF_H_
2#define _PPC_BOOT_OF_H_
3
4typedef void *phandle;
5typedef void *ihandle;
6
7void of_init(void *promptr);
8int of_call_prom(const char *service, int nargs, int nret, ...);
9void *of_claim(unsigned long virt, unsigned long size, unsigned long align);
David Gibson08464712007-06-27 16:54:58 +100010void *of_vmlinux_alloc(unsigned long size);
David Gibson2e601612007-06-13 14:52:54 +100011void of_exit(void);
David Gibson08464712007-06-27 16:54:58 +100012void *of_finddevice(const char *name);
13int of_getprop(const void *phandle, const char *name, void *buf,
14 const int buflen);
15int of_setprop(const void *phandle, const char *name, const void *buf,
16 const int buflen);
David Gibson2e601612007-06-13 14:52:54 +100017
18/* Console functions */
19void of_console_init(void);
20
21#endif /* _PPC_BOOT_OF_H_ */