Add OPROM mapping support to coreboot

This allows to add a PCI ID mapping function for option roms so that the same
option rom can be used for a series of devices / PCI IDs. Intel and AMD often
use the same option rom for a number of PCI devices with differend IDs.

A function to implement such a mapping could look like this (or anything else

/* some vga option roms are used for several chipsets but they only have one
 * PCI ID in their header. If we encounter such an option rom, we need to do
 * the mapping ourselfes

u32 map_oprom_vendev(u32 vendev)
    u32 new_vendev=vendev;

    switch(vendev) {
    case 0xa0118086:

    return new_vendev;

Change-Id: I1be7fe113b895075d43ea48fe706b039cef136d2
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <>
Reviewed-by: Marc Jones <>
2 files changed