diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-06-13 04:52:54 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-14 12:30:15 (GMT) |
commit | 2e6016133755eb3cc44e8efab92573d23ed75888 (patch) | |
tree | 94442dc3acd51c31222282bb15d6946692448279 /arch/powerpc/boot/of.h | |
parent | a0ae9c7c05b969cbaffb0371f8698c54465b4c96 (diff) | |
download | linux-2e6016133755eb3cc44e8efab92573d23ed75888.tar.xz |
[POWERPC] Split low-level OF-related bootloader code into separate files
Currently, all OF-related code in the bootloader is contained in of.c.
of.c also provides the platform specific things necessary to boot on
an OF platform.
However, there are platforms (such as PReP) which can include an OF
implementation, but are not bootable as pure OF systems. For use by
such platforms, this patch splits out the low-level parts of the OF
code (call_prom() and various wrappers thereof) into a new oflib.c
file. In addition, the code related to bootwrapper console output via
OF are moved to a new ofconsole.c file. Both these files are included
in the wrapper.a library where they can be used by both full-OF and
partial OF platforms.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/of.h')
-rw-r--r-- | arch/powerpc/boot/of.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/boot/of.h b/arch/powerpc/boot/of.h new file mode 100644 index 0000000..169d311 --- /dev/null +++ b/arch/powerpc/boot/of.h @@ -0,0 +1,15 @@ +#ifndef _PPC_BOOT_OF_H_ +#define _PPC_BOOT_OF_H_ + +typedef void *phandle; +typedef void *ihandle; + +void of_init(void *promptr); +int of_call_prom(const char *service, int nargs, int nret, ...); +void *of_claim(unsigned long virt, unsigned long size, unsigned long align); +void of_exit(void); + +/* Console functions */ +void of_console_init(void); + +#endif /* _PPC_BOOT_OF_H_ */ |