From: Billy Rafferty <billy.rafferty@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"hjk@hansjkoch.de" <hjk@hansjkoch.de>
Subject: Re: uio_pci_generic has no mapping?
Date: Fri, 14 Jan 2011 10:51:23 +0000 [thread overview]
Message-ID: <5721A0C7-2BC4-46E7-8A55-232A827828D4@gmail.com> (raw)
In-Reply-To: <20110114101246.GA1158@redhat.com>
Hi Michael,
Thanks for the help and the driver.
Cheers,
Billy
On 14 Jan 2011, at 10:12, "Michael S. Tsirkin" <mst@redhat.com> wrote:
> 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
prev parent reply other threads:[~2011-01-14 10:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 9:52 Billy Rafferty
2011-01-14 10:12 ` Michael S. Tsirkin
2011-01-14 10:51 ` Billy Rafferty [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=5721A0C7-2BC4-46E7-8A55-232A827828D4@gmail.com \
--to=billy.rafferty@gmail.com \
--cc=hjk@hansjkoch.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
/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
all inboxes | Powered by JetHome®