diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-12-21 16:33:26 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-12-21 18:07:46 +0100 |
commit | 06cf56e497c8c1469b0931caa7d5b1d827655fe2 (patch) | |
tree | 2d81aadde5d73e3b96ae41468c9d3b5648c352d1 /fs/efivarfs/Makefile | |
parent | PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev (diff) | |
download | linux-06cf56e497c8c1469b0931caa7d5b1d827655fe2.tar.xz linux-06cf56e497c8c1469b0931caa7d5b1d827655fe2.zip |
PCI: Add pci_bus_address() to get bus address of a BAR
We store BAR information as a struct resource, which contains the CPU
address, not the bus address. Drivers often need the bus address, and
there's currently no convenient way to get it, so they often read the
BAR directly, or use the resource address (which doesn't work if there's
any translation between CPU and bus addresses).
Add pci_bus_address() to make this convenient.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions