if (!source)
return -1;
if (source & RS_PCIROM)
- return bootprio_find_pci_rom(source, instance);
+ return bootprio_find_pci_rom((void*)(u32)source, instance);
return bootprio_find_named_rom(romfile_name(source), instance);
}
if (! rom)
// No ROM present.
return -1;
- setRomSource(sources, rom, RS_PCIROM | bdf);
+ setRomSource(sources, rom, RS_PCIROM | (u32)pci);
return init_optionrom(rom, bdf, isvga);
}
****************************************************************/
static int S3ResumeVgaInit;
+int ScreenAndDebug;
// Call into vga code to turn on console.
void
dprintf(1, "Scan for VGA option rom\n");
+ // Load some config settings that impact VGA.
EnforceChecksum = romfile_loadint("etc/optionroms-checksum", 1);
S3ResumeVgaInit = romfile_loadint("etc/s3-resume-vga-init", 0);
+ ScreenAndDebug = romfile_loadint("etc/screen-and-debug", 1);
if (CONFIG_OPTIONROMS_DEPLOYED) {
// Option roms are already deployed on the system.