diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 19:04:30 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 19:04:30 -0400 |
| commit | 4d17e8516a0b24240cd3f5d024b2ca10cb0b5208 (patch) | |
| tree | 0b9f48d5f107dfe289f66d3f83484cae326904d8 /include/linux | |
| parent | cfaf025112d3856637ff34a767ef785ef5cf2ca9 (diff) | |
| parent | 06aef8cec7563c40c7d7501d13ec1ed12f5e495b (diff) | |
Merge branch 'topic/yinghai-busn-alloc' into next
* topic/yinghai-busn-alloc: (33 commits)
PCI: hotplug: remove pci_do_scan_bus()
PCI: sgihp: use generic pci_hp_add_bridge()
PCI: ibmhp: use generic pci_hp_add_bridge()
PCI: cpqhp: use generic pci_hp_add_bridge()
PCI: shpchp: use generic pci_hp_add_bridge()
PCI: cpci_hotplug: use generic pci_hp_add_bridge()
PCI: pciehp: use generic pci_hp_add_bridge()
PCI: add generic pci_hp_add_bridge()
PCI: sgihp: register busn_res
PCI: ibmhp: register busn_res
PCI: cpqhp: register busn_res
PCI: shpchp: register busn_res
PCI: cpci_hotplug: register busn_res
PCI: insert busn_res for child bus
PCI: register busn_res for iov bus
tile/PCI: use pci_scan_root_bus instead pci_scan_bus
parisc/PCI: register busn_res for root buses
powerpc/PCI: register busn_res for root buses
sparc/PCI: register busn_res for root buses
ia64/PCI: register busn_res for root buses
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d8c379dba6ad..8c8b44d62105 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) | |||
| 368 | return (pdev->error_state != pci_channel_io_normal); | 368 | return (pdev->error_state != pci_channel_io_normal); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | extern struct resource busn_resource; | ||
| 372 | |||
| 371 | struct pci_host_bridge_window { | 373 | struct pci_host_bridge_window { |
| 372 | struct list_head list; | 374 | struct list_head list; |
| 373 | struct resource *res; /* host bridge aperture (CPU address) */ | 375 | struct resource *res; /* host bridge aperture (CPU address) */ |
| @@ -419,6 +421,7 @@ struct pci_bus { | |||
| 419 | struct list_head slots; /* list of slots on this bus */ | 421 | struct list_head slots; /* list of slots on this bus */ |
| 420 | struct resource *resource[PCI_BRIDGE_RESOURCE_NUM]; | 422 | struct resource *resource[PCI_BRIDGE_RESOURCE_NUM]; |
| 421 | struct list_head resources; /* address space routed to this bus */ | 423 | struct list_head resources; /* address space routed to this bus */ |
| 424 | struct resource busn_res; /* bus numbers routed to this bus */ | ||
| 422 | 425 | ||
| 423 | struct pci_ops *ops; /* configuration access functions */ | 426 | struct pci_ops *ops; /* configuration access functions */ |
| 424 | void *sysdata; /* hook for sys-specific extension */ | 427 | void *sysdata; /* hook for sys-specific extension */ |
| @@ -426,8 +429,6 @@ struct pci_bus { | |||
| 426 | 429 | ||
| 427 | unsigned char number; /* bus number */ | 430 | unsigned char number; /* bus number */ |
| 428 | unsigned char primary; /* number of primary bridge */ | 431 | unsigned char primary; /* number of primary bridge */ |
| 429 | unsigned char secondary; /* number of secondary bridge */ | ||
| 430 | unsigned char subordinate; /* max number of subordinate buses */ | ||
| 431 | unsigned char max_bus_speed; /* enum pci_bus_speed */ | 432 | unsigned char max_bus_speed; /* enum pci_bus_speed */ |
| 432 | unsigned char cur_bus_speed; /* enum pci_bus_speed */ | 433 | unsigned char cur_bus_speed; /* enum pci_bus_speed */ |
| 433 | 434 | ||
| @@ -668,6 +669,9 @@ struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata); | |||
| 668 | struct pci_bus *pci_create_root_bus(struct device *parent, int bus, | 669 | struct pci_bus *pci_create_root_bus(struct device *parent, int bus, |
| 669 | struct pci_ops *ops, void *sysdata, | 670 | struct pci_ops *ops, void *sysdata, |
| 670 | struct list_head *resources); | 671 | struct list_head *resources); |
| 672 | int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); | ||
| 673 | int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); | ||
| 674 | void pci_bus_release_busn_res(struct pci_bus *b); | ||
| 671 | struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, | 675 | struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, |
| 672 | struct pci_ops *ops, void *sysdata, | 676 | struct pci_ops *ops, void *sysdata, |
| 673 | struct list_head *resources); | 677 | struct list_head *resources); |
