template <typename VmoInfoType>
class DmaDescriptorBuilder
Defined at line 33 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
Maintains a list of physical memory regions to be used for DMA. Input buffers are pinned if
needed, and unpinned upon destruction.
Public Methods
void DmaDescriptorBuilder<VmoInfoType> (const fuchsia_hardware_sdmmc::wire::SdmmcReq & request, VmoStore & registered_vmos, uint64_t dma_boundary_alignment, zx::unowned_bti bti)
Defined at line 37 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
void ~DmaDescriptorBuilder<VmoInfoType> ()
Defined at line 44 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
size_t block_count ()
Defined at line 57 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
size_t descriptor_count ()
Defined at line 61 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
zx_status_t ProcessBuffer (const fuchsia_hardware_sdmmc::wire::SdmmcBufferRegion & buffer)
Appends the physical memory regions for this buffer to the end of the list.
Defined at line 169 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h
template <typename DescriptorType>
zx_status_t BuildDmaDescriptors (cpp20::span<DescriptorType> out_descriptors)
Builds DMA descriptors of the template type in the array provided.
Defined at line 116 of file ../../src/devices/block/drivers/sdhci/dma-descriptor-builder.h