The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* uio_pci_generic has no mapping?
@ 2011-01-14  9:52 Billy Rafferty
  2011-01-14 10:12 ` Michael S. Tsirkin
  0 siblings, 1 reply; 3+ messages in thread
From: Billy Rafferty @ 2011-01-14  9:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: mst, hjk

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uio_pci_generic has no mapping?
  2011-01-14  9:52 uio_pci_generic has no mapping? Billy Rafferty
@ 2011-01-14 10:12 ` Michael S. Tsirkin
  2011-01-14 10:51   ` Billy Rafferty
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2011-01-14 10:12 UTC (permalink / raw)
  To: Billy Rafferty; +Cc: linux-kernel, hjk

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uio_pci_generic has no mapping?
  2011-01-14 10:12 ` Michael S. Tsirkin
@ 2011-01-14 10:51   ` Billy Rafferty
  0 siblings, 0 replies; 3+ messages in thread
From: Billy Rafferty @ 2011-01-14 10:51 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: linux-kernel@vger.kernel.org, hjk@hansjkoch.de

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-14 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14  9:52 uio_pci_generic has no mapping? Billy Rafferty
2011-01-14 10:12 ` Michael S. Tsirkin
2011-01-14 10:51   ` Billy Rafferty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox