switch-coreboot/src/commonlib
Patrick Rudolph 00c0cd2c45 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>
2018-01-31 08:36:52 +00:00
..
include/commonlib device/pci_rom: Write _ROM method for VGA devices 2018-01-31 08:36:52 +00:00
storage commonlib/storage: Zero extend MMC capacity 2017-06-27 21:55:49 +00:00
cbfs.c commonlib: cbfs: Add CBFS attribute support 2016-08-27 01:16:16 +02:00
fsp_relocate.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
iobuf.c commonlib: add input and output buffer helpers 2017-04-24 19:06:50 +02:00
lz4.c.inc cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
lz4_wrapper.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
Makefile.inc commonlib: Move drivers/storage into commonlib/storage 2017-05-12 18:20:33 +02:00
mem_pool.c commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
region.c commonlib/region: expose subregion helper function 2017-12-15 23:35:05 +00:00