aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/prom.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-05-18 04:05:15 -0400
committerPaul Mackerras <paulus@samba.org>2006-05-19 01:02:21 -0400
commitd4ad66faecc4dd9f3db14e0b013741a6f867b089 (patch)
tree002f68be37820100103202270f07e5d6a6fb840f /include/asm-powerpc/prom.h
parent8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa (diff)
[PATCH] powerpc: Add of_parse_dma_window()
Add a function for generic parsing of dma-window properties (ie, ibm,dma-window and ibm,my-dma-window) of pci and virtual device nodes. This function will also be used by cell. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/prom.h')
-rw-r--r--include/asm-powerpc/prom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h
index 97ef1cd71a4d..c79d58ab7441 100644
--- a/include/asm-powerpc/prom.h
+++ b/include/asm-powerpc/prom.h
@@ -230,6 +230,12 @@ extern int of_address_to_resource(struct device_node *dev, int index,
230extern int of_pci_address_to_resource(struct device_node *dev, int bar, 230extern int of_pci_address_to_resource(struct device_node *dev, int bar,
231 struct resource *r); 231 struct resource *r);
232 232
233/* Parse the ibm,dma-window property of an OF node into the busno, phys and
234 * size parameters.
235 */
236void of_parse_dma_window(struct device_node *dn, unsigned char *dma_window_prop,
237 unsigned long *busno, unsigned long *phys, unsigned long *size);
238
233extern void kdump_move_device_tree(void); 239extern void kdump_move_device_tree(void);
234 240
235#endif /* __KERNEL__ */ 241#endif /* __KERNEL__ */