consistent_alloc() on PPC

2 messages, 2 authors, 2005-01-19 · open the first message on its own page

consistent_alloc() on PPC

From: Sachin P <hidden>
Date: 2005-01-19 11:53:17

Hi , 
I am facing some problems porting my drivers to the PPC platform . Am
currently using consistent_alloc() and consistent_free() to
allocate/free (non-cached) DMA ble memory.
Is there any function/patch/macro, equivalent to
phy_to_virt()/virt_to_phy() for memory returned by consistent_alloc()?

Regards
sachin

Re: consistent_alloc() on PPC

From: Christoph Hellwig <hch@lst.de>
Date: 2005-01-19 14:10:48

On Wed, Jan 19, 2005 at 05:23:17PM +0530, Sachin P wrote:
Hi , 
I am facing some problems porting my drivers to the PPC platform . Am
currently using consistent_alloc() and consistent_free() to
allocate/free (non-cached) DMA ble memory.
Is there any function/patch/macro, equivalent to
phy_to_virt()/virt_to_phy() for memory returned by consistent_alloc()?
Don't ever use concistant_alloc directly.  Always use
dma_alloc_coherent() which will give you both virtual and bus address.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help