summaryrefslogtreecommitdiff
path: root/include/iommu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/iommu.h')
-rw-r--r--include/iommu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/iommu.h b/include/iommu.h
index cf9719c5e91..b8ba0b8e707 100644
--- a/include/iommu.h
+++ b/include/iommu.h
@@ -5,6 +5,15 @@ struct udevice;
struct iommu_ops {
/**
+ * init() - Connect a device to it's IOMMU, called before probe()
+ * The iommu device can be fetched through dev->iommu
+ *
+ * @iommu_dev: IOMMU device
+ * @dev: Device to connect
+ * @return 0 if OK, -errno on error
+ */
+ int (*connect)(struct udevice *dev);
+ /**
* map() - map DMA memory
*
* @dev: device for which to map DMA memory