Hi,
I am writing PCI device driver in linux, where I need to do DMA operation.
While transferring data from memory to IO or IO to memory, only source address is specified in API call. How destination address will be specified ?
int dad_dma_prepare(int channel, int mode, unsigned int buf,
unsigned int count)
{
unsigned long flags;
flags = claim_dma_lock( );
disable_dma(channel);
clear_dma_ff(channel);
set_dma_mode(channel, mode);
set_dma_addr(channel, virt_to_bus(buf));
set_dma_count(channel, count);
enable_dma(channel);
return 0;
}
Please help me.
Thanks & Regards,
Munees.
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!