diff options
author | Mark A. Greer <mgreer@mvista.com> | 2007-04-27 22:48:24 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-30 03:02:05 +0200 |
commit | 8895ea483e144f8acca16adfff7c60a993e77b7d (patch) | |
tree | 66e22bad0ca4e2c1d6d57aa1db925deafc744bd9 /arch/powerpc/boot/ops.h | |
parent | [POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE (diff) | |
download | linux-8895ea483e144f8acca16adfff7c60a993e77b7d.tar.xz linux-8895ea483e144f8acca16adfff7c60a993e77b7d.zip |
[POWERPC] Add dt_xlate_addr() to bootwrapper
dt_xlate_reg() looks up the 'reg' property in the specified node
to get the address and size to translate. Add dt_xlate_addr()
which is passed in the address and size to translate.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r-- | arch/powerpc/boot/ops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index 20e87199f6a4..73bd47a3a079 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h @@ -82,8 +82,8 @@ int ns16550_console_init(void *devp, struct serial_console_data *scdp); void *simple_alloc_init(char *base, unsigned long heap_size, unsigned long granularity, unsigned long max_allocs); extern void flush_cache(void *, unsigned long); -int dt_xlate_reg(void *node, int res, unsigned long *addr, - unsigned long *size); +int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size); +int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr); static inline void *finddevice(const char *name) { |