]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: pci: Add a function to get the BDF for a device
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 22:47:46 +0000 (16:47 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:39 +0000 (17:39 -0600)
commit4b515e4fc53f7675935a40a37ebf0c384e776914
tree4d32fa142fc6d0a095a89a932707cd07d2c49db5
parentd0a5a0b2d800ddf248a7a843e5efba72d19059cc
dm: pci: Add a function to get the BDF for a device

It is useful to be able to find the full PCI address (bus, device and
function) for a PCI device. Add a function to provide this.

Adjust the existing code to use this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c
drivers/pci/pci_compat.c
include/pci.h