diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-05-31 00:20:55 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-06-02 20:06:18 -0400 |
commit | 59d6ca52a7eba5b1f4f2becf70fd446dccaf0a2e (patch) | |
tree | a90ca99b49e14bd73076a35183be1a14143534e6 /src/pci.c | |
parent | 51d6ba3e6fac2e78679145fe34f3861225670ae9 (diff) | |
download | seabios-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |