Re: uio_pci_generic has no mapping?

From: Michael S. Tsirkin
Date: Fri Jan 14 2011 - 05:13:32 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/