diff options
author | Rob Herring <robh@kernel.org> | 2015-01-10 03:34:39 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-01-22 20:59:45 +0100 |
commit | 1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b (patch) | |
tree | ab2370828b760ed28ca7500c37318c78fcfc6fef /arch/arm/mach-cns3xxx | |
parent | powerpc/PCI: Add struct pci_ops member names to initialization (diff) | |
download | linux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.tar.xz linux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.zip |
PCI: Add generic config accessors
Many PCI controllers' configuration space accesses are memory-mapped and
vary only in address calculation and access checks. There are 2 main
access methods: a decoded address space such as ECAM or a single address
and data register similar to x86. This implementation can support both
cases as well as be used in cases that need additional pre- or post-access
handling.
Add a new pci_ops member, map_bus, which can do access checks and any
necessary setup. It returns the address to use for the configuration space
access. The access types supported are 32-bit only accesses or correct
byte, word, or dword sized accesses.
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/mach-cns3xxx')
0 files changed, 0 insertions, 0 deletions