]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/include/asm/device.h
Merge remote-tracking branch 'regulator/fix/max77802' into regulator-linus
[mirror_ubuntu-artful-kernel.git] / arch / arm / include / asm / device.h
CommitLineData
c6dbaef2
BH
1/*
2 * Arch specific extensions to struct device
3 *
4 * This file is released under the GPLv2
5 */
ab2c2152
RK
6#ifndef ASMARM_DEVICE_H
7#define ASMARM_DEVICE_H
c6dbaef2 8
ab2c2152
RK
9struct dev_archdata {
10#ifdef CONFIG_DMABOUNCE
11 struct dmabounce_device_info *dmabounce;
12#endif
cfb470b3
OBC
13#ifdef CONFIG_IOMMU_API
14 void *iommu; /* private IOMMU data */
15#endif
4ce63fcd
MS
16#ifdef CONFIG_ARM_DMA_USE_IOMMU
17 struct dma_iommu_mapping *mapping;
e0586326
SS
18#endif
19#ifdef CONFIG_XEN
20 const struct dma_map_ops *dev_dma_ops;
4ce63fcd 21#endif
a93a121a
LP
22 unsigned int dma_coherent:1;
23 unsigned int dma_ops_setup:1;
ab2c2152
RK
24};
25
fbe01f51
KH
26struct omap_device;
27
d7aacadd 28struct pdev_archdata {
fbe01f51
KH
29#ifdef CONFIG_ARCH_OMAP
30 struct omap_device *od;
31#endif
d7aacadd
MD
32};
33
fab112a3
HD
34#ifdef CONFIG_ARM_DMA_USE_IOMMU
35#define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
36#else
37#define to_dma_iommu_mapping(dev) NULL
38#endif
39
ab2c2152 40#endif