[U-Boot] [PATCH v3 25/31] dm: pci: Add APIs to find next capability and extended capability

sjg at google.com sjg at google.com
Wed Oct 24 17:31:39 UTC 2018


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 at gmail.com>
Reviewed-by: Simon Glass <sjg at chromium.org>

---

Changes in v3: None
Changes in v2:
- use an internal function _dm_pci_find_next_capability() for
  dm_pci_find_capability() and dm_pci_find_next_capability()

 drivers/pci/pci-uclass.c | 51 ++++++++++++++++++++++++++++++++++--------------
 include/pci.h            | 48 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+), 15 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list