]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Provide a DMA API implementation for RISC-V bare-metal systems
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Jul 2025 13:56:47 +0000 (14:56 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 9 Jul 2025 10:07:37 +0000 (11:07 +0100)
commit101ef74a6e7ed29af42f9d5432504b437e75374d
tree446dba9b7600314db3563d1f8ac1c54f231daea7
parent22de0c4edf2fe1cdbca5e22c52c86a2289d04816
[riscv] Provide a DMA API implementation for RISC-V bare-metal systems

Provide an implementation of dma_map() that performs cache clean or
invalidation as required, and an implementation of dma_alloc() that
returns virtual addresses within the coherent mapping of the 32-bit
physical address space.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/core/riscv_dma.c [new file with mode: 0644]
src/arch/riscv/core/zicbom.c
src/arch/riscv/include/bits/dma.h [new file with mode: 0644]
src/arch/riscv/include/ipxe/riscv_dma.h [new file with mode: 0644]
src/arch/riscv/include/ipxe/svpage.h
src/arch/riscv/include/ipxe/zicbom.h
src/config/defaults/sbi.h
src/include/bits/dma.h [new file with mode: 0644]
src/include/ipxe/dma.h