]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/pci.h
PCI: Add pci_bus_address() to get bus address of a BAR
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 21 Dec 2013 15:33:26 +0000 (08:33 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 21 Dec 2013 17:07:46 +0000 (10:07 -0700)
commit06cf56e497c8c1469b0931caa7d5b1d827655fe2
tree2d81aadde5d73e3b96ae41468c9d3b5648c352d1
parentfc2798502f860b18f3c7121e4dc659d3d9d28d74
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>
include/linux/pci.h