| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * From coreboot file of same name |
| #define PCI_ROM_HDR 0xaa55 |
| * Determines which execution method is used and whether we allow falling back |
| * to the other if the requested method is not available. |
| PCI_ROM_EMULATE = 0 << 0, |
| PCI_ROM_USE_NATIVE = 1 << 0, |
| PCI_ROM_ALLOW_FALLBACK = 1 << 1, |
| * 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 |
| * @exec_method: flags from enum pci_rom_emul |
| int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), |
| * board_map_oprom_vendev() - map several PCI IDs to the one the ROM expects |
| * Some VGA option roms are used for several chipsets but they only have one |
| * PCI ID in their header. If we encounter such an option rom, we need to do |
| * @vendev: Vendor and device for the video device |
| * Return: standard vendor and device expected by the ROM |
| uint32_t board_map_oprom_vendev(uint32_t vendev); |