summaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2014-08-07 22:49:56 -0700
committerStefano Babic <sbabic@denx.de>2014-09-09 16:15:02 +0200
commit0991866cf7a10d4868aa2a10940b4def0f68cc50 (patch)
tree056318003e67ffc5ae394292f9ebfa85c1f9e36d /include/pci.h
parent206f38f727e9610709fe73db5c460b7623755eb7 (diff)
downloadu-boot-imx-0991866cf7a10d4868aa2a10940b4def0f68cc50.zip
u-boot-imx-0991866cf7a10d4868aa2a10940b4def0f68cc50.tar.gz
u-boot-imx-0991866cf7a10d4868aa2a10940b4def0f68cc50.tar.bz2
pci: add support for board_pci_fixup_dev function
Some board-level drivers may wish to have per-device fixup functions for PCI devices. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 461f17c..2ff7365 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -659,6 +659,13 @@ extern int pci_hose_find_cap_start(struct pci_controller *hose, pci_dev_t dev,
extern int pci_find_cap(struct pci_controller *hose, pci_dev_t dev, int pos,
int cap);
+#ifdef CONFIG_PCI_FIXUP_DEV
+extern void board_pci_fixup_dev(struct pci_controller *hose, pci_dev_t dev,
+ unsigned short vendor,
+ unsigned short device,
+ unsigned short class);
+#endif
+
const char * pci_class_str(u8 class);
int pci_last_busno(void);