pcibios_find_device
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
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.