aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/ops.h
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2007-04-27 16:48:24 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-29 21:02:05 -0400
commit8895ea483e144f8acca16adfff7c60a993e77b7d (patch)
tree66e22bad0ca4e2c1d6d57aa1db925deafc744bd9 /arch/powerpc/boot/ops.h
parentd818d7ec8bb06c1bc10270962e28fb0cbd93b64a (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.h4
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);
82void *simple_alloc_init(char *base, unsigned long heap_size, 82void *simple_alloc_init(char *base, unsigned long heap_size,
83 unsigned long granularity, unsigned long max_allocs); 83 unsigned long granularity, unsigned long max_allocs);
84extern void flush_cache(void *, unsigned long); 84extern void flush_cache(void *, unsigned long);
85int dt_xlate_reg(void *node, int res, unsigned long *addr, 85int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size);
86 unsigned long *size); 86int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr);
87 87
88static inline void *finddevice(const char *name) 88static inline void *finddevice(const char *name)
89{ 89{