Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dma-mapping: Add macro to_dma_iommu_mapping()
@ 2013-01-24 13:16 Hiroshi Doyu
  2013-01-24 13:16 ` [PATCH 2/2] ARM: dma-mapping: Add arm_iommu_detach_device() Hiroshi Doyu
  0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi Doyu @ 2013-01-24 13:16 UTC (permalink / raw)
  To: linux-arm-kernel

This can be built without CONFIG_ARM_DMA_USE_IOMMU.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
---
 arch/arm/include/asm/device.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/include/asm/device.h b/arch/arm/include/asm/device.h
index 5191a83..6fbe514 100644
--- a/arch/arm/include/asm/device.h
+++ b/arch/arm/include/asm/device.h
@@ -33,4 +33,10 @@ struct pdev_archdata {
 #endif
 };
 
+#ifdef CONFIG_ARM_DMA_USE_IOMMU
+#define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
+#else
+#define to_dma_iommu_mapping(dev) NULL
+#endif
+
 #endif
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-24 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 13:16 [PATCH 1/2] ARM: dma-mapping: Add macro to_dma_iommu_mapping() Hiroshi Doyu
2013-01-24 13:16 ` [PATCH 2/2] ARM: dma-mapping: Add arm_iommu_detach_device() Hiroshi Doyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox