PCI: Allow read/write access to sysfs I/O port resources
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 19 Jul 2010 15:45:34 +0000 (09:45 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:32:08 +0000 (09:32 -0700)
commit8633328be242677fdedc42052838dd0608e7f342
tree20b16af605298a1d05973d7ec2d0a479412ed3e6
parent2491762cfb475dbdfa3db11ebea6de49f58b7fac
PCI: Allow read/write access to sysfs I/O port resources

PCI sysfs resource files currently only allow mmap'ing.  On x86 this
works fine for memory backed BARs, but doesn't work at all for I/O
port backed BARs.  Add read/write to I/O port PCI sysfs resource
files to allow userspace access to these device regions.

Acked-by: Chris Wright <chrisw@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/filesystems/sysfs-pci.txt
drivers/pci/pci-sysfs.c