Re: Mapping virtual addresses to physical | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
>On Wed, Jul 02, 2008 at 09:42:26PM +0100, Alan Casey wrote: >> I have used code similar to the devmem2.c example at >> www.simtec.co.uk/appnotes/AN0014/ to map physical >> addresses to virtual addresses (i.e. user space pointers) >> but am just wondering how do you do the reverse - i.e. >> map virtual addresses to physical addresses in a user >> space program without writing a device driver?? > >What kind of interface to this functionality are you expecting? What >use case would such an interface have? I need to get the virtual address of a file on a Linux filesystem or a memory buffer and convert it to a physical address for the purposes of programming a custom DMA Controller (on an FPGA) with source read (+destination write) addresses. I dont have any experience of writing Linux Device Drivers and am just wondering if it's possible to do this in a userspace program. Regards, Alan. ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]