Tomasz Motylewski wrote:
> If you look as asm/io.h you will see it is really very simple macro:
>
> #define __io_phys(x) ((unsigned long)(x) & ~PAGE_OFFSET)
> /*
> * Change virtual addresses to physical addresses and vv.
> * These are pretty trivial
> */
> extern inline unsigned long virt_to_phys(volatile void * address)
> {
> return __io_phys(address);
> }
>
>
Yes you're right ;
phys_to_virt add an offset of 0xc0000000
and virt_to_phys substract this offset.
It explains that the IO are remapped to the third Go
of address space.
And I thought that ioremap respect that but I'm
now thinking that I don't remap really IOs but Memory ...
Thanks.
--
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/