Using DMA in a char device
I'm a experienced Windows device driver writer (sorry) but now I'm writting my first Linux driver.
It's a char device that should handle DMA transfers in his read/write operations.
The problem I have now is, that all DMA calls like
needs a pointer to "struct device" (dma_map_single(struct device *dev, ....))
Because I registered my device with register_chrdev_region(..) and cdev_add(...) my device representation uses type "struct cdev" but no "struct device"
Is there someting I must add during device initialization or is there a way to get a "struct device" from "struct cdev" ?
Thanks in advance