> > > How can i do this, can i use ioremap/iounmap function in my driver?
> >
> > Yes, these are the correct functions to use in your device driver.

Just looking in arcnet driver shows that phys_to_virt is used like:

union ArcPacket *arcpacket = (union ArcPacket *) phys_to_virt(dev->mem_start
+ recbuf * 512);

saddr = arcpacket->hardheader.source;


dev->mem_start is usually around 0xd0000. ioremap/iounmap are probably used
rather for PCI memory (high addresses).

--
Tomek

-- [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