Thanks....<br>
<br>
MPC8280 has internal memory space which contains Dualport(Dp) RAM. In
the DpRAM we allocate some tables and these has to store pointer of the
buffers which are allocated in external memory. Core will use this
pointer to access the buffers, basically these buffers are used for DMA.<br>
<br>
Using IMMR register we can get physical address of the internal memory.
Now can I store the address return by the kmalloc() function? or I
should convert it into physical?<br>
<br>
Please help me how to resove this address translation.<br>
<br>
<br>
Regards,<br>
Suresh<br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Scott Wood</b> &lt;<a href="mailto:scottwood@freescale.com">scottwood@freescale.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Siva Prasad wrote:<br>&gt; It returns kernel virtual address. If you use this buffer space for DMA,<br>&gt; please use appropriate flags. You may use __pa(address) or<br>&gt; virt_to_phys() to convert virtual to physical.
<br><br>No, you may not -- physical and DMA addresses are not always identical.<br>&nbsp;&nbsp;Use the DMA mapping API.<br><br>-Scott<br><br></blockquote></div><br>