Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __OF_IOMMU_H
0003 #define __OF_IOMMU_H
0004 
0005 struct device;
0006 struct device_node;
0007 struct iommu_ops;
0008 
0009 #ifdef CONFIG_OF_IOMMU
0010 
0011 extern const struct iommu_ops *of_iommu_configure(struct device *dev,
0012                     struct device_node *master_np,
0013                     const u32 *id);
0014 
0015 #else
0016 
0017 static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
0018                      struct device_node *master_np,
0019                      const u32 *id)
0020 {
0021     return NULL;
0022 }
0023 
0024 #endif  /* CONFIG_OF_IOMMU */
0025 
0026 #endif /* __OF_IOMMU_H */