Commit | Line | Data |
---|---|---|
2e601613 DG |
1 | #ifndef _PPC_BOOT_OF_H_ |
2 | #define _PPC_BOOT_OF_H_ | |
3 | ||
4 | typedef void *phandle; | |
64130109 | 5 | typedef u32 ihandle; |
2e601613 DG |
6 | |
7 | void of_init(void *promptr); | |
8 | int of_call_prom(const char *service, int nargs, int nret, ...); | |
034e55e6 CLG |
9 | unsigned int of_claim(unsigned long virt, unsigned long size, |
10 | unsigned long align); | |
08464712 | 11 | void *of_vmlinux_alloc(unsigned long size); |
2e601613 | 12 | void of_exit(void); |
08464712 DG |
13 | void *of_finddevice(const char *name); |
14 | int of_getprop(const void *phandle, const char *name, void *buf, | |
15 | const int buflen); | |
16 | int of_setprop(const void *phandle, const char *name, const void *buf, | |
17 | const int buflen); | |
2e601613 DG |
18 | |
19 | /* Console functions */ | |
20 | void of_console_init(void); | |
21 | ||
fed23ed7 CLG |
22 | typedef u32 __be32; |
23 | ||
926e6940 CLG |
24 | #define cpu_to_be32(x) (x) |
25 | #define be32_to_cpu(x) (x) | |
26 | ||
9cc36bb0 CLG |
27 | #define PROM_ERROR (-1u) |
28 | ||
2e601613 | 29 | #endif /* _PPC_BOOT_OF_H_ */ |