diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-24 07:18:59 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-24 07:18:59 +0400 |
commit | 5a21d70dbd33d20713fb735ad9381711b0ae2c9b (patch) | |
tree | f3c6c65295f1356f62389fafad777d7be047aca5 /include/linux/pci.h | |
parent | a5390aa6dc3646b08bed421944cef0daf78ab994 (diff) | |
download | linux-5a21d70dbd33d20713fb735ad9381711b0ae2c9b.tar.xz |
PCI: add struct pci_host_bridge and a list of all bridges found
This adds a list of all PCI host bridges we find and a way to look up
the host bridge from a pci_dev.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index bcaa51ca7858..2c946b3bbf77 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -368,6 +368,11 @@ static inline int pci_channel_offline(struct pci_dev *pdev) return (pdev->error_state != pci_channel_io_normal); } +struct pci_host_bridge { + struct list_head list; + struct pci_bus *bus; /* root bus */ +}; + /* * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond * to P2P or CardBus bridge windows) go in a table. Additional ones (for |