All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM driver hints
@ 2007-07-29 20:16 juanba romance
  2007-07-30 10:41 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: juanba romance @ 2007-07-29 20:16 UTC (permalink / raw)
  To: xenomai

Hello all, i am re-writing a old linux driver which i did myself some
time ago, cause i am in charge to provide a RT system framework. This
is one of the first steps so i have followed the RTDM model to do the
stuff.
Now i also have enough time to change its ugly capabilities/defects
but i am a little stuck right now..

I would like to improve my previous design fully buffering the
incoming user data flow on write method so a input FIFO it's planned.
The FIFO will be emptied using a rt-task created from the "open"
procedure and signalled from the "write" method before the user flow
exit. The point is:
where the FIFO handler references should be defined ?

I have take a look to the serial driver 16550 and my code is really
biased by its data device definition strategy ( obviously this is my
first RTDM monster ;-) and i need some guide ), instead of my
proposal, its design empty the TX FIFO from the IRQ service stuff
where the user context was passed as argument at the "open" call, so
all the parts are softly linked..

I would prefer to add the above program capability to avoid rewrite as
much as possible the current ISR symbol.
but i don't know the beast strategy to be applied to overcome the .

I have pass the "context" field dev_private area pointer to the
rt_task "by hand" but its value is really weird. Should this kind of
information be defined globally trough the "static" stuff and pass
this argument to the rt_task_init symbol

Any hints, advices.. ?
Thanks in advance

PD: Sorry about the brick..


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-30 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 20:16 [Xenomai-help] RTDM driver hints juanba romance
2007-07-30 10:41 ` Jan Kiszka
2007-07-30 13:02   ` juanba romance
2007-07-30 13:34     ` Jan Kiszka

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.