Linux 3.9-rc4
[linux-2.6/cjktty.git] / include / linux / of_iommu.h
blob51a560f34bca7bea0caf0f7dc446d31a6da268c7
1 #ifndef __OF_IOMMU_H
2 #define __OF_IOMMU_H
4 #ifdef CONFIG_OF_IOMMU
6 extern int of_get_dma_window(struct device_node *dn, const char *prefix,
7 int index, unsigned long *busno, dma_addr_t *addr,
8 size_t *size);
10 #else
12 static inline int of_get_dma_window(struct device_node *dn, const char *prefix,
13 int index, unsigned long *busno, dma_addr_t *addr,
14 size_t *size)
16 return -EINVAL;
19 #endif /* CONFIG_OF_IOMMU */
21 #endif /* __OF_IOMMU_H */