[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <5721A0C7-2BC4-46E7-8A55-232A827828D4@gmail.com>
Date: Fri, 14 Jan 2011 10:51:23 +0000
From: Billy Rafferty <billy.rafferty@...il.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"hjk@...sjkoch.de" <hjk@...sjkoch.de>
Subject: Re: uio_pci_generic has no mapping?
Hi Michael,
Thanks for the help and the driver.
Cheers,
Billy
On 14 Jan 2011, at 10:12, "Michael S. Tsirkin" <mst@...hat.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists