From: "Michael S. Tsirkin" <mst@redhat.com>
To: Billy Rafferty <billy.rafferty@gmail.com>
Cc: linux-kernel@vger.kernel.org, hjk@hansjkoch.de
Subject: Re: uio_pci_generic has no mapping?
Date: Fri, 14 Jan 2011 12:12:46 +0200 [thread overview]
Message-ID: <20110114101246.GA1158@redhat.com> (raw)
In-Reply-To: <AANLkTi=bDV52-Fc22amAEsxofL7gRC=oaU+AXgUnuRt7@mail.gmail.com>
On Fri, Jan 14, 2011 at 09:52:45AM +0000, Billy Rafferty wrote:
> Hi there,
>
> I was hoping that someone might be be able to help me out using the
> uio_pci_generic driver.
>
> To gain access to the memory in the card I try to do an mmap but it
> returns an error.
>
> I was wondering if the mapping of the PCI memory regions is automatic?
> I am not seeing /sys/class/uio/uio0/maps
>
> Do I have to do something to get these to appear?
>
> I would appreciate any help or pointers that you can give.
>
> Regards,
>
> Billy
mmap the pci resource through
/sys/class/uio/uio0/device/resourceX
The list of resources is in
/sys/class/uio/uio0/device/resource
--
MST
next prev parent reply other threads:[~2011-01-14 10:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 9:52 uio_pci_generic has no mapping? Billy Rafferty
2011-01-14 10:12 ` Michael S. Tsirkin [this message]
2011-01-14 10:51 ` Billy Rafferty
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=20110114101246.GA1158@redhat.com \
--to=mst@redhat.com \
--cc=billy.rafferty@gmail.com \
--cc=hjk@hansjkoch.de \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox