diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-14 21:37:04 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-23 17:24:54 -0700 |
commit | 4a2708a097eacd7aa3d10ccf26a70a467fa69217 (patch) | |
tree | c2e07f6db9d83dbb45d2054343eff5172c34ae8f /include/pci.h | |
parent | 07570e709765e93f2b1e9506cfd8fa24455636b5 (diff) |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h index 7f67ca65426..4fbb8f6729f 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 */ |