> > i have this doubt regarding the addresses returned by > > ioremap. > > i mapped my devices's registers using ioremap. again when i try to > > retrieve the physical address from the virtual address got from ioremap > > using __pa(va) i see that the physical address is not the same which i > > gave to ioremap function !! ioremap doesnt give "kernel linear address" but gives "kernel virtual address". It just sets up page tables for this. So you cant use __pa or virt_to_phys. -- Bora SAHIN -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/