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);
}
init_optionrom((void*)BUILD_ROM_START, 0, 1);
} else {
// Clear option rom memory
- memset((void*)RomEnd, 0, _max_rom() - RomEnd);
+ memset((void*)RomEnd, 0, max_rom() - RomEnd);
// Find and deploy PCI VGA rom.
struct pci_device *pci;