All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] pcibios_find_device
@ 2010-06-15 16:29 Ramon
  2010-06-15 16:39 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Ramon @ 2010-06-15 16:29 UTC (permalink / raw)
  To: xenomai

Hi,

I'm porting an old practice environment in RTLinux to Xenomai.

In that code I use commands like "pcibios_find_device" to obtain the 
addresses used by a PCI AD/DA board
(we access to this device at a register level  using outb commands).

In the old rtlinux environment my code was executed in kernel mode and I 
could access "pcibios_...."  commands easily. Is it possible
to use these commands in user space mode (using xenomai) ?

Thank you
Ramon


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

* Re: [Xenomai-help] pcibios_find_device
  2010-06-15 16:29 [Xenomai-help] pcibios_find_device Ramon
@ 2010-06-15 16:39 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2010-06-15 16:39 UTC (permalink / raw)
  To: ramoncostacastello; +Cc: xenomai

Ramon wrote:
> Hi,
> 
> I'm porting an old practice environment in RTLinux to Xenomai.
> 
> In that code I use commands like "pcibios_find_device" to obtain the 
> addresses used by a PCI AD/DA board
> (we access to this device at a register level  using outb commands).
> 
> In the old rtlinux environment my code was executed in kernel mode and I 
> could access "pcibios_...."  commands easily. Is it possible
> to use these commands in user space mode (using xenomai) ?

Not directly, but you may use libpci:
http://mj.ucw.cz/pciutils.html

Note however that you may run into other issues if you intend to use
hardware directly in user-space. It is probably a better idea to use
RTDM to write a driver in kernel-space.

-- 
					    Gilles.


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

end of thread, other threads:[~2010-06-15 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15 16:29 [Xenomai-help] pcibios_find_device Ramon
2010-06-15 16:39 ` Gilles Chanteperdrix

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.