/* * Arch specific extensions to struct device * * This file is released under the GPLv2 */ #ifndef ASMARM_DEVICE_H #define ASMARM_DEVICE_H struct dev_archdata { struct dma_map_ops *dma_ops; #ifdef [31mCONFIG_DMABOUNCE[0m struct dmabounce_device_info *dmabounce; #endif #ifdef [31mCONFIG_IOMMU_API[0m void *iommu; /* private IOMMU data */ #endif #ifdef [31mCONFIG_ARM_DMA_USE_IOMMU[0m struct dma_iommu_mapping *mapping; #endif bool dma_coherent; }; struct omap_device; struct pdev_archdata { #ifdef [31mCONFIG_ARCH_OMAP[0m struct omap_device *od; #endif }; #ifdef [31mCONFIG_ARM_DMA_USE_IOMMU[0m #define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping) #else #define to_dma_iommu_mapping(dev) NULL #endif #endif |