Remove support for compiling in OPTIONROM_VENDEV_1/2.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 21 Jun 2011 01:52:44 +0000 (21:52 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 21 Jun 2011 03:50:01 +0000 (23:50 -0400)
Passing in rom locations via absolute memory addresses hasn't been
needed since coreboot adopted CBFS support (which as several years
ago).

src/config.h
src/optionroms.c

index 5b4048830db06ad25281469d89e8c102dd1bee70..e6e07c9a91e736d7426eee00e1f526dc8265143f 100644 (file)
 #define CONFIG_APPNAME6 "BOCHS "
 #define CONFIG_APPNAME4 "BXPC"
 
-// When option roms are not pre-deployed, SeaBIOS can copy an optionrom
-// from flash for up to 2 devices.
-#define OPTIONROM_VENDEV_1 0x00000000
-#define OPTIONROM_MEM_1 0x00000000
-#define OPTIONROM_VENDEV_2 0x00000000
-#define OPTIONROM_MEM_2 0x00000000
-
 // Maximum number of map entries in the e820 map
 #define CONFIG_MAX_E820 32
 // Space to reserve in f-segment for dynamic allocations
index ff74c4fdc54dfbfb84419409d5a2fcd9580174f0..a612f3c586b890a988c76d1e3127910c8bd45cf1 100644 (file)
@@ -240,14 +240,6 @@ getRomPriority(u64 *sources, struct rom_header *rom, int instance)
 static struct rom_header *
 lookup_hardcode(u32 vendev)
 {
-    if (OPTIONROM_VENDEV_1
-        && ((OPTIONROM_VENDEV_1 >> 16)
-            | ((OPTIONROM_VENDEV_1 & 0xffff)) << 16) == vendev)
-        return copy_rom((void*)OPTIONROM_MEM_1);
-    if (OPTIONROM_VENDEV_2
-        && ((OPTIONROM_VENDEV_2 >> 16)
-            | ((OPTIONROM_VENDEV_2 & 0xffff)) << 16) == vendev)
-        return copy_rom((void*)OPTIONROM_MEM_2);
     char fname[17];
     snprintf(fname, sizeof(fname), "pci%04x,%04x.rom"
              , pci_vd_to_ven(vendev), pci_vd_to_dev(vendev));