From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Guenter Ebermann <guenter.ebermann@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] migration scenario to xenomai
Date: Sat, 07 Aug 2010 12:36:20 +0200 [thread overview]
Message-ID: <4C5D3724.1000908@domain.hid> (raw)
In-Reply-To: <1DDE5D7F-58F5-4919-A4B4-5FCAD385E679@domain.hid>
Guenter Ebermann wrote:
> Hi Gilles,
>
> Am 07.08.2010 um 09:46 schrieb Gilles Chanteperdrix:
>> You can access hardware registers in user-space by mmaping the memory
>> mapped ones with /dev/mem, or using iopl/ioperm and in[lwb]/out[lwb] for
>> the old x86 I/O registers.
>
> Ok, thank you very much. I will look into using /dev/mem (we dont need x86 I/O
> - we use powerpc arch).
>
>> However, if this can help for a first order port to Xenomai,
>> implementing an RTDM driver later is better on the long run. By limiting
>> the interface between the application and low-level code to a well
>> defined interface, it will make it possible to use different
>> applications with the same drivers, or use different hardware with the
>> same application at will, things that are often hard when the low-level
>> code is mixed with the application code.
>
> The xenomai RTDM API is made solely for kernel space, if i understood the docs
> correctly?
>
> Yeah, I understand your point with generic interface and device driver
> separation. And I really like the way this happens under linux/xenomai. I am
> also willing to write new drivers which are usable by a broader public using
> these design principles. But the communication stack I am gona use (AUTOSAR
> FlexRay stack) does not follow them. AUTOSAR (www.autosar.org) specs defines
> the Interfaces and layers of the whole communcation system for cars. It does
> not involve kernel/userspace separation, but it also does not mix the low-level
> code with application code. Low level code is only implemented in the device
> drivers (CAN, LIN, FlexRay), but the interface to the upper level stack is not
> generic (as in linux with device drivers) - it is different for each kind of
> lower layer device (CAN, LIN, FlexRay) to gain the best performance from each
> of them.
Well, it looks to me like you can implement the interface between driver
and user-space with standard posix interface (especially ioctl), and
then implement the AUTOSAR interfaces as a user-space library relying on
this posix interface.
--
Gilles.
next prev parent reply other threads:[~2010-08-07 10:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 21:42 [Xenomai-help] migration scenario to xenomai Guenter Ebermann
2010-08-06 21:51 ` Thomas Lockhart
2010-08-07 9:28 ` Guenter Ebermann
2010-08-07 23:17 ` Wolfgang Denk
2010-08-07 7:46 ` Gilles Chanteperdrix
2010-08-07 10:13 ` Guenter Ebermann
2010-08-07 10:36 ` Gilles Chanteperdrix [this message]
[not found] ` <B6A5952D-4182-4D39-B28E-0D9BAE2872C4@domain.hid>
2010-08-07 11:02 ` Gilles Chanteperdrix
2010-08-07 11:36 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C5D3724.1000908@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=guenter.ebermann@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.