diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-05-17 18:51:12 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 15:42:23 -0600 |
commit | 67cdc827286366acb6c60c821013c1185ee00b36 (patch) | |
tree | 4d485a56df676726a40f4b9913a9f5362f2c1f2a | |
parent | 4d99f524234c2e772eea68ad019ec9c805991f23 (diff) | |
download | op-kernel-dev-67cdc827286366acb6c60c821013c1185ee00b36.zip op-kernel-dev-67cdc827286366acb6c60c821013c1185ee00b36.tar.gz |
PCI: add default busn_resource
We need to put into the resources list for legacy system.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/probe.c | 7 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 6258f6f..68e75cb 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -16,6 +16,13 @@ #define CARDBUS_LATENCY_TIMER 176 /* secondary latency timer */ #define CARDBUS_RESERVE_BUSNR 3 +struct resource busn_resource = { + .name = "PCI busn", + .start = 0, + .end = 255, + .flags = IORESOURCE_BUS, +}; + /* Ugh. Need to stop exporting this to modules. */ LIST_HEAD(pci_root_buses); EXPORT_SYMBOL(pci_root_buses); diff --git a/include/linux/pci.h b/include/linux/pci.h index c4df570..8c8b44d 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -368,6 +368,8 @@ static inline int pci_channel_offline(struct pci_dev *pdev) return (pdev->error_state != pci_channel_io_normal); } +extern struct resource busn_resource; + struct pci_host_bridge_window { struct list_head list; struct resource *res; /* host bridge aperture (CPU address) */ |