summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-05-18 03:51:11 +0200
committerBjorn Helgaas <bhelgaas@google.com>2012-06-13 23:42:21 +0200
commit92f02430934ca1c1e991a1ab3541880575042697 (patch)
tree03cf0dd66d4d9108f7ea54ebaf10eb2810b0c6b0
parentLinux 3.5-rc2 (diff)
downloadlinux-92f02430934ca1c1e991a1ab3541880575042697.tar.xz
linux-92f02430934ca1c1e991a1ab3541880575042697.zip
PCI: add busn_res in struct pci_bus
This adds a busn_res resource in struct pci_bus. This will replace the secondary/subordinate members and will be used to build a bus number resource tree to help with bus number allocation. [bhelgaas: changelog] CC: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index d8c379dba6ad..ba7c5cd314b7 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -419,6 +419,7 @@ struct pci_bus {
struct list_head slots; /* list of slots on this bus */
struct resource *resource[PCI_BRIDGE_RESOURCE_NUM];
struct list_head resources; /* address space routed to this bus */
+ struct resource busn_res; /* bus numbers routed to this bus */
struct pci_ops *ops; /* configuration access functions */
void *sysdata; /* hook for sys-specific extension */