powerpc/boot: Fix compile warning in 64bit
[deliverable/linux.git] / arch / powerpc / boot / of.h
CommitLineData
2e601613
DG
1#ifndef _PPC_BOOT_OF_H_
2#define _PPC_BOOT_OF_H_
3
4typedef void *phandle;
64130109 5typedef u32 ihandle;
2e601613
DG
6
7void of_init(void *promptr);
8int of_call_prom(const char *service, int nargs, int nret, ...);
034e55e6
CLG
9unsigned int of_claim(unsigned long virt, unsigned long size,
10 unsigned long align);
08464712 11void *of_vmlinux_alloc(unsigned long size);
2e601613 12void of_exit(void);
08464712
DG
13void *of_finddevice(const char *name);
14int of_getprop(const void *phandle, const char *name, void *buf,
15 const int buflen);
16int of_setprop(const void *phandle, const char *name, const void *buf,
17 const int buflen);
2e601613
DG
18
19/* Console functions */
20void of_console_init(void);
21
fed23ed7
CLG
22typedef 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_ */
This page took 2.191552 seconds and 5 git commands to generate.