aboutsummaryrefslogtreecommitdiff
path: root/src/ata.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/ata.c
parentb9457ec8818db62cf13cbcc791103720e5730edb (diff)
downloadseabios-hppa-baac6b6e1a3fc2d5e662e685a6bbe196292c2522.zip
seabios-hppa-baac6b6e1a3fc2d5e662e685a6bbe196292c2522.tar.gz
seabios-hppa-baac6b6e1a3fc2d5e662e685a6bbe196292c2522.tar.bz2
Rename foreachpci macro to foreachbdf.
Diffstat (limited to 'src/ata.c')
-rw-r--r--src/ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ata.c b/src/ata.c
index 95e1352..2630431 100644
--- a/src/ata.c
+++ b/src/ata.c
@@ -11,7 +11,7 @@
#include "cmos.h" // inb_cmos
#include "pic.h" // enable_hwirq
#include "biosvar.h" // GET_EBDA
-#include "pci.h" // foreachpci
+#include "pci.h" // foreachbdf
#include "pci_ids.h" // PCI_CLASS_STORAGE_OTHER
#include "pci_regs.h" // PCI_INTERRUPT_LINE
#include "boot.h" // boot_add_hd
@@ -1035,7 +1035,7 @@ ata_init(void)
// Scan PCI bus for ATA adapters
int pcicount=0;
int bdf, max;
- foreachpci(bdf, max) {
+ foreachbdf(bdf, max) {
pcicount++;
pci_init_device(pci_ata_tbl, bdf, NULL);
}