diff options
Diffstat (limited to 'include/linux/of_iommu.h')
| -rw-r--r-- | include/linux/of_iommu.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/include/linux/of_iommu.h b/include/linux/of_iommu.h index 51a560f34bca..e61cbbe12dac 100644 --- a/include/linux/of_iommu.h +++ b/include/linux/of_iommu.h @@ -1,19 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __OF_IOMMU_H #define __OF_IOMMU_H +struct device; +struct device_node; +struct iommu_ops; + #ifdef CONFIG_OF_IOMMU -extern int of_get_dma_window(struct device_node *dn, const char *prefix, - int index, unsigned long *busno, dma_addr_t *addr, - size_t *size); +extern int of_iommu_configure(struct device *dev, struct device_node *master_np, + const u32 *id); + +extern void of_iommu_get_resv_regions(struct device *dev, + struct list_head *list); #else -static inline int of_get_dma_window(struct device_node *dn, const char *prefix, - int index, unsigned long *busno, dma_addr_t *addr, - size_t *size) +static inline int of_iommu_configure(struct device *dev, + struct device_node *master_np, + const u32 *id) +{ + return -ENODEV; +} + +static inline void of_iommu_get_resv_regions(struct device *dev, + struct list_head *list) { - return -EINVAL; } #endif /* CONFIG_OF_IOMMU */ |
