]> git.itanic.dy.fi Git - linux-stable/commit
PCI: Add standard PCI Config Address macros
authorPali Rohár <pali@kernel.org>
Sat, 24 Sep 2022 09:24:02 +0000 (11:24 +0200)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 27 Sep 2022 09:08:20 +0000 (11:08 +0200)
commit8a9b7ef74369f08a8bde2a45168056f1cad9fb2c
tree61ecb0178252feb32d1bba70f91fbbf2d453a10f
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
PCI: Add standard PCI Config Address macros

Lot of PCI and PCIe controllers are using standard Config Address for PCI
Configuration Mechanism #1 (as defined in PCI Local Bus Specification) or
its extended version.

So introduce new macros PCI_CONF1_ADDRESS() and PCI_CONF1_EXT_ADDRESS() in
include file drivers/pci/pci.h which can be suitable for PCI and PCIe
controllers which uses this type of access to PCI config space.

Link: https://lore.kernel.org/r/20220924092404.31776-2-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h