summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/io-unit.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-25 22:47:20 -0700
committerDavid S. Miller <davem@davemloft.net>2008-08-29 02:13:11 -0700
commite003934876e75f96f1445565d8c9084c07943253 (patch)
treeef44d634c4c1c98248bf3976a9ab0fa7231fd393 /arch/sparc/include/asm/io-unit.h
parent334ae614772b1147435dce9be3911f9040dff0d9 (diff)
downloadblackbird-op-linux-e003934876e75f96f1445565d8c9084c07943253.tar.gz
blackbird-op-linux-e003934876e75f96f1445565d8c9084c07943253.zip
sparc32: Make IOMMU and IO-UNIT init work with device nodes.
And stick the iommu archdata pointer into the generic OF device tree of_device struct as well. We still have to pass the sbus_bus object down into the routines so that the SBUS bus objects get the iommu cookies set properly. After drivers get converted to being pure OF drivers, that can go away. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/io-unit.h')
-rw-r--r--arch/sparc/include/asm/io-unit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/io-unit.h b/arch/sparc/include/asm/io-unit.h
index 96823b47fd45..5df63ef95cf2 100644
--- a/arch/sparc/include/asm/io-unit.h
+++ b/arch/sparc/include/asm/io-unit.h
@@ -59,4 +59,6 @@ extern __u32 iounit_map_dma_init(struct sbus_bus *, int);
#define iounit_map_dma_finish(sbus, addr, len) mmu_release_scsi_one(addr, len, sbus)
extern __u32 iounit_map_dma_page(__u32, void *, struct sbus_bus *);
+extern void iounit_init(struct sbus_bus *sbus);
+
#endif /* !(_SPARC_IO_UNIT_H) */
OpenPOWER on IntegriCloud