]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/dev/mpr/mpr_user.c
Refine the busdma template interface. Provide tools for filling in fields
authorscottl <scottl@FreeBSD.org>
Mon, 14 Sep 2020 05:58:12 +0000 (05:58 +0000)
committerscottl <scottl@FreeBSD.org>
Mon, 14 Sep 2020 05:58:12 +0000 (05:58 +0000)
commitc9d5bb55c0271ae672779416f8bb4d35914db7bf
tree1604f8bdd0adc7691f3a39cd1afac4f0583b8b82
parent51f4174607e9bb966e569d3ad4e25c9a54e90953
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