]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: add helpers for building PCI bus resource lists
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Oct 2011 22:25:35 +0000 (16:25 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Jan 2012 20:10:50 +0000 (12:10 -0800)
commit45ca9e9730c5acdb482dd95799fd8ac834481897
treeb73836ea44c0b3537ededd0c86653edfcfabb5c3
parentafd24ece5c76af87f6fc477f2747b83a764f161c
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>
drivers/pci/bus.c
include/linux/pci.h