All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Hardware I/O from Userspace
@ 2013-10-16 16:06 Drasko DRASKOVIC
  2013-10-16 17:14 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Drasko DRASKOVIC @ 2013-10-16 16:06 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi all,
I would like to access to various peripheral and CPU regs of my FPGA
from userspace.

Is mmap of /dev/mem best way to it, or I should do it from kernelspace
via kernel module?

I am looking at  examples/common/hw_direct_io.c of Xenomai examples.
Can somebody explain me how Xenomai is used in this case, as I see
only standard pthread interface. Was this patched by Xenomai patches?
I do not see calls to RT tasks or some other Xenomai-related API.

I can see:
struct sched_param param;

printf("%s: %s %s\n", __FUNCTION__, __DATE__, __TIME__ );
param.__sched_priority = 99;
res = pthread_setschedparam(pthread_self(),  SCHED_FIFO, &param);

How these lines affect Xenomai?

Thanks and best regards,
Drasko


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

end of thread, other threads:[~2013-10-18 16:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 16:06 [Xenomai] Hardware I/O from Userspace Drasko DRASKOVIC
2013-10-16 17:14 ` Gilles Chanteperdrix
2013-10-17 14:57   ` Drasko DRASKOVIC
2013-10-17 15:00     ` Lennart Sorensen
2013-10-17 15:08       ` Drasko DRASKOVIC
2013-10-17 15:05     ` Drasko DRASKOVIC
2013-10-17 18:39     ` Gilles Chanteperdrix
2013-10-18 16:30       ` Drasko DRASKOVIC

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.