diff options
author | Matthew Wilcox <matthew@wil.cx> | 2009-12-13 08:11:32 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 19:15:17 -0500 |
commit | 3749c51ac6c1560aa1cb1520066bed84c6f8152a (patch) | |
tree | 3cbfb6a6d2df821e3e80ccce29ede8011b94246e /include/linux/pci.h | |
parent | 536c8cb49eccd4f753b4782e7e975ef87359cb44 (diff) |
PCI: Make current and maximum bus speeds part of the PCI core
Move the max_bus_speed and cur_bus_speed into the pci_bus. Expose the
values through the PCI slot driver instead of the hotplug slot driver.
Update all the hotplug drivers to use the pci_bus instead of their own
data structures.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d76a8a0b6b53..a446097a9f68 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -380,6 +380,8 @@ struct pci_bus { | |||
380 | unsigned char primary; /* number of primary bridge */ | 380 | unsigned char primary; /* number of primary bridge */ |
381 | unsigned char secondary; /* number of secondary bridge */ | 381 | unsigned char secondary; /* number of secondary bridge */ |
382 | unsigned char subordinate; /* max number of subordinate buses */ | 382 | unsigned char subordinate; /* max number of subordinate buses */ |
383 | unsigned char max_bus_speed; /* enum pci_bus_speed */ | ||
384 | unsigned char cur_bus_speed; /* enum pci_bus_speed */ | ||
383 | 385 | ||
384 | char name[48]; | 386 | char name[48]; |
385 | 387 | ||
@@ -610,6 +612,7 @@ struct pci_bus *pci_create_bus(struct device *parent, int bus, | |||
610 | struct pci_ops *ops, void *sysdata); | 612 | struct pci_ops *ops, void *sysdata); |
611 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, | 613 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, |
612 | int busnr); | 614 | int busnr); |
615 | void pcie_update_link_speed(struct pci_bus *bus, u16 link_status); | ||
613 | struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, | 616 | struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, |
614 | const char *name, | 617 | const char *name, |
615 | struct hotplug_slot *hotplug); | 618 | struct hotplug_slot *hotplug); |