]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
busdma: deduplicate _bus_dmamap_addseg() function
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 14 Feb 2024 17:01:15 +0000 (13:01 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Tue, 7 May 2024 16:02:57 +0000 (13:02 -0300)
commit560406982489cf067f586fcae87bbd31eafe9456
tree118940e6add820eb8aa00b4ae30e8b38ba835573
parentb24e353f9e58f6b5bcbd444a062c1c57cd8fc43d
busdma: deduplicate _bus_dmamap_addseg() function

It is functionally identical in all implementations, so move the
function to subr_busdma_bounce.c. The KASSERT present in the x86 version
is now enabled for all architectures. It should be universally
applicable.

Reviewed by: jhb
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45047
sys/arm/arm/busdma_machdep.c
sys/arm64/arm64/busdma_bounce.c
sys/kern/subr_busdma_bounce.c
sys/powerpc/powerpc/busdma_machdep.c
sys/riscv/riscv/busdma_bounce.c
sys/x86/x86/busdma_bounce.c