aboutsummaryrefslogtreecommitdiff
path: root/src/pci.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-05-31 00:20:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-06-02 20:06:18 -0400
commit59d6ca52a7eba5b1f4f2becf70fd446dccaf0a2e (patch)
treea90ca99b49e14bd73076a35183be1a14143534e6 /src/pci.c
parent51d6ba3e6fac2e78679145fe34f3861225670ae9 (diff)
downloadseabios-hppa-59d6ca52a7eba5b1f4f2becf70fd446dccaf0a2e.zip
seabios-hppa-59d6ca52a7eba5b1f4f2becf70fd446dccaf0a2e.tar.gz
seabios-hppa-59d6ca52a7eba5b1f4f2becf70fd446dccaf0a2e.tar.bz2
Cache romfile entries.
Create a 'struct romfile_s' and populate a list of all romfiles at start of init. Caching the romfiles both simplifies the code and makes it more efficient. Also, convert the ramdisk code to use romfile helpers instead of directly accessing cbfs. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pci.c')
-rw-r--r--src/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pci.c b/src/pci.c
index 49bc34e..071c302 100644
--- a/src/pci.c
+++ b/src/pci.c
@@ -5,10 +5,10 @@
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
+#include "config.h" // CONFIG_*
#include "pci.h" // pci_config_writel
#include "ioport.h" // outl
#include "util.h" // dprintf
-#include "paravirt.h" // romfile_loadint
#include "farptr.h" // MAKE_FLATPTR
#include "pci_regs.h" // PCI_VENDOR_ID
#include "pci_ids.h" // PCI_CLASS_DISPLAY_VGA