aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-02-23 22:18:59 -0500
committerBjorn Helgaas <bhelgaas@google.com>2012-02-23 22:18:59 -0500
commit5a21d70dbd33d20713fb735ad9381711b0ae2c9b (patch)
treef3c6c65295f1356f62389fafad777d7be047aca5 /include/linux/pci.h
parenta5390aa6dc3646b08bed421944cef0daf78ab994 (diff)
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.h5
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)
368 return (pdev->error_state != pci_channel_io_normal); 368 return (pdev->error_state != pci_channel_io_normal);
369} 369}
370 370
371struct pci_host_bridge {
372 struct list_head list;
373 struct pci_bus *bus; /* root bus */
374};
375
371/* 376/*
372 * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond 377 * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond
373 * to P2P or CardBus bridge windows) go in a table. Additional ones (for 378 * to P2P or CardBus bridge windows) go in a table. Additional ones (for