Linuxppc-embedded Digest, Vol 35, Issue 33
Siva Prasad
sprasad at bivio.net
Tue Jul 17 01:58:46 EST 2007
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" <sureshtang at gmail.com>
Subject: Kmalloc returns which address
To: linuxppc-embedded at ozlabs.org
Message-ID:
<e5eb93010707160659m6a7d0b02p623542739d28ab29 at mail.gmail.com>
Content-Type: text/plain; charset="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 --------------
More information about the Linuxppc-embedded
mailing list