diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2011-10-28 18:25:35 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-01-06 15:10:50 -0500 |
commit | 45ca9e9730c5acdb482dd95799fd8ac834481897 (patch) | |
tree | b73836ea44c0b3537ededd0c86653edfcfabb5c3 /include/linux | |
parent | afd24ece5c76af87f6fc477f2747b83a764f161c (diff) |
PCI: add helpers for building PCI bus resource lists
We'd like to supply a list of resources when we create a new PCI bus,
e.g., the root bus under a PCI host bridge. These are helpers for
constructing that list.
These are exported because the plan is to replace this exported interface:
pci_scan_bus_parented()
with this one:
pci_add_resource(resources, ...)
pci_scan_root_bus(..., resources)
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 4c16a5788998..9daa79901122 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -917,6 +917,8 @@ int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *); | |||
917 | void pci_release_selected_regions(struct pci_dev *, int); | 917 | void pci_release_selected_regions(struct pci_dev *, int); |
918 | 918 | ||
919 | /* drivers/pci/bus.c */ | 919 | /* drivers/pci/bus.c */ |
920 | void pci_add_resource(struct list_head *resources, struct resource *res); | ||
921 | void pci_free_resource_list(struct list_head *resources); | ||
920 | void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, unsigned int flags); | 922 | void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, unsigned int flags); |
921 | struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n); | 923 | struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n); |
922 | void pci_bus_remove_resources(struct pci_bus *bus); | 924 | void pci_bus_remove_resources(struct pci_bus *bus); |