<div dir="ltr">Hi Everyone,<div style>  Can some one please help me with pci_alloc_consistent and how to use the buffer allocated by it ?.</div><div style><br></div><div style><br></div><div style>Thank you in Advance.</div>
<div style>Djay</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 10:08 AM, Dhananjay Maske <span dir="ltr">&lt;<a href="mailto:dhananjay.maske87@gmail.com" target="_blank">dhananjay.maske87@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Mar 28, 2013 at 1:14 AM, Dhananjay Maske <span dir="ltr">&lt;<a href="mailto:dhananjay.maske87@gmail.com" target="_blank">dhananjay.maske87@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div>     I am fairly New to Linux kernel Programming and i have few questions with respect to pci_alloc_consistent .</div>

<div><br></div><div>1) as we know pci_alloc_consistent allocates dma buffers which is visible to DMA controller as well as CPU.</div>
<div>    virt_add = pci_alloc_consistent(pdev, size, dma_addr_t bus_adrr);</div><div><br></div><div>here it will allocate a buffer and return its virtual address and corresponding bus address.</div><div>
<br></div><div>My question is do these two address ultimately point to similar location but from different perspectives ?.</div><div><br></div><div>2) After allocating these address, how do we proceed given that i have a ASIC register which has the dma_rx_desc_start address ?</div>


<div><br></div><div>3) Also does all the HW&#39;s which support dma have the descriptor data structures by provided by Vender or is there any specific format that dev has to be aware of for designing such descriptor for that particular driver ?</div>


</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>