]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: pci: Add APIs to find next capability and extended capability
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:21 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:28 +0000 (09:16 -0800)
commita8c5f8d3d02807f72d048950d72b0c73d55bd7fb
treed87519b5395d70034c2c9647f44b1cf70d019f70
parentc80c7798cfc6032ce6522aded6048f1d3fe93fce
dm: pci: Add APIs to find next capability and extended capability

This introduces two new APIs dm_pci_find_next_capability() and
dm_pci_find_next_ext_capability() to get PCI capability address
and PCI express extended capability address for a given PCI device
starting from a given offset.

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