device/pci_device: Move PCI Option ROM code into pci_rom.c

Move PCI Option ROM handling code into device/pci_rom.c as it's
already using a majority of functions within this file.

Change-Id: I50fc3bf45a1ab6572ab031b9e24ca2f882a13aad
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86733
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ana Carolina Cabral <ana.cpmelo95@gmail.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Patrick Rudolph 2025-03-05 11:24:56 +01:00 committed by Felix Held
commit dbcfa67c28
3 changed files with 99 additions and 91 deletions

View file

@ -53,6 +53,7 @@ pci_rom_write_acpi_tables(const struct device *device,
unsigned long current,
struct acpi_rsdp *rsdp);
void pci_rom_run(struct device *dev);
void pci_rom_ssdt(const struct device *device);
u32 map_oprom_vendev(u32 vendev);