
On Sat, Jan 21, 2023 at 08:27:52PM +0100, Mark Kettenis wrote:
In order to support IOMMUs in non-bypass mode we need device ops to map and unmap DMA memory. The map operation enters a mapping for a region specified by CPU address and size into the translation table of the IOMMU and returns a DMA address suitable for programming the device to do DMA. The unmap operation removes this mapping from the translation table of the IOMMU.
Signed-off-by: Mark Kettenis kettenis@openbsd.org
For the series, applied to u-boot/master, thanks!
Note that in this specific patch I also added the following comment to include/dm/device.h: * @iommu: IOMMU device associated with this device as the doc targets were noting that this was not described. If my description here is wrong / insufficient, please follow-up with a correction.