]> git.karo-electronics.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:58 +0000 (13:48 +0200)
commit9cd4de60ad2fbd7a70ecadab9c895bf68da1b19c
tree8c0b5f577a9fa3cd24e27cad4ec1675397d09edc
parent27cc76a5c4fab71b63fcfc4a607632ade8e138eb
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