From: Jan Kiszka <jan.kiszka@domain.hid>
To: Perrine Martignoni <perrmart@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] RTDM mmap and DMA
Date: Tue, 18 Dec 2007 10:29:25 +0100 [thread overview]
Message-ID: <476792F5.6030108@domain.hid> (raw)
In-Reply-To: <7289437c0712140324s41dd3255u9534c606bc510ec7@domain.hid>
Perrine Martignoni wrote:
> Hi,
>
> Currently, I write an RTDM module and I would like to do DMA and mmap to
> perform transfers who have hard constraints.
> I would like to know if there is an example in a driver who would help me to
> do this.
There is code using the related rtdm_mmap_to_user service, but it is
unpublished. So let me sketch to basic patter:
1. Define some IOCTL that allocate the DMA area statically and maps it
to the requesting user's address space with rtdm_mmap_to_user.
2. Register pieces of the DMA buffer with the hardware and let it
perform the transfer
3. Signal the transfer completion to the user (who may be waiting on it
in some other IOCTL)
4. The user signals via an IOCTL (may be the same as in 3.) that he's
done with some piece of the buffer so that it can be reused with the
hardware.
5. Goto 2.
HTH,
Jan
next prev parent reply other threads:[~2007-12-18 9:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-14 11:24 [Xenomai-help] RTDM mmap and DMA Perrine Martignoni
2007-12-18 9:21 ` Stéphane ANCELOT
2007-12-18 9:29 ` Jan Kiszka [this message]
2007-12-18 10:10 ` Gilles Chanteperdrix
2007-12-18 10:16 ` Perrine Martignoni
2007-12-18 10:18 ` Gilles Chanteperdrix
2007-12-18 10:12 ` Perrine Martignoni
2007-12-18 12:47 ` Jan Kiszka
2007-12-18 13:20 ` Gilles Chanteperdrix
2007-12-18 14:11 ` Perrine Martignoni
2007-12-18 14:22 ` Jan Kiszka
2007-12-18 14:41 ` Perrine Martignoni
-- strict thread matches above, loose matches on Subject: below --
2007-12-14 13:59 Fillod Stephane
2007-12-14 15:50 ` Perrine Martignoni
2007-12-23 13:09 ` Gilles Chanteperdrix
2007-12-26 23:37 ` Gilles Chanteperdrix
2007-12-17 14:40 Fillod Stephane
2007-12-18 17:40 Fillod Stephane
2007-12-18 17:55 ` Gilles Chanteperdrix
2007-12-27 15:39 Fillod Stephane
2007-12-27 15:43 ` Gilles Chanteperdrix
2007-12-28 21:59 ` Gilles Chanteperdrix
2008-01-03 18:40 Fillod Stephane
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=476792F5.6030108@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=perrmart@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.