Expand description
Per-device DMA address translation.
Drivers keep working with physical addresses for CPU access, but program
DmaMapper::translate() results into hardware. When IOMMU translation is
inactive the mapper is an identity function, so the same code path is
used at boot and after activation.
Re-exportsยง
use alloc::sync::Arc;๐use crate::hardware::iommu;๐use crate::hardware::iommu::DmaProt;๐use crate::hardware::iommu::Domain;๐use crate::hardware::iommu::FaultPolicy;๐use crate::hardware::iommu::Sbdf;๐
Structsยง
- DmaMapper
- Physical <-> device address translator bound to one PCI function.