diff options
author | ian <ian@FreeBSD.org> | 2015-12-21 18:07:32 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-12-21 18:07:32 +0000 |
commit | f2c27d05283dc9a5c359331976911732b48ec7b6 (patch) | |
tree | d71ce8ea746db2371af40f1155e7fe871d285138 /sys/powerpc/include | |
parent | 5e0b3f1167b3511ce001af9ce6d5ffec64fbef24 (diff) | |
download | FreeBSD-src-f2c27d05283dc9a5c359331976911732b48ec7b6.zip FreeBSD-src-f2c27d05283dc9a5c359331976911732b48ec7b6.tar.gz |
Implement OF_decode_addr() for arm. Move most of powerpc's implementation
into a new function that other platforms can share.
This creates a new ofw_reg_to_paddr() function (in a new ofw_subr.c file)
that contains most of the existing ppc implementation, mostly unchanged.
The ppc code now calls the new MI code from the MD code, then creates a
ppc-specific bus_space mapping from the results. The new arm implementation
does the same in an arm-specific way.
This also moves the declaration of OF_decode_addr() from ofw_machdep.h to
openfirm.h, except on sparc64 which uses a different function signature.
This will help all FDT platforms to set up early console access using
OF_decode_addr().
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/ofw_machdep.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/powerpc/include/ofw_machdep.h b/sys/powerpc/include/ofw_machdep.h index 0ee75f4..8376e1a 100644 --- a/sys/powerpc/include/ofw_machdep.h +++ b/sys/powerpc/include/ofw_machdep.h @@ -37,7 +37,6 @@ 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 *)); |