4 #include <linux/device.h>
5 #include <linux/iommu.h>
10 extern int of_get_dma_window(struct device_node *dn, const char *prefix,
11 int index, unsigned long *busno, dma_addr_t *addr,
14 extern const struct iommu_ops *of_iommu_configure(struct device *dev,
15 struct device_node *master_np);
19 static inline int of_get_dma_window(struct device_node *dn, const char *prefix,
20 int index, unsigned long *busno, dma_addr_t *addr,
26 static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
27 struct device_node *master_np)
32 #endif /* CONFIG_OF_IOMMU */
34 extern struct of_device_id __iommu_of_table;
36 typedef int (*of_iommu_init_fn)(struct device_node *);
38 #define IOMMU_OF_DECLARE(name, compat, fn) \
39 _OF_DECLARE(iommu, name, compat, fn, of_iommu_init_fn)
41 #endif /* __OF_IOMMU_H */