1 #ifndef _PPC_BOOT_OF_H_
2 #define _PPC_BOOT_OF_H_
9 void of_init(void *promptr
);
10 int of_call_prom(const char *service
, int nargs
, int nret
, ...);
11 unsigned int of_claim(unsigned long virt
, unsigned long size
,
13 void *of_vmlinux_alloc(unsigned long size
);
15 void *of_finddevice(const char *name
);
16 int of_getprop(const void *phandle
, const char *name
, void *buf
,
18 int of_setprop(const void *phandle
, const char *name
, const void *buf
,
21 /* Console functions */
22 void of_console_init(void);
26 #ifdef __LITTLE_ENDIAN__
27 #define cpu_to_be32(x) swab32(x)
28 #define be32_to_cpu(x) swab32(x)
30 #define cpu_to_be32(x) (x)
31 #define be32_to_cpu(x) (x)
34 #define PROM_ERROR (-1u)
36 #endif /* _PPC_BOOT_OF_H_ */