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
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D32255

(cherry picked from commit 95edb10b47fc1a919cd1687aaf16be9e14456c89)

Details

Provenance
bzAuthored on Oct 1 2021, 10:51 AM
Reviewer
hselasky
Differential Revision
D32255: LinuxKPI: implement dma_sync_single_for_{cpu,device}
Parents
rGd21079b4b85d: LinuxKPI: 802.11: disable ic_headroom for the moment
Branches
Unknown
Tags
Unknown