From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Victor Hiairrassary <victor.hiairrassary.ml@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] How to use rtdm_(io/m)map_to_user
Date: Wed, 24 Apr 2013 21:37:59 +0200 [thread overview]
Message-ID: <51783497.9040607@xenomai.org> (raw)
In-Reply-To: <51780A72.3080104@gmail.com>
On 04/24/2013 06:38 PM, Victor Hiairrassary wrote:
> On 04/23/2013 08:29 PM, Gilles Chanteperdrix wrote:
>>
>> The register access is almost certainly the wrong abstraction layer.
>> If you need writing to registers 2 to 13 starts a motor, then, there
>> should be an ioctl START_THE_MOTOR, which implementation in RTDM driver
>> writes to registers 2 to 13. In other words, without knowing what you do
>> with this FPGA there is no way to answer.
>>
>> Anyway, if the 1024 registers are 1024 parameters of the FPGA which you
>> need to configure individually, you can create an ioctl with a structure
>> where you pass the register number and the value.
>>
>>
> Really thanks for your answers ! We have some actions binded to registers :
> for example, read registers 5 return current speed, etc.
>
> So we will use an real-time device driver ! Do we need to call
> devm_request_and_ioremap()
> in driver initialization, like in linux device driver? i.e. is it
> allowed and recommended with rtdm?
Calling ioremap from an RTDM driver should not raise any problems.
--
Gilles.
prev parent reply other threads:[~2013-04-24 19:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 13:10 [Xenomai] How to use rtdm_(io/m)map_to_user Victor Hiairrassary
2013-04-23 11:25 ` Gilles Chanteperdrix
2013-04-23 12:50 ` Victor Hiairrassary
2013-04-23 18:29 ` Gilles Chanteperdrix
2013-04-24 16:38 ` Victor Hiairrassary
2013-04-24 19:37 ` Gilles Chanteperdrix [this message]
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=51783497.9040607@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=victor.hiairrassary.ml@gmail.com \
--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.