diff options
| author | Liviu Dudau <Liviu.Dudau@arm.com> | 2014-09-29 10:29:28 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-30 19:08:57 -0400 |
| commit | cbe4097f8ae699ebbdaf8c95ecab38d47e0bd5da (patch) | |
| tree | 3abf75a2058642b3296f997e95a2f32a96e99c20 /include | |
| parent | 41e5c0f81d3e676d671d96a0a1fafb27abfbd9d7 (diff) | |
of/pci: Add support for parsing PCI host bridge resources from DT
Provide a function to parse the PCI DT ranges that can be used to create a
pci_host_bridge structure together with its associated bus.
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
[make io_base parameter optional]
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Grant Likely <grant.likely@linaro.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/of_pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index 71062e9602f5..1fd207e7a847 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h | |||
| @@ -52,6 +52,12 @@ of_get_pci_domain_nr(struct device_node *node) | |||
| 52 | } | 52 | } |
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | #if defined(CONFIG_OF_ADDRESS) | ||
| 56 | int of_pci_get_host_bridge_resources(struct device_node *dev, | ||
| 57 | unsigned char busno, unsigned char bus_max, | ||
| 58 | struct list_head *resources, resource_size_t *io_base); | ||
| 59 | #endif | ||
| 60 | |||
| 55 | #if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI) | 61 | #if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI) |
| 56 | int of_pci_msi_chip_add(struct msi_chip *chip); | 62 | int of_pci_msi_chip_add(struct msi_chip *chip); |
| 57 | void of_pci_msi_chip_remove(struct msi_chip *chip); | 63 | void of_pci_msi_chip_remove(struct msi_chip *chip); |
