mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
07570e7097
commit
4a2708a097
3 changed files with 42 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue