From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: ramoncostacastello@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] pcibios_find_device
Date: Tue, 15 Jun 2010 18:39:27 +0200 [thread overview]
Message-ID: <4C17ACBF.2060705@domain.hid> (raw)
In-Reply-To: <4C17AA80.9000804@domain.hid>
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.
prev parent reply other threads:[~2010-06-15 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 16:29 [Xenomai-help] pcibios_find_device Ramon
2010-06-15 16:39 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C17ACBF.2060705@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=ramoncostacastello@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.