<div dir="ltr">Hi Ulka,<div><br></div><div>Generally, the PCI configuration details are supplied by the PCI Card manufactures where they can explain all those details which you asked. So, try to get the PCI User Manual for the PCI card that you are working. In that user manual, you find all the information.</div>
<div><br></div><div>Regarding the DMA, we need to start by setting one of the bits in DMA registers. This also explained in the PCI user manual.</div><div><br></div><div>Do you still need any other information please let me know as I worked on couple of projects which are based on PCI cards.</div>
<div><br></div><div>Regards,</div><div>Srinivas.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 5:53 PM, Ulka Vaze <span dir="ltr">&lt;<a href="mailto:ulka.vaze@l2it.com" target="_blank">ulka.vaze@l2it.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
   In PCI configuration space there are 6 registers BAR0-5 which can<br>
hold the ioaddress or memory address used by card.<br>
However my question is - how will we know which BAR register contain<br>
ioaddress  and which contain memory ? and How many of them contain the<br>
addresses. I mean shall we start reading from bar0 to 5 all to find it<br>
?<br>
If card  has 3 ports and one memory region  will it be in bar0 or bar1 or bar2 ?<br>
<br>
Second is on PCI card we set it as bus master for DMA  in probe<br>
function and also allocates buffer. So when is DMA  actually initiated<br>
by it ?<br>
<br>
Please can anybody clarify.<br>
<br>
Thanks,<br>
-Ulka<br>
<br>
<br>
<br>
<br>
--<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div>