opnsense-src/sys/dev/xdma
Ruslan Bukin 101869a8f0 o Implement a bounce buffer based on device reserved memory.
Grab device reserved physical memory regions from FDT using standard
  "memory-region" property and use vmem(9) to allocate buffers from it.
  The same vmem could be used by DMA engine drivers to allocate memory for
  DMA descriptors.
  This is required for platforms that provide uncached memory region
  reserved exclusively for DMA operations.
o Change sleepable sx(9) lock type to non-sleepable mutex(9) since
  network drivers usually hold mutex during DMA operations. So we don't
  take sleepable lock after non-sleepable.

Tested on U.S. Government Furnished Equipment (GFE) 64-bit RISC-V cores.

Sponsored by:	DARPA, AFRL
2019-05-08 15:22:27 +00:00
..
controller Eliminate kmem_alloc_contig()'s unused arena parameter. 2018-08-20 15:57:27 +00:00
xdma.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma.h o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_bank.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_bio.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_fdt_test.c Tune xDMA interface slightly: 2018-04-12 15:36:24 +00:00
xdma_if.m Tune xDMA interface slightly: 2018-04-12 15:36:24 +00:00
xdma_mbuf.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_queue.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_sg.c o Implement a bounce buffer based on device reserved memory. 2019-05-08 15:22:27 +00:00
xdma_sglist.c Don't include sys/bus_dma.h directly, use machine/bus.h instead. 2018-04-13 12:41:51 +00:00