]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/linux/of_iommu.h
nfs: don't atempt blocking locks on nfs reexports
[mirror_ubuntu-jammy-kernel.git] / include / linux / of_iommu.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __OF_IOMMU_H
3 #define __OF_IOMMU_H
4
5 struct device;
6 struct device_node;
7 struct iommu_ops;
8
9 #ifdef CONFIG_OF_IOMMU
10
11 extern const struct iommu_ops *of_iommu_configure(struct device *dev,
12 struct device_node *master_np,
13 const u32 *id);
14
15 #else
16
17 static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
18 struct device_node *master_np,
19 const u32 *id)
20 {
21 return NULL;
22 }
23
24 #endif /* CONFIG_OF_IOMMU */
25
26 #endif /* __OF_IOMMU_H */