summaryrefslogtreecommitdiff
path: root/src/include/device/pci_rom.h
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-06-06 19:30:55 +0200
committerPatrick Rudolph <siro@das-labor.org>2018-01-31 08:36:52 +0000
commit00c0cd2c45d503716dfd7d37ebff6c6768712a52 (patch)
treee40ed3fcf602454d9f1ee1e2d434f1af4d34bd96 /src/include/device/pci_rom.h
parent6be6df00144402cdc5ace0489d7255186609537c (diff)
device/pci_rom: Write _ROM method for VGA devices
Write _ROM method and store PCI Option ROM in CBMEM. Allows an EFI compatible OS to retrieve the Option ROM without the need to access the PCI BAR. As the Option ROM is no longer present in the legacy VGA area it's required for mobile platforms. On hybrid devices, like Lenovo Thinkpads supporting NVIDIA Optimus it's the only way to retrieve the Option ROM, even with legacy BIOS, as there's no PCI BAR to map. Tested on: * Lenovo T530 * Linux Kernel 4.13.7 * nouveau Change-Id: I548b730fb64833083cc05af5b21dd6959804224b Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20548 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include/device/pci_rom.h')
-rw-r--r--src/include/device/pci_rom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h
index c5ace4c788..a4aa52aa09 100644
--- a/src/include/device/pci_rom.h
+++ b/src/include/device/pci_rom.h
@@ -43,6 +43,8 @@ pci_rom_write_acpi_tables(struct device *device,
unsigned long current,
struct acpi_rsdp *rsdp);
+void pci_rom_ssdt(struct device *device);
+
u32 map_oprom_vendev(u32 vendev);
#endif