Skip to contentSkip to conversation

pcibios_find_device

Xenomai-help Ramon 2 participants 2 messages Jun 15, 2010

lore
Share & tools
lore

Ramon

author
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Ramon

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.

Signature · 1 line
					    Gilles.