summaryrefslogtreecommitdiffstats
path: root/include/pci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-22 15:58:55 -0600
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:14 -0700
commitdc5740df7e5c95adbad0cd77de5e6e5eb40b469f (patch)
tree797d77123903ff4744dd90e94b6f3a29015499c9 /include/pci.h
parentcce7e0fa2b43b24b6a7553b348d3e716159f6c50 (diff)
downloadblackbird-obmc-uboot-dc5740df7e5c95adbad0cd77de5e6e5eb40b469f.tar.gz
blackbird-obmc-uboot-dc5740df7e5c95adbad0cd77de5e6e5eb40b469f.zip
dm: pci: Add a comment to help find pci_hose_read_config_byte, etc.
These functions are defined by macros so do not show up with grep. Add a comment to help. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 488ff44c53..e24c970130 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -653,6 +653,7 @@ extern pci_addr_t pci_hose_phys_to_bus(struct pci_controller* hose,
#define pci_io_to_virt(dev, addr, len, map_flags) \
pci_bus_to_virt((dev), (addr), PCI_REGION_IO, (len), (map_flags))
+/* For driver model these are defined in macros in pci_compat.c */
extern int pci_hose_read_config_byte(struct pci_controller *hose,
pci_dev_t dev, int where, u8 *val);
extern int pci_hose_read_config_word(struct pci_controller *hose,
OpenPOWER on IntegriCloud