On Thu, 29 Jul 1999, Christophe Kumsta wrote:

> But if I try to get the physical address with the virtual address with:
> physical_address = virt_to_phys(Virtual_buffer) ;

virt_to_phys is not expected to work like this on remapped addresses.

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);
}

 
What you need is kvirt_to_phys function from kvmem.h from 
http://crds.chemie.unibas.ch/PCI-MIO-E/mbuff-0.6pre4.tar.gz

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