dm: pci: Provide friendly config access functions
authorSimon Glass <sjg@chromium.org>
Mon, 10 Aug 2015 13:05:03 +0000 (07:05 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 14 Aug 2015 09:24:21 +0000 (03:24 -0600)
commit66afb4ed924693412f2f4e05fbfae6a642159402
tree786d846f531fcd19a2d2a57b07317a48d78adc32
parentda60fb79349320a21fd0b7c1e602fa492291d1f7
dm: pci: Provide friendly config access functions

At present there are no PCI functions which allow access to PCI
configuration using a struct udevice. This is a sad situation for driver
model as it makes use of PCI harder. Add these functions.

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