diff options
Diffstat (limited to 'include/iommu.h')
-rw-r--r-- | include/iommu.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/iommu.h b/include/iommu.h new file mode 100644 index 00000000000..6c46adf449e --- /dev/null +++ b/include/iommu.h @@ -0,0 +1,16 @@ +#ifndef _IOMMU_H +#define _IOMMU_H + +struct udevice; + +#if (CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)) && \ + CONFIG_IS_ENABLED(IOMMU) +int dev_iommu_enable(struct udevice *dev); +#else +static inline int dev_iommu_enable(struct udevice *dev) +{ + return 0; +} +#endif + +#endif |