pci: Add standard PCI Config Address macros
authorPali Rohár <pali@kernel.org>
Fri, 26 Nov 2021 10:42:41 +0000 (11:42 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jan 2022 19:21:24 +0000 (14:21 -0500)
commit2a8d4025c3bdeeca0484ab45606e08649f8b85a3
tree320801f711983edc56320c5f0aebf52986d95160
parent95ab5784bfc2d1a431d1a95b215893c2d808f7e8
pci: Add standard PCI Config Address macros

Lot of PCI and PCIe controllers are using standard Config Address for PCI
Configuration Mechanism #1 or its extended version.

So add PCI_CONF1_ADDRESS() and PCI_CONF1_EXT_ADDRESS() macros into U-Boot's
pci.h header file which can be suitable for most PCI and PCIe controller
drivers. Drivers do not have to invent their own macros and can use these
new U-Boot macros.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/pci.h