]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refine the busdma template interface. Provide tools for filling in fields
authorScott Long <scottl@FreeBSD.org>
Mon, 14 Sep 2020 05:58:12 +0000 (05:58 +0000)
committerScott Long <scottl@FreeBSD.org>
Mon, 14 Sep 2020 05:58:12 +0000 (05:58 +0000)
commit74c781ed913dc866ec596e3a7875e5b0c76f7e22
tree1604f8bdd0adc7691f3a39cd1afac4f0583b8b82
parent7c9b0046d420a1b979961122ca4bd21efbb2978f
Refine the busdma template interface.  Provide tools for filling in fields
that can be extended, but also ensure compile-time type checking.  Refactor
common code out of arch-specific implementations.  Move the mpr and mps
drivers to this new API.  The template type remains visible to the consumer
so that it can be allocated on the stack, but should be considered opaque.
14 files changed:
sys/arm/arm/busdma_machdep.c
sys/arm64/arm64/busdma_machdep.c
sys/dev/mpr/mpr.c
sys/dev/mpr/mpr_pci.c
sys/dev/mpr/mpr_user.c
sys/dev/mps/mps.c
sys/dev/mps/mps_pci.c
sys/dev/mps/mps_user.c
sys/kern/subr_bus_dma.c
sys/mips/mips/busdma_machdep.c
sys/powerpc/powerpc/busdma_machdep.c
sys/riscv/riscv/busdma_machdep.c
sys/sys/bus_dma.h
sys/x86/x86/busdma_machdep.c