Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-22 Thread Stelian Pop
[Sorry for the delay, I was quite busy those days and unable to test the patch...] Le mardi 19 septembre 2006 à 17:34 +0200, Jan Kiszka a écrit : Or maybe we should lower the API level a little bit, and let the user specify the physical address of the mapping instead of the virtual

Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-22 Thread Jan Kiszka
Stelian Pop wrote: [Sorry for the delay, I was quite busy those days and unable to test the patch...] Le mardi 19 septembre 2006 à 17:34 +0200, Jan Kiszka a écrit : Or maybe we should lower the API level a little bit, and let the user specify the physical address of the mapping instead of

Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-22 Thread Stelian Pop
Le vendredi 22 septembre 2006 à 10:58 +0200, Jan Kiszka a écrit : d) make a special rtdm_mmap_iomem_to_user() function... Also an option. Specifically, it wouldn't break the existing API... What about rtdm_iomap_to_user? Would you like to work out a patch in this direction? Here it

Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-22 Thread Jan Kiszka
Stelian Pop wrote: Le vendredi 22 septembre 2006 à 10:58 +0200, Jan Kiszka a écrit : d) make a special rtdm_mmap_iomem_to_user() function... Also an option. Specifically, it wouldn't break the existing API... What about rtdm_iomap_to_user? Would you like to work out a patch in this

Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-18 Thread Stelian Pop
Le vendredi 15 septembre 2006 à 18:40 +0200, Jan Kiszka a écrit : In case no one comes up with an easy, portable way to detect remapped memory as well: What about some flags the caller of rtdm_mmap_to_user has to pass, telling what kind of memory it is? Would simplify the RTDM part, and the

[Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-15 Thread Stelian Pop
Hi, I need to be able to map an IO memory buffer to userspace from a RTDM driver. rtdm_mmap_to_user() seems to do what I need, but it doesn't work. Its code thinks that all virtual addresses between VMALLOC_START and VMALLOC_END are obtained through vmalloc() and tries to call

Re: [Xenomai-core] [PATCH, RFC] Make ioremap'ed memory available through rtdm_mmap_to_user()

2006-09-15 Thread Jan Kiszka
Stelian Pop wrote: Hi, I need to be able to map an IO memory buffer to userspace from a RTDM driver. rtdm_mmap_to_user() seems to do what I need, but it doesn't work. Its code thinks that all virtual addresses between VMALLOC_START and VMALLOC_END are obtained through vmalloc() and tries