diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-12-20 00:33:10 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-12-20 00:33:10 +0000 |
commit | 91416fb2687574cb4322a40e2f238affffcf0536 (patch) | |
tree | 25aa78cf699f4beb5681bc0e1e056803a5395bd5 /sys/powerpc/include | |
parent | 69d6a6aafc193ffead7999305f22849b438b5782 (diff) | |
download | src-91416fb2687574cb4322a40e2f238affffcf0536.tar.gz src-91416fb2687574cb4322a40e2f238affffcf0536.zip |
Modularize the Open Firmware client interface to allow run-time switching
of OFW access semantics, in order to allow future support for real-mode
OF access and flattened device frees. OF client interface modules are
implemented using KOBJ, in a similar way to the PPC PMAP modules.
Because we need Open Firmware to be available before mutexes can be used on
sparc64, changes are also included to allow KOBJ to be used very early in
the boot process by only using the mutex once we know it has been initialized.
Reviewed by: marius, grehan
Notes
Notes:
svn path=/head/; revision=186347
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/ofw_machdep.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/powerpc/include/ofw_machdep.h b/sys/powerpc/include/ofw_machdep.h index a4b601e5499e..1dd2027d077f 100644 --- a/sys/powerpc/include/ofw_machdep.h +++ b/sys/powerpc/include/ofw_machdep.h @@ -28,9 +28,18 @@ #ifndef _MACHINE_OFW_MACHDEP_H_ #define _MACHINE_OFW_MACHDEP_H_ +#include <sys/cdefs.h> +#include <sys/types.h> +#include <sys/rman.h> #include <sys/bus.h> +#include <dev/ofw/openfirm.h> + +typedef uint32_t cell_t; int OF_decode_addr(phandle_t, int, bus_space_tag_t *, bus_space_handle_t *); void OF_getetheraddr(device_t dev, u_char *addr); +void OF_initial_setup(void *fdt_ptr, void *junk, int (*openfirm)(void *)); +boolean_t OF_bootstrap(void); + #endif /* _MACHINE_OFW_MACHDEP_H_ */ |