Files
linux/arch/alpha/kernel
Ivan Kokshaysky 10a0ef39fb PCI/alpha: pci sysfs resources
This closes http://bugzilla.kernel.org/show_bug.cgi?id=10893
which is a showstopper for X development on alpha.

The generic HAVE_PCI_MMAP code (drivers/pci-sysfs.c) is not
very useful since we have to deal with three different types
of MMIO address spaces: sparse and dense mappings for old
ev4/ev5 machines and "normal" 1:1 MMIO space (bwx) for ev56 and
later.
Also "write combine" mappings are meaningless on alpha - roughly
speaking, alpha does write combining, IO reordering and other
optimizations by default, unless user splits IO accesses
with memory barriers.

I think the cleanest way to deal with resource files on alpha
is to convert the default no-op pci_create_resource_files() and
pci_remove_resource_files() for !HAVE_PCI_MMAP case into __weak
functions and override them with alpha specific ones.

Another alpha hook is needed for "legacy_" resource files
to handle sparse addressing (pci_adjust_legacy_attr).

With the "standard" resourceN files on ev56/ev6 libpciaccess
works "out of the box". Handling of resourceN_sparse/resourceN_dense
files on older machines obviously requires some userland work.

Sparse/dense stuff has been tested on sx164 (pca56/pyxis, normally
uses bwx IO) with the kernel hacked into "cia compatible" mode.

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-03-19 19:29:36 -07:00
..
2009-01-15 16:39:40 -08:00
2008-04-17 10:42:34 -04:00
2009-01-15 16:39:40 -08:00
2009-01-29 18:04:44 -08:00
2007-12-17 19:28:16 -08:00
2007-12-17 19:28:16 -08:00
2007-12-17 19:28:16 -08:00
2007-07-26 11:11:57 -07:00
2008-12-31 18:07:42 -05:00
2006-10-11 11:17:07 -07:00
2009-01-01 10:12:26 +10:30
2009-01-15 16:39:40 -08:00
2009-03-19 19:29:36 -07:00
2008-04-28 08:58:27 -07:00
2009-01-29 18:04:44 -08:00
2009-01-29 18:04:44 -08:00
2009-03-19 19:29:36 -07:00
2009-01-15 16:39:40 -08:00
2007-10-16 09:43:03 -07:00
2009-01-29 18:04:44 -08:00
2009-01-15 16:39:40 -08:00
2009-01-15 16:39:40 -08:00
2009-01-29 18:04:44 -08:00
2009-01-15 16:39:40 -08:00
2008-11-30 10:03:35 -08:00