1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Arch specific extensions to struct device
5 #ifndef ASMARM_DEVICE_H
6 #define ASMARM_DEVICE_H
9 #ifdef CONFIG_ARM_DMA_USE_IOMMU
10 struct dma_iommu_mapping *mapping;
12 unsigned int dma_ops_setup:1;
17 struct pdev_archdata {
18 #ifdef CONFIG_ARCH_OMAP
19 struct omap_device *od;
23 #ifdef CONFIG_ARM_DMA_USE_IOMMU
24 #define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
26 #define to_dma_iommu_mapping(dev) NULL