Re: physical to virtual address
Jeff Garzik (jgarzik@pobox.com)
Thu, 14 Oct 1999 18:47:33 -0400
Andreas Bombe wrote:
>
> On Thu, Oct 14, 1999 at 01:08:51PM +0100, Jose Miguel Pereira Tavares wrote:
> > How can I translate a physical address to a virtual address?
> > I have allready look to io.h phys_to_virt, but I'm not sure that is
> > doing the right thing - a guess it's just for io address (bellow 1Mb I
> > believe).
>
> phys_to_virt is the right thing.
No, you most likely want to use ioremap. Just doing phys_to_virt
usually isn't enough.
Jeff
--
Custom driver development | Never worry about theory as long
Open source programming | as the machinery does what it's
| supposed to do. -- R. A. Heinlein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/