summaryrefslogtreecommitdiffstats
path: root/include/pci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-14 21:37:04 -0700
committerSimon Glass <sjg@chromium.org>2015-01-23 17:24:54 -0700
commit4a2708a097eacd7aa3d10ccf26a70a467fa69217 (patch)
treec2e07f6db9d83dbb45d2054343eff5172c34ae8f /include/pci.h
parent07570e709765e93f2b1e9506cfd8fa24455636b5 (diff)
downloadblackbird-obmc-uboot-4a2708a097eacd7aa3d10ccf26a70a467fa69217.tar.gz
blackbird-obmc-uboot-4a2708a097eacd7aa3d10ccf26a70a467fa69217.zip
x86: Access the VGA ROM when needed
Add code to the generic pci_rom file to access the VGA ROM in PCI space when needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 7f67ca6542..4fbb8f6729 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -697,5 +697,14 @@ void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum,
* */
u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum);
+/**
+ * pciauto_setup_rom() - Set up access to a device ROM
+ *
+ * @hose: PCI hose to use
+ * @dev: PCI device to adjust
+ * @return 0 if done, -ve on error
+ */
+int pciauto_setup_rom(struct pci_controller *hose, pci_dev_t dev);
+
#endif /* __ASSEMBLY__ */
#endif /* _PCI_H */
OpenPOWER on IntegriCloud