David Schleef wrote:
> with kmalloc, hence the 128k limit.  Yet another good reason not to use
> global variables in modules, since this means that it is more difficult to
> find their physical address.
> 
Hi all,

  About the physical address , have someone any idea with getting the
physical address
of a kmalloc'ed structure ? ( virt_to_phys() does not work ...)
  I tried to do that for an EtherPowerII netcard which use a TX-ring and
RX-ring with
bus-master access but I had to change my solution with a high part of
unused memory
physicaly remapped to give the physical address to the PCI netcard...

Lot of PCI chip (USB too for exemple ..)
now use the ring with bus-master access solution and it should be
fine to have a RT-API standard function which return the physical
address of such
buffer kmalloc'ed in order to realize drivers.

I use RTAI, but such function is not dependent of the RT layer used.

Have a happy new year !

--
Kumsta Christophe
<[EMAIL PROTECTED]>
Real-Time System developper
RT-Linux/RTAI ( Use the Source Luck !)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to