PCI: Add ability to mmap legacy_io on some platforms
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Oct 2008 09:49:32 +0000 (19:49 +1000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 20 Oct 2008 18:01:46 +0000 (11:01 -0700)
commitf19aeb1f3638b7bb4ca21eb361f004fac2bfe259
tree2990881affb22ba426149e8d4c317fe9df9992c7
parentf393d9b130423a7a47c751b26df07ceaa5dc76a9
PCI: Add ability to mmap legacy_io on some platforms

This adds the ability to mmap legacy IO space to the legacy_io files
in sysfs on platforms that support it. This will allow to clean up
X to use this instead of /dev/mem for legacy IO accesses such as
those performed by Int10.

While at it I moved pci_create/remove_legacy_files() to pci-sysfs.c
where I think they belong, thus making more things statis in there
and cleaned up some spurrious prototypes in the ia64 pci.h file

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/ia64/include/asm/pci.h
arch/ia64/pci/pci.c
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
drivers/pci/probe.c