Skip to main content

Module mapper

Module mapper 

Source
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.