Merge tag 'soc-fixes-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-block.git] / include / linux / of_iommu.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
4e0ee78f
HD
2#ifndef __OF_IOMMU_H
3#define __OF_IOMMU_H
4
bb6bfd79
RH
5struct device;
6struct device_node;
7struct iommu_ops;
1cd076bf 8
4e0ee78f
HD
9#ifdef CONFIG_OF_IOMMU
10
53c92d79 11extern const struct iommu_ops *of_iommu_configure(struct device *dev,
a081bd4a
LP
12 struct device_node *master_np,
13 const u32 *id);
1cd076bf 14
4e0ee78f
HD
15#else
16
53c92d79 17static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
a081bd4a
LP
18 struct device_node *master_np,
19 const u32 *id)
7eba1d51
WD
20{
21 return NULL;
22}
1cd076bf 23
4e0ee78f
HD
24#endif /* CONFIG_OF_IOMMU */
25
26#endif /* __OF_IOMMU_H */