On Sat, 4 Apr 2015, Jean-Baka Domelevo Entfellner wrote:
Another question: how to use the DMA for this BCM2835? What is the corresponding kernel interface in NetBSD? In the Broadcom documentation(http://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripher als.pdf), I see that the "PWM DMA is mapped to DMA channel 5". What does it mean and how to use that?
DMA controller interface is defined in sys/arch/arm/broadcom/bcm2835_dmac.hThe only user in the tree currently is bcm2835_emmc.c. That should give you an idea on how to use it.