Thread (6 messages) flat view 6 messages, 3 authors, 2007-07-17

RE: Linuxppc-embedded Digest, Vol 35, Issue 33

From: Siva Prasad <hidden>
Date: 2007-07-16 16:00:46


It returns kernel virtual address. If you use this buffer space for DMA,
please use appropriate flags. You may use __pa(address) or
virt_to_phys() to convert virtual to physical.

- Siva


-----Original Message-----


Message: 3
Date: Mon, 16 Jul 2007 19:29:59 +0530
From: "suresh suresh" <redacted>
Subject: Kmalloc returns which address
To: linuxppc-embedded@ozlabs.org
Message-ID:
	[ref]
Content-Type: text/plain; charset=3D"iso-8859-1"

Hi,

I am porting MPC8280 driver from vxWorks to Linux.

I want know the address return by kmalloc function? is it physical
address
or kernel virtual address.

For Tx and Rx, hardware uses buffers, so I have to allocate buffers and
pass
the pointer to hardware. Can I pass the pointer returned kmalloc?  or  I
should convert it into physical address?

If it returns kernel virtual address, then how to convert into physical?

Thanks & Regards-
Suresh
-------------- next part --------------
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help