]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: implement dma_sync_single_for_*, apply to (un)map single/sg
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 1 Oct 2021 10:51:50 +0000 (10:51 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 17 Feb 2022 13:39:15 +0000 (13:39 +0000)
commit95edb10b47fc1a919cd1687aaf16be9e14456c89
treeb93be77f86459029dba29c866e3e9e3a33101f68
parent7d3fc84b2d3eb18b675200dbf7732ef41eb79fe2
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
sys/compat/linuxkpi/common/include/linux/dma-mapping.h
sys/compat/linuxkpi/common/src/linux_pci.c