dm: pci: Add a function to read a PCI BAR
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2015 20:17:53 +0000 (13:17 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Jan 2016 17:19:09 +0000 (10:19 -0700)
commitbab17cf143c4888d03eb51f20aa6b86210448608
tree8056619271bf91f76b5e76bb24bfc782321f21f0
parenta0eb835635abe0952529e3eb5207a24ac36fa000
dm: pci: Add a function to read a PCI BAR

Add a driver-model function for reading the PCI BAR from a device.

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