aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcibios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-06-19 10:46:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2011-06-19 10:46:28 -0400
commitbaac6b6e1a3fc2d5e662e685a6bbe196292c2522 (patch)
tree46f373a4d019a0b43233d5bab03ea6e463827853 /src/pcibios.c
parentb9457ec8818db62cf13cbcc791103720e5730edb (diff)
downloadseabios-baac6b6e1a3fc2d5e662e685a6bbe196292c2522.tar.gz
Rename foreachpci macro to foreachbdf.
Diffstat (limited to 'src/pcibios.c')
-rw-r--r--src/pcibios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcibios.c b/src/pcibios.c
index a23248b4..4fdfd5e5 100644
--- a/src/pcibios.c
+++ b/src/pcibios.c
@@ -27,7 +27,7 @@ handle_1ab101(struct bregs *regs)
{
// Find max bus.
int bdf, max;
- foreachpci(bdf, max) {
+ foreachbdf(bdf, max) {
}
regs->al = 0x01; // Flags - "Config Mechanism #1" supported.
@@ -45,7 +45,7 @@ handle_1ab102(struct bregs *regs)
u32 id = (regs->cx << 16) | regs->dx;
int count = regs->si;
int bdf, max;
- foreachpci(bdf, max) {
+ foreachbdf(bdf, max) {
u32 v = pci_config_readl(bdf, PCI_VENDOR_ID);
if (v != id)
continue;
@@ -65,7 +65,7 @@ handle_1ab103(struct bregs *regs)
int count = regs->si;
u32 classprog = regs->ecx;
int bdf, max;
- foreachpci(bdf, max) {
+ foreachbdf(bdf, max) {
u32 v = pci_config_readl(bdf, PCI_CLASS_REVISION);
if ((v>>8) != classprog)
continue;