X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fpci_rom.h;h=95c6d079fb3e81efc225b77dccb77110dcb35e56;hb=7b07a20c5e668b67348dc7a3abbeb437ab0afa52;hp=4ba36eb1b7bd079311d59523d14ad41f4d0962fc;hpb=ab92da9f47d51d363c7de42e2a7bd807e2c1bd54;p=u-boot diff --git a/include/pci_rom.h b/include/pci_rom.h index 4ba36eb1b7..95c6d079fb 100644 --- a/include/pci_rom.h +++ b/include/pci_rom.h @@ -33,14 +33,25 @@ struct pci_rom_data { uint16_t reserved_2; }; +/* + * Determines which execution method is used and whether we allow falling back + * to the other if the requested method is not available. + */ +enum pci_rom_emul { + PCI_ROM_EMULATE = 0 << 0, + PCI_ROM_USE_NATIVE = 1 << 0, + PCI_ROM_ALLOW_FALLBACK = 1 << 1, +}; + /** - * pci_run_vga_bios() - Run the VGA BIOS in an x86 PC + * dm_pci_run_vga_bios() - Run the VGA BIOS in an x86 PC * * @dev: Video device containing the BIOS * @int15_handler: Function to call to handle int 0x15 - * @emulate: true to use the x86 emulator, false to run native + * @exec_method: flags from enum pci_rom_emul */ -int pci_run_vga_bios(pci_dev_t dev, int (*int15_handler)(void), bool emulate); +int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), + int exec_method); /** * board_map_oprom_vendev() - map several PCI IDs to the one the ROM expects