Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Arch specific extensions to struct device
0004  */
0005 #ifndef ASMARM_DEVICE_H
0006 #define ASMARM_DEVICE_H
0007 
0008 struct dev_archdata {
0009 #ifdef CONFIG_ARM_DMA_USE_IOMMU
0010     struct dma_iommu_mapping    *mapping;
0011 #endif
0012     unsigned int dma_coherent:1;
0013     unsigned int dma_ops_setup:1;
0014 };
0015 
0016 struct omap_device;
0017 
0018 struct pdev_archdata {
0019 #ifdef CONFIG_ARCH_OMAP
0020     struct omap_device *od;
0021 #endif
0022 };
0023 
0024 #ifdef CONFIG_ARM_DMA_USE_IOMMU
0025 #define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
0026 #else
0027 #define to_dma_iommu_mapping(dev) NULL
0028 #endif
0029 
0030 #endif