HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44827 )
Change subject: soc/cavium/common/ecam.c: Use 'PCI_*' macros instead of magic number ......................................................................
soc/cavium/common/ecam.c: Use 'PCI_*' macros instead of magic number
Change-Id: Ie0657123b0eab4bf63f34aea751e632bf091abc5 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/cavium/common/ecam.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/44827/1
diff --git a/src/soc/cavium/common/ecam.c b/src/soc/cavium/common/ecam.c index 88368178..596501a 100644 --- a/src/soc/cavium/common/ecam.c +++ b/src/soc/cavium/common/ecam.c @@ -20,7 +20,7 @@ */ uint64_t ecam0_get_bar_val(pci_devfn_t dev, u8 bar) { - size_t cap_offset = pci_s_find_capability(dev, 0x14); + size_t cap_offset = pci_s_find_capability(dev, PCI_BASE_ADDRESS_1); uint64_t h, l, ret = 0; if (cap_offset) { /* Found EA */