⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

identity_map_dma

Function identity_map_dma 

Source
pub fn identity_map_dma(phys_addr: u64, size: usize) -> KernelResult<u64>
Expand description

Create an identity mapping for a DMA region.

In identity mapping mode, DMA addresses equal physical addresses. This is the simplest IOMMU configuration and is used as a first step before full page-table-based translation is implemented.

Returns the DMA address (equal to phys_addr in identity mapping mode).