coreboot/src
Stefan Reinauer c0a6c6b3b9 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
appropriate):

/* 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:
        new_vendev=0xa0018086;
        break;
    }

    return new_vendev;
}

Change-Id: I1be7fe113b895075d43ea48fe706b039cef136d2
Reviewed-on: http://review.coreboot.org/573
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Marc Jones <marcj303@gmail.com>
2012-02-07 00:09:58 +01:00
..
arch/x86 X86: fix cpu_phys_address_size() 2012-01-31 22:47:39 +01:00
boot selfboot: Don't include unneeded ip_checksum.h 2011-11-08 21:21:55 +01:00
console trivial:change the value type of POST_PORT in Kconfig from int to hex 2011-12-26 08:52:07 +01:00
cpu post code: Replaced hard-coded post code with macro 2012-01-23 22:50:56 +01:00
devices Add OPROM mapping support to coreboot 2012-02-07 00:09:58 +01:00
drivers adm1026: removed prototype 2012-01-21 18:48:03 +01:00
ec X60/T60: Add option to enable/disable bluetooth 2012-01-31 18:03:40 +01:00
include Add OPROM mapping support to coreboot 2012-02-07 00:09:58 +01:00
lib lib: add ram_check_nodie 2012-01-12 13:26:29 +01:00
mainboard Inagua: Synchronize AMD/inagua mainboard. 2012-02-07 00:06:07 +01:00
northbridge Add Intel i5000 Memory Controller Hub 2012-02-02 13:49:33 +01:00
pc80 vga: removed inclusion of .c files 2012-01-27 20:07:00 +01:00
southbridge i3100: configure pci irqs 2012-02-02 16:01:47 +01:00
superio SIO: condition compile Nuvoton WPCM450 early_init.c 2012-02-05 17:45:08 +01:00
vendorcode SB700 southbridge: AMD SB700/SP5100 southbridge CIMX code 2012-02-02 15:05:36 +01:00
Kconfig Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00
Kconfig.deprecated_options Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00