]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit5094c92254adfecd1a6eee917d8ef99f0277e11b
tree320801f711983edc56320c5f0aebf52986d95160
parent4cdcdeff7e03b6fe25f54830ec2f365f6e44859c
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