]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide a template for busdma code for RISC-V.
authorbr <br@FreeBSD.org>
Tue, 7 May 2019 13:41:43 +0000 (13:41 +0000)
committerbr <br@FreeBSD.org>
Tue, 7 May 2019 13:41:43 +0000 (13:41 +0000)
commit64cb3b9636858172b70076288c80e9f0a8907bd1
tree0e79da0dd66c251744fa6bfa8c0d20afd5ddb02e
parent4b1a9bdef53ef8997ec798e79dc5959e24dba96f
Provide a template for busdma code for RISC-V.

RISC-V ISA specifies no cache management instructions so leave cache
operations in cpufunc.h as no-op for now.

Note some new hardware comes with their own memory-mapped cache
management controller.

Tested on HiFive Unleashed board with cgem(4).

Reviewed by: markj
Obtained from: arm64
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D20126
sys/conf/files.riscv
sys/riscv/include/bus_dma.h
sys/riscv/include/bus_dma_impl.h [new file with mode: 0644]
sys/riscv/include/cpufunc.h
sys/riscv/riscv/busdma_bounce.c [new file with mode: 0644]
sys/riscv/riscv/busdma_machdep.c
sys/riscv/riscv/machdep.c