On 04/22/2013 03:10 PM, Victor Hiairrassary wrote:

> Hello all,
> 
> This is my first post on this mailing list. I am really new with 
> xenomai, only
> few month ago.
> 
> Currently we have a real-time application using xenomai which interacts with
> hardware directly by mmaping /dev/mem.


This is wrong. The "abstraction layer" used by an application should be
the usual driver interface open/read/write/ioctl and mmap if there are
high volumes of data to exchange with the application. Access to the
registers should be confined to the driver implementation.

This way, in order to simulate the real hardware you only have to
implement another driver with the same interface (but with an
implementation not using registers). And when you decide to use another
hardware with a completely different registers interface, you do not
have to emulate the first device registers using the second one, you
simply implement another driver with the same interface.

This is the way, the interface between Linux drivers and applications is
done, and the way it can be done with Xenomai RTDM skin.


-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to