PCI: Add legacy_io/mem to all busses
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Nov 2008 03:38:53 +0000 (14:38 +1100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:25 +0000 (11:12 -0800)
commitd3a54014e2a94bd37b7dee5e76e03f7bc4fab49a
tree93a8d3d8e6826492e61e754629ba30f646528d5c
parent1ca887970a3971a22e4875b7c6ad5ae3ce49f61a
PCI: Add legacy_io/mem to all busses

Currently, only PHBs get the legacy_* files, which makes it tricky for
userland to get access to the legacy space.  This commit exposes them in
every bus, since even child buses may forward legacy cycles if
configured properly.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/bus.c