HomeFreeBSD

LinuxKPI: implement dma_sync_single_for_*, apply to (un)map single/sg

Description

LinuxKPI: implement dma_sync_single_for_*, apply to (un)map single/sg

Implement dma_sync_single_for_{cpu,device} translating the Linux
DMA_ flags to BUS_DMASYNC_ combinations. Make map_single/unmap_single*
functions call the respective sync function. Apply the same logic to
the scatter-gather list map/unmap functions.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D32255

Details

Provenance
bzAuthored on Oct 1 2021, 10:51 AM
Reviewer
hselasky
Differential Revision
D32255: LinuxKPI: implement dma_sync_single_for_{cpu,device}
Parents
rG7d3fc84b2d3e: pf tests: Test per-anchor tables
Branches
Unknown
Tags
Unknown