1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #define PCI_ROM_HDR 0xAA55
12 #define PCI_DATA_HDR ((uint32_t)(('R' << 24) | ('I' << 16) | ('C' << 8) | 'P'))
14 #define PCI_RAM_IMAGE_START 0xD0000
15 #define PCI_VGA_RAM_IMAGE_START 0xC0000
21 uint8_t reserved
[0x12];
41 void vga_oprom_preload(void);
42 struct rom_header
*pci_rom_probe(const struct device
*dev
);
43 struct rom_header
*pci_rom_load(struct device
*dev
,
44 struct rom_header
*rom_header
);
46 static inline void pci_rom_free(struct rom_header
*rom_header
)
48 cbfs_unmap(rom_header
);
52 pci_rom_write_acpi_tables(const struct device
*device
,
53 unsigned long current
,
54 struct acpi_rsdp
*rsdp
);
56 void pci_rom_ssdt(const struct device
*device
);
58 u32
map_oprom_vendev(u32 vendev
);
60 int verified_boot_should_run_oprom(struct rom_header
*rom_header
);