summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorMark Kettenis <[email protected]>2023-01-21 20:27:55 +0100
committerTom Rini <[email protected]>2023-01-27 14:47:58 -0500
commitba1efb3d2494e8ceb0ff405642f44a955f8d8e1b (patch)
tree9785b311bfffb082a65d4ec99248e940a7a77ada /doc/develop
parent862b4a0f32ae395dac147542c3336ae8a0c47d69 (diff)
usb: xhci: Implement DMA mapping
An XHCI controller that sits behind an IOMMU needs to map and unmap its memory buffers to do DMA. Implement this by inroducing new xhci_dma_map() and xhci_dma_unmap() helper functions. The xhci_dma_map() function replaces the existing xhci_virt_to_bus() function in the sense that it returns the bus address in the case of simple address translation in the absence of an IOMMU. The xhci_bus_to_virt() function is eliminated by storing the CPU address of the allocated scratchpad memory in struct xhci_ctrl. Signed-off-by: Mark Kettenis <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions