diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-06-19 10:46:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-06-19 10:46:28 -0400 |
commit | baac6b6e1a3fc2d5e662e685a6bbe196292c2522 (patch) | |
tree | 46f373a4d019a0b43233d5bab03ea6e463827853 /src/optionroms.c | |
parent | b9457ec8818db62cf13cbcc791103720e5730edb (diff) | |
download | seabios-baac6b6e1a3fc2d5e662e685a6bbe196292c2522.tar.gz |
Rename foreachpci macro to foreachbdf.
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 37a4e6c5..ff74c4fd 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -9,7 +9,7 @@ #include "farptr.h" // FLATPTR_TO_SEG #include "config.h" // CONFIG_* #include "util.h" // dprintf -#include "pci.h" // foreachpci +#include "pci.h" // foreachbdf #include "pci_regs.h" // PCI_ROM_ADDRESS #include "pci_ids.h" // PCI_CLASS_DISPLAY_VGA #include "boot.h" // IPL @@ -398,7 +398,7 @@ optionrom_setup(void) } else { // Find and deploy PCI roms. int bdf, max; - foreachpci(bdf, max) { + foreachbdf(bdf, max) { u16 v = pci_config_readw(bdf, PCI_CLASS_DEVICE); if (v == 0x0000 || v == 0xffff || v == PCI_CLASS_DISPLAY_VGA || (CONFIG_ATA && v == PCI_CLASS_STORAGE_IDE)) |