]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: pci: Add APIs to find capability and extended capability
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:52 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commitdac01fd89d41d98cd4ce040a0d10eb67c523f63a
treef230ada01af1198cdfcfadfafa03fe6107235eba
parent5d544f962f7b970c118eaa13f1b874572ab5c28f
dm: pci: Add APIs to find capability and extended capability

This introduces two new APIs dm_pci_find_capability() and
dm_pci_find_ext_capability() to get PCI capability address and
PCI express extended capability address for a given PCI device.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c
include/pci.h