Hi,
I need small help. I am new to writing linux PCI device driver.
I want to write device driver which will do reading and writing into DPRAM using DMA transfer whenever ISR called.
My Doubts:
1. How the memory mapping will be done b/w DPRAM and PCI card ?
For example, I am taking two addresses of DPRAM is 0x100 and 0x500.
From 0x100 and 0x300, i want to do write operation.
From 0x500 and 0x700, i want to do read operation.
pci_alloc_consistent() will allocate and do mapping at some addr in DPRAM.
2. How read/write operation will be done on DPRAM using DMA transfer ?
Can I use writeb/readb for DMA transfer ? Can I pass virual addr obtained from
pci_alloc_consistent ?
Pls help me to resolve this issue.
Regards,
Munees.
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.