2 * Arch specific extensions to struct device
4 * This file is released under the GPLv2
6 #ifndef ASMARM_DEVICE_H
7 #define ASMARM_DEVICE_H
10 #ifdef CONFIG_DMABOUNCE
11 struct dmabounce_device_info *dmabounce;
13 #ifdef CONFIG_IOMMU_API
14 void *iommu; /* private IOMMU data */
16 #ifdef CONFIG_ARM_DMA_USE_IOMMU
17 struct dma_iommu_mapping *mapping;
20 const struct dma_map_ops *dev_dma_ops;
27 struct pdev_archdata {
28 #ifdef CONFIG_ARCH_OMAP
29 struct omap_device *od;
33 #ifdef CONFIG_ARM_DMA_USE_IOMMU
34 #define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
36 #define to_dma_iommu_mapping(dev) NULL