summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/machdep.h
diff options
context:
space:
mode:
authorJohannes Berg2007-05-03 14:28:32 +0200
committerPaul Mackerras2007-05-07 12:31:14 +0200
commit7e11580b362fc64693de7ad5c11fbf3d1d9d0e50 (patch)
tree8f1c12a24bec21ce5a5912f6b75d58c1ffc1ddd0 /include/asm-powerpc/machdep.h
parent[POWERPC] Rename device_is_compatible to of_device_is_compatible (diff)
downloadkernel-qcow2-linux-7e11580b362fc64693de7ad5c11fbf3d1d9d0e50.tar.gz
kernel-qcow2-linux-7e11580b362fc64693de7ad5c11fbf3d1d9d0e50.tar.xz
kernel-qcow2-linux-7e11580b362fc64693de7ad5c11fbf3d1d9d0e50.zip
[POWERPC] DART iommu suspend
This implements save and restore hooks for IOMMUs and implements it the DART iommu. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/machdep.h')
-rw-r--r--include/asm-powerpc/machdep.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h
index bbd17d0e170d..6fdabd6dfb3e 100644
--- a/include/asm-powerpc/machdep.h
+++ b/include/asm-powerpc/machdep.h
@@ -91,6 +91,11 @@ struct machdep_calls {
void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
unsigned long flags);
void (*iounmap)(volatile void __iomem *token);
+
+#ifdef CONFIG_PM
+ void (*iommu_save)(void);
+ void (*iommu_restore)(void);
+#endif
#endif /* CONFIG_PPC64 */
int (*probe)(void);