X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fpci_rom.h;h=895c9627f4d7294967090f70650d0a53b0faadde;hb=85cb2bc6868e5f7da7396a26b59fbb5cbc48e4ab;hp=8b2674cf87940fbcdd79b456695718a1f822b178;hpb=88342103cccf73b39c764bfb1473e7bf29b52b88;p=oweals%2Fu-boot.git diff --git a/include/pci_rom.h b/include/pci_rom.h index 8b2674cf87..895c9627f4 100644 --- a/include/pci_rom.h +++ b/include/pci_rom.h @@ -1,14 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * From coreboot file of same name - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _PCI_ROM_H #define _PCI_ROM_H #define PCI_ROM_HDR 0xaa55 -#define PCI_VGA_RAM_IMAGE_START 0xc0000 struct pci_rom_header { uint16_t signature; @@ -34,14 +32,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