I’m trying to understand the steps involved with streaming dma on my am335x. I have done this before on a pci based system so I have some experience.
What I don't understand is what to set the struct device * dev argument to be in the following system call..
dma_addr_t dma_map_single (struct device * dev, void * cpu_addr, size_t size, enum dma_data_direction dir);
also required in dma_set_coherent_mask(), dma_alloc_coherent(), dma_sync_single_for_cpu() etc..
On the pci system I just called pci_find_device() with the required attributes and the equivalent pci_dev structure was filled in. Does anyone know how it works
on this system.
Thanks,
Adrian H
 
				 
		 
					 
                           
				