Hello,
We have a hardware device on the PCI bus, which we can set up to perform DMA transfers. Currently we are writing data to a dummy variable. It is very fast and desirable. Question: How can our driver obtain a physical address from the kernel virtual address so that the DMA device can write its set of data without fear of messing things up. We use "vremap" to map the PCI address of the PCI hardware to "kernel" space. Is there a way to get the physical address of a "kernel" address. Or is there a way to get the physical address of a "kalloc" memory chunk? Or do you all know a better way to let a DMA device know where to access memory? John Huggins VMELinux Project
|