diff options
author | Mark A. Greer <mgreer@mvista.com> | 2007-04-28 06:48:24 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-30 11:02:05 +1000 |
commit | 8895ea483e144f8acca16adfff7c60a993e77b7d (patch) | |
tree | 66e22bad0ca4e2c1d6d57aa1db925deafc744bd9 /arch/powerpc/boot/ops.h | |
parent | d818d7ec8bb06c1bc10270962e28fb0cbd93b64a (diff) |
[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 20e87199f6a..73bd47a3a07 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) { |