summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/device/pci_rom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h
index 83015a12b4..19728f2225 100644
--- a/src/include/device/pci_rom.h
+++ b/src/include/device/pci_rom.h
@@ -5,6 +5,7 @@
#include <endian.h>
#include <acpi/acpi.h>
+#include <cbfs.h>
#include <stdint.h>
#define PCI_ROM_HDR 0xAA55
@@ -42,6 +43,11 @@ struct rom_header *pci_rom_probe(const struct device *dev);
struct rom_header *pci_rom_load(struct device *dev,
struct rom_header *rom_header);
+static inline void pci_rom_free(struct rom_header *rom_header)
+{
+ cbfs_unmap(rom_header);
+}
+
unsigned long
pci_rom_write_acpi_tables(const struct device *device,
unsigned long current,