diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-12-04 19:39:10 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-12-04 19:39:10 -0500 |
commit | 4132e0213ea9b168dd619ca76f1f1bf075d1f4a4 (patch) | |
tree | 3ee2afa254ea118a40b68e0978ee4ff05a091083 /src/optionroms.c | |
parent | 53ab0b600cc7cd14403a9d8feafb1bd1a81e56eb (diff) | |
download | seabios-4132e0213ea9b168dd619ca76f1f1bf075d1f4a4.tar.gz |
Don't allow start_bdf with new auto max bus detection code.
It's not valid to set a "start bdf" when search for a device now,
because we wont be able to properly detect the maximum bus unless
we start at the beginning.
Change callers that need to resume a search to use foreachpci() macro.
Update all callers so that they don't pass in the now unused start_bdf.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r-- | src/optionroms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optionroms.c b/src/optionroms.c index 8888aa52..32a1f95b 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -303,7 +303,7 @@ optionrom_setup() } else { // Find and deploy PCI roms. int bdf, max; - foreachpci(bdf, max, 0) { + foreachpci(bdf, max) { u16 v = pci_config_readw(bdf, PCI_CLASS_DEVICE); if (v == 0x0000 || v == 0xffff || v == PCI_CLASS_DISPLAY_VGA) continue; @@ -361,7 +361,7 @@ vga_setup() next_rom += ALIGN(rom->size * 512, OPTION_ROM_ALIGN); } else { // Find and deploy PCI VGA rom. - int bdf = pci_find_class(PCI_CLASS_DISPLAY_VGA, 0); + int bdf = pci_find_class(PCI_CLASS_DISPLAY_VGA); if (bdf < 0) // Device not found return; |