summaryrefslogtreecommitdiff
path: root/include/iommu.h
blob: 6c46adf449ee54fc3ed75a26408fbe6ab973e666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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