diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-02 14:49:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-02 23:38:36 -0400 |
commit | 2b333e4bef018de86f010b25829742d1dcd60a0d (patch) | |
tree | bd1a34243cebecfc384215f6bf1408be263a604a /src/pcibios.c | |
parent | 0f654a976b9ec8d0346249f8aacc5fbd7d40e946 (diff) | |
download | seabios-2b333e4bef018de86f010b25829742d1dcd60a0d.tar.gz |
Rename foreachbdf_in_bus to foreachbdf and simplify it.
Now that all callers of foreachbdf have been converted to
foreachbdf_in_bus, simplify the pci_next() code - it no longer needs
to track PCI bridges.
Also, rename the remaining users of foreachbdf_in_bus to foreachbdf.
Diffstat (limited to 'src/pcibios.c')
-rw-r--r-- | src/pcibios.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pcibios.c b/src/pcibios.c index ca91c156..31ca37e5 100644 --- a/src/pcibios.c +++ b/src/pcibios.c @@ -42,8 +42,8 @@ handle_1ab102(struct bregs *regs) int bus = -1; while (bus < GET_GLOBAL(MaxPCIBus)) { bus++; - int bdf, max; - foreachbdf_in_bus(bdf, max, bus) { + int bdf; + foreachbdf(bdf, bus) { u32 v = pci_config_readl(bdf, PCI_VENDOR_ID); if (v != id) continue; @@ -66,8 +66,8 @@ handle_1ab103(struct bregs *regs) int bus = -1; while (bus < GET_GLOBAL(MaxPCIBus)) { bus++; - int bdf, max; - foreachbdf_in_bus(bdf, max, bus) { + int bdf; + foreachbdf(bdf, bus) { u32 v = pci_config_readl(bdf, PCI_CLASS_REVISION); if ((v>>8) != classprog) continue; |