What about ioremap()?

You might want to check in the Documentation directory in the linux
kernel source for IO-mapping.txt and pci.txt.  They contain some good
pointers that might save you some hassles. 

Good luck,

Rick
---
Richard J. Wood -- [EMAIL PROTECTED]

Rick Welch wrote:
> 
> > hi all,
> >     I know that it is not really a rt-linux question , even if it is for
> > a rt-driver ,
> > but I'm porting a driver for a PCI card for rt-linux 2.2.0-RTL0D with
> > the new pci functions.
> > And I'm stopped by a function :
> >     I used to remap base_address of the PCI card with the vremap
> > function :
> >         virtual_address = vremap(physical_address,length) ;
> > but this function has disapear and I can't find an similar function !!!!
> 
> At least in the later 2.1.XX kernels you'd use:
> 
>            virtual_address = __va(physical_address);
> 
> I suspect it's the same in the 2.2.X kernels as well
> 
> -Rick
> 
> --- [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/
--- [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